upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 118

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
4.3.4 Port 1
Port 1 is a 3-bit port for which I/O settings can be controlled in 1-bit units.
(1)
(2)
Remarks: 1. Input mode:
118
Symbol
R/W
P1
Port 1 functions
• 3-bit I/O port
• Port input/output specifiable in 1-bit units by port mode register 1 (PM1)
• Port mode/control mode specifiable in 1-bit units by port mode control register 1 (PMC1)
• Control mode 1, 2/control mode 3 specifiable in 1-bit units by port function control register 1
• On-chip pull-up resistor specifiable in 1-bit units by pull-up resistor option register 1 (PU1)
• On-chip pull-down resistor specifiable in 1-bit units by pull-down resistor option register 1 (PD1)
• 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.
Registers
(a) Port register 1 (P1)
Port register 1 (P1) 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.
(PFC1, PFCE1)
specification register 0 (INTF1) and external interrupt rising edge specification register 0
(INTR1).
R/W
2. An undefined value (pin input level) is read for the value after reset when P1 is read in
7
0
Output mode:
the input mode. When P1 is read in the output mode, 00H (output latch value) is output.
P1n
0
1
R/W
6
0
Outputs 0
Outputs 1
R/W
Figure 4-11: Port Register 1 (P1) Format
5
0
When port 1 (P1) is read, the pin levels at this time are read. During
write, the data written to P1 is written. This does not affect the input
pins.
When port 1 (P1) is read, the value of P1 is read. During write, the
value is written to P1 and the written value is immediately output.
Output data control (in output mode) (n = 0 to 2)
User’s Manual U16702EE3V2UD00
Chapter 4 Port Functions
R/W
4
0
R/W
3
0
R/W
P12
2
R/W
P11
1
R/W
P10
0
FFFFF402H undefined
Address
After reset

Related parts for upd70f3402