upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 155

no-image

upd70f3402

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

Related parts for upd70f3402