upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 112

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
4.3.3 Port 0
Port 0 is a 7-bit port for which I/O settings can be controlled in 1-bit units.
(1)
(2)
Remarks: 1. Input mode:
112
Symbol
R/W
P0
Port 0 functions
• 7bits I/O port
• Port input/output specifiable in 1-bit units by port mode register 0 (PM0)
• Port mode/control mode specifiable in 1-bit units by port mode control register 0 (PMC0)
• Control mode 1/Control mode 2 specifiable in 1-bit units by port function control register 0
• On-chip pull-up resistor specifiable in 1-bit units by pull-up resistor option register 0 (PU0)
• On-chip pull-down resistor specifiable in 1-bit units by pull-down resistor option register 0 (PD0)
• Valid edge of external interrupts specifiable in 1-bit units by external interrupt falling edge
See Table 4-8, “Port Type,” on page 170 for alternate functions of Port 0.
Registers
(a) Port register 0 (P0)
Port register 0 (P0) 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.
(PFC0)
specification register 0 (INTF0) and external interrupt rising edge specification register 0
(INTR0)
R/W
2. An undefined value (pin input level) is read for the value after reset when P0 is read in
7
0
Output mode:
the input mode. When P0 is read in the output mode, 00H (output latch value) is output.
P0
0
1
R/W
P06
6
Outputs 0
Outputs 1
R/W
P05
Figure 4-3: Port Register 0 (P0) Format
5
When port 0 (P0) is read, the pin levels at this time are read. During
write, the data written to P0 is written. This does not affect the input
pins.
When port 0 (P0) is read, the value of P0 is read. During write, the
value is written to P0 and the written value is immediately output.
Output data control (in output mode) (n = 0 to 6)
User’s Manual U16702EE3V2UD00
Chapter 4 Port Functions
R/W
P04
4
R/W
P03
3
R/W
P02
2
R/W
P01
1
R/W
P00
0
FFFFF400H undefined
Address
After reset

Related parts for upd70f3402