105
CHAPTER 4 I/O PORTS
4.6.2
Operations of Port 6 Functions
This section describes the operation of port 6.
■
Operation of Port 6
●
Operation in output port mode
When "1" is written for a bit of the DDR6 register, the bit corresponding to a pin of port 6, the pin
functions as an output port.
In output port mode, the output transistor operation is enabled and the output latch data is output to the
pin.
Once data has been written into the PDR6 register, the written data is held in the output latch and output
to the pin as it is.
The value state of the pin can be read by reading the PDR6 register.
●
Operation in input port mode
When "0" is written for a bit of the DDR6 register, the bit corresponding to a pin of port 6, the pin
functions as an input port.
In input port mode, the output transistor is OFF and the pin status is Hi-Z.
Once data has been written into the PDR6 register, the written data is held in the output latch but is not
output to the pin.
The value state of the pin can be read by reading the PDR6 register.
●
Operation when a reset is performed
When the CPU is reset, the bits of the DDR6 register are initialized to "0". Thus, all output transistors
become OFF and the pins become Hi-Z.
However, CPU resets do not initialize the PDR6 register. If a pin is used as an output port after the
reset, reinitialize the PDR6 register to contain new output data in the bit position corresponding to the
pin and then set the corresponding bit of the DDR6 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 "1" and when the stop
mode is entered, the output transistor is turned OFF and the pin becomes Hi-Z because the output
transistor is forcibly turned OFF without respect to the value existing on the DDR6 register in the bit
position corresponding to the pin.
Input remains fixed to prevent leaks by input open.
Table 4.6-4 summarizes the operating modes of the pins of port 6.
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......