upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 159

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
4.3.11 Port CS
Port CS is a 2-bit port for which I/O settings can be controlled in 1-bit units.
(1)
(2)
Note: PCS7 to PCS2: please set 0 any time.
Remarks: 1. Input mode:
Symbol
PCS
R/W
Port CS functions
• 2-bit I/O port
• Port input/output specifiable in 1-bit units by port mode register CS (PMCS)
• Port mode/control mode specifiable in 1-bit units by port mode control register CS (PMCCS)
• On-chip pull-up resistor specifiable in 1-bit units by pull-up resistor option register CS (PUCS)
• On-chip pull-down resistor specifiable in 1-bit units by pull-down resistor option register CS
See Table 4-8, “Port Type,” on page 170 for alternate functions.
Registers
(a) Port register CS (PCS)
Port register CS (PCS) 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.
(PDCS)
0
2. An undefined value (pin input level) is read for the value after reset when PCS is read in
R/W
Note
7
PCSn
Output mode:
the input mode. When PCS is read in the output mode, 00H (output latch value) is out-
put.
0
1
0
R/W
Note
6
Outputs 0
Outputs 1
Figure 4-56: Port Register CS (PCS) Format
0
R/W
Note
5
User’s Manual U16702EE3V2UD00
When port CS (PCS) is read, the pin levels at this time are read. During
write, the data written to PCS is written. This does not affect the input
pins.
When port CS (PCS) is read, the value of PCS is read. During write,
the value is written to PCS and the written value is immediately output.
Output data control (in output mode) (n = 0, 1)
Chapter 4 Port Functions
0
R/W
Note
4
0
R/W
Note
3
0
R/W
Note
2
PCS1
R/W
1
PCS0
R/W
0
FFFFF008H undefined
Address
After reset
159

Related parts for upd70f3402