EasyManua.ls Logo

Cypress FM4 Series - Page 585

Cypress FM4 Series
1102 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER 12: I/O Port
FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E 585
Table 2-1 Register Function Descriptions
Register Name
Function Description
ADE
A register to set whether the I/O port will be used as a special pin (an analog input pin) or a digital input/output pin.
SPSR
A register to set whether the I/O port will be used as a special pin (USB or oscillation) or a digital input/output pin.
PFR
A register to set whether the I/O port will be used as an input/output pin of GPIO function or an input/output pin of
peripheral functions.
PCR
A register to set whether a pull-up resistor of the I/O port will be connected or disconnected if the I/O port is used as a
digital input pin or a digital bidirectional pin.
DDR
A register to set whether the I/O port will be used as an input pin or an output pin if the I/O port is used as a GPIO
function pin.
Note: If a pin is selected as an I/O pin of peripheral functions, a setting value is invalid.
PDIR
A register to read the level status of the I/O port.
If the I/O port is used as a digital input pin, it reads input level.
If the I/O port is used as a digital output pin, it reads output level.
If the I/O port is used as an analog input pin, it always reads "0".
PDOR
A register to set output level if the I/O port is used as an output pin of GPIO function.
When "0" is set, it outputs Low level.
When "1" is set, it outputs High level.
Note: If a pin is selected as GPIO input or input/output of peripheral functions, a setting value is invalid.
EPFR
A register to select a function for an input/output of peripheral functions and set relocation function.
Setting a peripheral output pin
It sets whether to produce output for the I/O port or not. In addition, it can also set to which I/O port a pin of peripheral functions will
be relocated for each pin.
Setting a peripheral input pin
It can set to which I/O port a pin of peripheral functions will be relocated for each pin.
Setting a peripheral bidirectional pin
It can set to which I/O port a pin of peripheral functions will be relocated for each pin
PZR
This register sets open the drain control of the I/O port.
Set the I/O port to Low output when the I/O port is outputting Low level (pull-up disconnection regardless of PCR setting value)
Set open drain control in pseudo mode by setting the I/O port on Hi-Z status when the I/O port outputs High level (pull-up
disconnection regardless of PCR setting value)
Set the I/O port on Hi-Z status when the I/O port is used for input (pull-up disconnection regardless of PCR setting value)
Note:
This function is implemented only in some specific pins.
Only pins described as "PZR register control is enabled" in the remarks column of I/O CIRCUIT TYPE of the Data Sheet
can control the open drain.
PDSR
This register controls drive capability of the I/O port.
If the I/O port is used as a digital input pin, it selects output drive capability.
Note:
This function is implemented only in some specific pins.
Only pins described as "PDSR register control is enabled" in the remarks column of I/O CIRCUIT TYPE of the Data
Sheet can control the drive capability.

Table of Contents

Related product manuals