XE8801A – SX8801R
13.1 Features
• Input / output port, 8 bits wide
• Each bit can be set individually for input or output
13.2 Overview
Port C (PC) is a general purpose 8 bit input/output digital port.
Figure 13-1 shows its structure.
Port C
8
8
8
RegPCOut
RegPCDir
RegPCIn
Figure 13-1 : structure of Port C
13.3 Port C (PC) Operation
The direction of each bit within Port C (input or output) can be individually set by using the RegPCDir register. If
PCDir[x] = 1, the corresponding Port C pin becomes an output. After reset, Port C is in input mode (PCDir[x] are
reset to 0).
Output mode:
Data is stored in RegPCOut prior to output at Port C.
Input mode:
The status of Port C is available in RegPCIn (read only). Reading is always direct - there is no digital debounce
function associated with Port C. In case of possible noise on input signals, a software debouncer or an external
filter must be realized.
By default after reset, Port C is configured as an input port.
© Semtech 2005
13-2
www.semtech.com