tmp88ch40img TOSHIBA Semiconductor CORPORATION, tmp88ch40img Datasheet - Page 44

no-image

tmp88ch40img

Manufacturer Part Number
tmp88ch40img
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
5.1 Port P1 (Only P10)
5. Input/Output Ports
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
TMP88CH40IMG
R/W

Related parts for tmp88ch40img