Gpio Signals And Registers; Port E Control Register (Pcre) - Motorola DSP56303 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

GPIO Signals and Registers

prevent overruns unless transmit interrupts are enabled. Either STX or STXA is usually
written as part of the interrupt service routine. An interrupt is generated only if TDRE is set.
The transmit shift register is indirectly visible via the SSR[TRNE] bit.
In Synchronous mode, data is synchronized with the transmit clock. That clock can have
either an internal or external source, as defined by the TCM bit in the SCCR. The length and
format of the serial word is defined by the WDS0, WDS1, and WDS2 control bits in the SCR.
In Asynchronous mode, the start bit, the eight data bits (with the LSB first if SSFTD = 0 and
the MSB first if SSFTD = 1), the address/data indicator bit or parity bit, and the stop bit are
transmitted in that order. The data to be transmitted can be written to any one of the three STX
addresses. If SCKP is set and SSHTD is set, SCI Synchronous mode is equivalent to the SSI
operation in 8-bit data on-demand mode.
Note:
When data is written to a peripheral device, there is a two-cycle pipeline delay until
any status bits affected by this operation are updated. If you read any of those status
bits within the next two cycles, the bit does not reflect its current status. For details
see the DSP56300 Family Manual.
8.7
GPIO Signals and Registers
Three registers control the GPIO functionality of the SCI pins: Port E control register
(PCRE), Port E direction register (PRRE) and Port E data register (PDRE).
8.7.1

Port E Control Register (PCRE)

The read/write PCRE controls the functionality of SCI GPIO signals. Each of the PCRE[2–0]
bits controls the functionality of the corresponding port signal. When a PCRE[i] bit is set, the
corresponding port signal is configured as an SCI signal. When a PC[i] bit is cleared, the
corresponding port signal is configured as a GPIO signal. A hardware
software RESET instruction clears all PCRE bits.
23
22
21
11
10
9
Note:
For bits 2–0, a 0 selects PEn as the signal and a 1 selects the specified SCI signal.
= Reserved. Read as zero. Write to zero for future compatibility.
Figure 8-8. Port E Control Register (PCRE X:$FFFF9F)
8-24
20
19
18
8
7
6
DSP56303 User's Manual
17
16
15
5
4
3
signal or a
RESET
14
13
12
2
1
0
PE2/
PE1/
PE0/
SCLK
TXD
RXD

Advertisement

Table of Contents
loading

Table of Contents