89
CHAPTER 4 I/O PORTS
●
Operation when a reset is performed
When the CPU is reset, the bits of the DDR3 register are initialized to "0", at which time the output
transistors become OFF (input port mode) and the pins become Hi-Z.
However, CPU resets do not initialize the PDR3 register. If a pin is used as an output port after the reset,
reinitialize the PDR3 register to contain new output data in the bit position corresponding to the pin and
then set the corresponding bit of the DDR3 register so that the pin will function as an output port.
●
Operation in stop mode
When the pin state setting bit of the standby control register (STBC: SPL) is set to "1" and when the stop
mode is entered, the pin becomes Hi-Z because the output transistor is turned OFF regardless of the value
existing on the DDR3 register in the bit position corresponding to the pin.
Table 4.3-4 summarizes the operating modes of the pins of port 3.
Note:
When the pull-up resistor is selected by using the pull-up setting register, the pin state will be "H" level
instead of Hi-Z in stop mode (SPL = 1). During a reset, however, the pull-up is invalid with the pin
remaining at Hi-Z.
Table 4.3-4 Operating Modes of Pins of Port 3
Pin name
Normal operation, sleep, stop
(SPL = 0)
Stop (SPL = 1)
At a reset
P30/UCK/SCK
to
P33/EC, P37/BZ/PPG
General-purpose I/O port may also
serve I/O for peripherals
Hi-Z
Hi-Z
P34/TO/INT10
to
P36/INT12
General-purpose I/O port may also
serve outputs from peripherals and
external interrupt inputs
Hi-Z
(External interrupt input)
SPL : Pin state setting bit of standby control register (STBC: SPL)
Hi-Z: High impedance
Summary of Contents for F2MC-8L F202RA
Page 2: ......
Page 4: ......
Page 32: ...16 CHAPTER 1 OVERVIEW ...
Page 90: ...74 CHAPTER 3 CPU ...
Page 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Page 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Page 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Page 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Page 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Page 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Page 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Page 390: ...374 CHAPTER 17 FLASH MEMORY ...
Page 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 434: ...418 INDEX ...
Page 436: ......