tmp88ph40mg TOSHIBA Semiconductor CORPORATION, tmp88ph40mg Datasheet - Page 46

no-image

tmp88ph40mg

Manufacturer Part Number
tmp88ph40mg
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
TMP88PH40MG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp88ph40mg(KYZ)
Manufacturer:
TOSHIBA
Quantity:
10
5.1 Port P1 (Only P10)
5.1 Port P1 (Only P10)
P1 port input/output register
(0000BH)
(00001H)
whether the input value of the pin or the content of the output latch is read depends on the instruction executed, as
shown below.
output modes using the P1 port input/output control register (P1CR). When reset, the P1CR register is initialized to
0, with the P1 port set for input mode. Also, the output latch (P1DR) is initialized to 0 when reset.
P1DR
P1CR
R/W
When an operation is performed for read from any input/output port except programmable input/output ports,
Port P1 is an 8-bit input/output port shared with external interrupt input. This port is switched between input and
1. Instructions which read the content of the output latch
2. Instructions which read the input value of the pin
Control input
Data output
Data input
instructions, the (HL) side thereof.
- XCH r, (src)
- SET/CLR/CPL (src).b
- SET/CLR/CPL (pp).g
- LD (src).b, CF
- LD (pp).b, CF
- XCH CF, (src). b
- ADD/ADDC/SUB/SUBB/AND/OR/XOR (src), n
- ADD/ADDC/SUB/SUBB/AND/OR/XOR (src), (HL) instructions, the (src) side thereof
- MXOR (src), m
P1CR
7
7
Any instructions other than those listed above and ADD/ADDC/SUB/SUBB/AND/OR/XOR (src),(HL)
P1CR
6
6
P1 port input/output control
(Specify bitwise)
D
5
5
Q
utput latch
D
Q
4
4
Figure 5-2 Port P1
3
3
0: Input mode
1: Output mode
Page 36
2
2
1
1
P10
INT0
0
0
P10
(Initial value: **** ***0)
(Initial value: **** ***0)
External
input
Control input
0
1
values
0
0 0
1 0
CR
1
TMP88PH40MG
R/W

Related parts for tmp88ph40mg