Gpio - Pins And Registers - Motorola DSP56367 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

Enhanced Serial Audio Interface (ESAI)

GPIO - Pins and Registers

When programmed as input flags, the SCKR, FSR and HCKR logic values, respectively, are
latched at the same time as the first bit of the receive data word is sampled. Because the input
was latched, the signal on the input flag pin (SCKR, FSR or HCKR) can change without
affecting the input flag until the first bit of the next receive data word. When the received data
words are transferred to the receive data registers, the input flag latched values are then
transferred to the IF0, IF1 and IF2 bits in the SAISR register, where they may be read by
software.
When programmed as output flags, the SCKR, FSR and HCKR logic values are driven by the
contents of the OF0, OF1 and OF2 bits in the SAICR register respectively, and are driven
when the transmit data registers are transferred to the transmit shift registers. The value on
SCKR, FSR and HCKR is stable from the time the first bit of the transmit data word is
transmitted until the first bit of the next transmit data word is transmitted. Software may
change the OF0-OF2 values thus controlling the SCKR, FSR and HCKR pin values for each
transmitted word. The normal sequence for setting output flags when transmitting data is as
follows: wait for TDE (transmitter empty) to be set, first write the flags, and then write the
transmit data to the transmit registers. OF0, OF1 and OF2 are double buffered so that the flag
states appear on the pins when the transmit data is transferred to the transmit shift register
(i.e., the flags are synchronous with the data).
10.5
GPIO - PINS AND REGISTERS
The GPIO functionality of the ESAI port is controlled by three registers: Port C control
register (PCRC), Port C direction register (PRRC) and Port C data register (PDRC).
10.5.1
PORT C CONTROL REGISTER (PCRC)
The read/write 24-bit Port C Control Register (PCRC) in conjunction with the Port C
Direction Register (PRRC) controls the functionality of the ESAI GPIO pins. Each of the
PC(11:0) bits controls the functionality of the corresponding port pin. See Table 10-12 for the
port pin configurations. Hardware and software reset clear all PCRC bits.
MOTOROLA
DSP56367
10-53

Advertisement

Table of Contents
loading

Table of Contents