upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 162

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
4.3.12 Port CT
Port CT is a 4-bit port for which I/O settings can be controlled in 1-bit units.
(1)
(2)
Note: PCT7, PCT5, PCT3, PCT2: please set 0 any time.
Remarks: 1. Input mode:
162
Symbol
PCT
R/W
Port CT functions
• 4-bit I/O port
• Port input/output specifiable in 1-bit units by port mode register CT (PMCT)
• Port mode/control mode specifiable in 1-bit units by port mode control register CT (PMCCT)
• On-chip pull-up resistor specifiable in 1-bit units by pull-up resistor option register CT (PUCT)
• On-chip pull-down resistor specifiable in 1-bit units by pull-down resistor option register CT
See Table 4-8, “Port Type,” on page 170 for alternate functions.
Registers
(a) Port register CT (PCT)
Port register CT (PCT) is an 8-bit register that controls pin level read, output level write. It can be
read and written in 8-bit or 1-bit units.
(PDCT)
0
R/W
2. An undefined value (pin input level) is read for the value after reset when PCT is read in
Note
7
PCTn
Output mode:
the
the input mode. When PCT is read in the output mode, 00H (output latch value) is out-
put.
0
1
PCT6
R/W
6
Outputs 0
Outputs 1
Figure 4-61: Port Register CT (PCT) Format
0
R/W
Note
5
When port CT (PCT) is read, the pin levels at this time are read. During
write, the data written to PCT is written. This does not affect the input
pins.
When port CT (PCT) is read, the value of PCT is read. During write,
value is written to PCT and the written value is immediately output.
Output data control (in output mode) (n = 0, 1, 4, 6)
User’s Manual U16702EE3V2UD00
PCT4
Chapter 4 Port Functions
R/W
4
0
R/W
Note
3
0
R/W
Note
2
PCT1
R/W
1
PCT0
R/W
0
FFFFF00AH undefined
Address
After reset

Related parts for upd70f3402