Port P6 (P67 To P60) - Toshiba TLCS-870/C Series Manual

8 bit microcontroller
Hide thumbs Also See for TLCS-870/C Series:
Table of Contents

Advertisement

5. I/O Ports

5.5 Port P6 (P67 to P60)

5.5 Port P6 (P67 to P60)
Port P6 is an 8-bit input/output port which can be configured as an input or an output in one-bit unit. Port P6 is also
used as an analog input, Key on Wake up input, timer/counter input and external interrupt input. Input/output modes
is specified by the P6 control register (P6CR), the P6 output latch (P6DR), and ADCCR1<AINDS>. During reset,
P6CR and P6DR are initialized to "0" and ADCCR1<AINDS> is set to "1". At the same time, the input data of pins
P67 to P60 are fixed to "0". To use port P6 as an input port, external interrupt input, timer/counter input or key on
wake up input, set data of P6DR to "1" and P6CR to "0". To use it as an output port, set data of P6CR to "1". To use
it as an analog input, set data of P6DR to "0" and P6CR to "0", and start the AD. It is the penetration electric current
measures by the analog voltage.
Pins not used for analog input can be used as I/O ports. During AD conversion, output instructions should not be
executed to keep a precision. In addition, a variable signal should not be input to a port adjacent to the analog input
during AD conversion.
When the AD converter is in use (P6DR=0), bits mentioned above are read as "0" by executing input instructions.
Key on wake up
Analog input
P6CRi input
Data input (P6DR)
Data output (P6DR)
Control input
STOPj
AINDS
SAIN
D
Q
P6CRi
D
Q
STOP
Figure 5-6 Port P6
Page 56
TMP86PM29BUG
P6i
Note 1: i = 7
to
0, j = 7 to 4
Note 2: STOP is bit 7 in SYSCR1
Note 3: SAIN is bit 0 to 3 in ADCCRA
Note 4: STOPj is bit 4 to 7 in STOPCR.

Advertisement

Table of Contents
loading

Table of Contents