
- •Preface
- •About This Manual
- •Audience
- •Manual Organization
- •Suggested Reading
- •Manual Conventions
- •1.1 Introduction
- •1.2 56800E Core Description
- •1.3 56852 Architectural Overview
- •1.4 System Bus Controller
- •1.5 56852 Memory
- •1.6 56852 Peripheral Blocks
- •2.1 Introduction
- •2.2 Features
- •2.3 Signal and Package Information
- •3.1 Introduction
- •3.2 Program Boot ROM
- •3.3 Memory Map
- •4.1 Introduction
- •4.2 Features
- •4.3 SIM Block Diagram
- •4.4 Signal Description
- •4.5 Module Memory Map
- •4.6 Register Descriptions (SYS_BASE = $1FFF08)
- •4.7 Implementation
- •4.8 Generated Clocks
- •4.9 Generated Resets
- •4.10 Power Mode Controls
- •5.1 Introduction
- •5.2 Features
- •5.3 Functional Description
- •5.4 Block Diagram
- •5.5 Module Memory Map
- •5.6 Register Descriptions (EMI_BASE = $1FFE40)
- •5.7 Timing Specifications
- •5.8 Clocks
- •5.9 Interrupts
- •5.10 Resets
- •6.1 Introduction
- •6.2 OSC (Oscillator) Circuit Detail
- •6.3 Phase Locked Loop (PLL) Circuit Detail
- •6.4 CGM Functional Detail
- •6.5 Module Memory Map
- •6.6 Register Descriptions (CGM_BASE = $1FFF10)
- •6.7 OCCS Resets
- •6.8 OCCS Interrupts
- •7.1 Introduction
- •7.2 Features
- •7.3 Block Diagram
- •7.4 Method of Operation
- •7.5 Computer Operating Properly (COP) Module
- •7.6 Operating Modes
- •7.7 Block Diagram
- •7.8 Module Memory Map
- •7.9 Register Descriptions (COP_BASE = $1FFFD0)
- •7.10 Clocks
- •7.11 Resets
- •7.12 Interrupts
- •8.1 Introduction
- •8.2 Features
- •8.3 ITCN Module Signal Description
- •8.4 Block Diagram
- •8.5 Functional Description
- •8.6 Operating Modes
- •8.7 Wait and Stop Modes Operations
- •8.8 Module Memory Map
- •8.9 Register Descriptions (ITCN_BASE = $1FFF20)
- •8.10 Resets
- •8.11 Interrupts
- •9.1 Introduction
- •9.2 Features
- •9.3 Block Diagram
- •9.4 Signal Descriptions
- •9.5 Functional Description
- •9.6 Low Power Modes
- •9.7 Module Memory Map
- •9.8 Register Descriptions (SCI_BASE = $1FFFE0)
- •9.9 Clocks
- •9.10 Resets
- •9.11 Interrupts
- •10.1 Introduction
- •10.2 Features
- •10.3 SPI Block Diagram
- •10.4 Signal Descriptions
- •10.5 External I/O Signals
- •10.6 Operating Modes
- •10.7 Transmission Formats
- •10.8 Transmission Data
- •10.9 Error Conditions
- •10.10 Module Memory Map
- •10.11 Registers Descriptions (SPI_BASE = $1FFFE8)
- •10.12 Resets
- •10.13 Interrupts
- •11.1 Introduction
- •11.2 Features
- •11.3 Signal Descriptions
- •11.4 Block Diagram
- •11.5 ISSI Configurations
- •11.6 Module Memory Map
- •11.7 Register Descriptions (ISSI_BASE = $1FFE20)
- •11.8 ISSI Operating Modes
- •11.9 Clocks
- •11.10 Clock Operation Description
- •11.11 Resets
- •11.12 Interrupts
- •11.13 User Notes
- •12.1 Introduction
- •12.2 Features
- •12.3 Operating Modes
- •12.4 Block Diagram
- •12.5 Signal Description
- •12.6 Functional Description
- •12.7 Counting Modes Definitions
- •12.8 Module Memory Map
- •12.9 Register Descriptions (TMR_BASE = $1FFE80)
- •12.10 Resets
- •12.11 Interrupts
- •13.1 Introduction
- •13.2 Features
- •13.3 GPIO Block Diagram
- •13.4 Functional Description
- •13.5 Modes of Operation
- •13.6 GPIO Configurations
- •13.7 Module Memory Maps
- •13.8 Register Descriptions
- •13.9 Data Register Access
- •13.10 Resets
- •13.11 Interrupts
- •14.1 Introduction
- •14.2 Features
- •14.3 Master Test Access Port (TAP)
- •14.4 TAP Block Diagram
- •14.5 JTAG Port Architecture
- •14.6 JTAG Bypass Register (JTAGBR)
- •14.7 JTAG Boundary Scan Register (BSR)
- •14.8 TAP Controller
- •14.9 56852 Restrictions
- •B.1 Introduction
- •B.2 Programmer’s Sheets

GPIO Block Diagram
13.1 Introduction
The 56852 General Purpose Input/Output (GPIO) is designed to share package pins with other peripheral modules on the chip. If a peripheral normally controlling a given pin is not required, then the pin can be programmed to be a GPIO with programmable pull-up.
13.2 Features
The GPIO module design includes:
•Individual control for each pin to be in either Normal or GPIO mode
•Individual direction control for each pin in GPIO mode
•Individual pull-up enable control for each pin in either Normal or GPIO mode
13.3 GPIO Block Diagram
|
PE |
|
|
I/O Cell |
|
|
|
|
|
|
DD |
|
|
GPIO |
|
|
0 |
|
|
|
D_OUT |
|
Pin |
|
|
PE |
|||
|
|
|||
|
|
|
||
|
|
1 |
|
|
|
|
D_IN |
0 |
|
|
|
Data Register |
|
|
|
Peripheral Data Out |
|
1 |
|
PeripheralChip |
|
|
|
|
Peripheral Out Enable |
|
|
|
|
|
Peripheral Data In |
|
|
PE |
|
|
|
|
|
On- |
|
|
1 |
|
|
|
|
|
|
|
|
DD |
0 |
PU |
|
Figure 13-1. Bit-Slice View of GPIO Logic |
General Purpose Input/Output (GPIO), Rev. 4
Freescale Semiconductor |
13-3 |
-packaged product lines and part numbers indicated here currently are not |
2010: MC13892 |
Commission, BGA |
prior to September |
order from the United States International Trade Freescale for import or sale in the United States |
|
of an from |
|
Because |
available |

Functional Description
Table 13-1. Mapping of External Signals to GPIO Ports
Peripheral |
Functional |
GPIO Port |
GPIO Bit |
|||||
Signal |
||||||||
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EMI |
|
|
|
|
|
A |
2 |
|
|
CS2 |
|||||||
|
|
|
|
|
|
|
|
|
EMI |
|
|
|
|
|
A |
1 |
|
|
CS1 |
|||||||
|
|
|
|
|
|
|
|
|
EMI |
|
|
|
|
|
A |
0 |
|
|
CS0 |
|||||||
|
|
|
|
|||||
SPI |
MOSI |
C |
5 |
|||||
|
|
|
|
|||||
SPI |
MISO |
C |
4 |
|||||
|
|
|
|
|
|
|
||
SPI |
|
|
|
|
C |
3 |
||
|
|
SS |
||||||
|
|
|
|
|||||
ISSI |
SCLK |
C |
2 |
|||||
|
|
|
|
|||||
ISSI |
SRXD |
C |
1 |
|||||
|
|
|
|
|||||
ISSI |
STXD |
C |
0 |
|||||
|
|
|
|
|||||
SCI |
TXD |
E |
1 |
|||||
|
|
|
|
|||||
SCI |
RXD |
E |
0 |
|||||
|
|
|
|
|
|
|
|
13.4 Functional Description
Each GPIO pin can be configured as either an input, with or without pull-up, or an output. Pull-ups are configured by writing to the Pull-Up Registers and are automatically disabled when the pin is being used as an output in either the Normal or GPIO modes of operation.
13.5 Modes of Operation
The GPIO module design contains two major modes of operation:
13.5.1 Normal Mode
This can also be thought of as Peripheral Controlled mode. The peripheral module controls the output enable and any output data to the I/O pad and any input data from the pad is passed to the peripheral. Pull-up enables are controlled by a GPIO register.
13.5.2 GPIO Mode
In this mode, the GPIO module controls the output enable to the pad and supplies any data to be output. Also, any input data can be read from a GPIO memory mapped register. Pull-up enables are controlled by a GPIO register.
|
56852 Digital Signal Controller User Manual, Rev. 4 |
13-4 |
Freescale Semiconductor |
-packaged product lines and part numbers indicated here currently are not |
2010: MC13892 |
Commission, BGA |
prior to September |
order from the United States International Trade Freescale for import or sale in the United States |
|
of an from |
|
Because |
available |

Module Memory Maps
In the GPIO mode, the Data Direction Register (DDR) supplies the output enable to the I/O pad to control its direction. The DR supplies the output data if DDR is asserted. The value of the data on the I/O pad can be read by reading Data Register (DR) when DDR is zero. When in GPIO mode the output data from the GPIO to the peripheral module will be driven high and the output data and enable from the peripheral are ignored. The pull-up resistor can be enabled by writing to the PUE Register. The pull-up resistor will be disabled as long as the DDR is set to the Output mode.
13.6 GPIO Configurations
Each GPIO port is controlled by the registers listed in Section 13-2. Each register bit corresponds to a GPIO pin. Figure 13-1 illustrates the logic associated with one GPIO bit.
Table 13-2. GPIO Registers Functions
Register |
Description |
Function |
|
|
|
|
|
|
PER |
Peripheral Enable Register |
Determines if pin functions as GPIO or associated peripheral pin |
|
|
|
DDR |
Data Direction Register |
Determines pin direction (input or output) when pin functions as GPIO |
|
|
|
DR |
Data Register |
Data interface between the GPIO pin and the IPBus |
|
|
|
PUER |
Pull-Up Enable Register |
Enables internal pull-up, qualified by other factors |
|
|
|
13.7 Module Memory Maps
There are three GPIO mapped modules listed in the following in tables, Section 13-3 through Section 13-5. The GPIO peripherals are summarized in Figure 13-2 through Figure 13-4.
Table 13-3. GPIO A Memory Map (GPIOA_BASE = $1FFE60)
Address Offset |
Register Acronym |
Register Name |
Access Type |
Chapter Location |
|
|
|
|
|
Base + $0 |
GPIO_A_PER |
Peripheral Enable Register |
Read/Write |
Section 13.8.1 |
|
|
|
|
|
Base + $1 |
GPIO_A_DDR |
Data Direction Register |
Read/Write |
Section 13.8.4 |
|
|
|
|
|
Base + $2 |
GPIO_A_DR |
Data Register |
Read/Write |
Section 13.8.7 |
|
|
|
|
|
Base + $3 |
GPIO_A_PUR |
Pull-Up Enable Register |
Read/Write |
Section 13.8.10 |
|
|
|
|
|
|
General Purpose Input/Output (GPIO), Rev. 4 |
Freescale Semiconductor |
13-5 |
-packaged product lines and part numbers indicated here currently are not |
2010: MC13892 |
Commission, BGA |
prior to September |
order from the United States International Trade Freescale for import or sale in the United States |
|
of an from |
|
Because |
available |

Module Memory Maps
Add. |
Register Name |
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
|
0 |
Offset |
|
|
|||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$0 |
PER |
R |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
|
PE |
|
|
W |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$1 |
DDR |
R |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
|
DD |
|
|
W |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$2 |
DR |
R |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
|
DATA |
|
|
W |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$3 |
PUR |
R |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
PUE |
|
|
W |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Read as 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
R |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
W |
|
Reserved |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure 13-2. GPIO A Register Map Summary
Table 13-4. GPIO C Memory Map (GPIOC_BASE = $1FFE68)
Address Offset |
Register Acronym |
Register Name |
Access Type |
Chapter Location |
|
|
|
|
|
Base + $8 |
GPIO_C_PER |
Peripheral Enable Register |
Read/Write |
Section 13.8.2 |
|
|
|
|
|
Base + $9 |
GPIO_C_DDR |
Data Direction Register |
Read/Write |
Section 13.8.5 |
|
|
|
|
|
Base + $A |
GPIO_C_DR |
Data Register |
Read/Write |
Section 13.8.8 |
|
|
|
|
|
Base + $B |
GPIO_C_PUR |
Pull-Up Enable Register |
Read/Write |
Section 13.8.11 |
|
|
|
|
|
Add. |
Register Name |
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
|
2 |
1 |
0 |
Offset |
|
|
|||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$8 |
PER |
R |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
|
|
|
PE |
|
|
|
W |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$9 |
DDR |
R |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
|
|
|
DD |
|
|
|
W |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$A |
DR |
R |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
|
|
DATA |
|
|
||
W |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$B |
PUR |
R |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
|
|
|
PUE |
|
|
|
W |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Read as 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
R |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
W |
|
Reserved |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure 13-3. GPIO C Register Map Summary
|
56852 Digital Signal Controller User Manual, Rev. 4 |
13-6 |
Freescale Semiconductor |
-packaged product lines and part numbers indicated here currently are not |
2010: MC13892 |
Commission, BGA |
prior to September |
order from the United States International Trade Freescale for import or sale in the United States |
|
of an from |
|
Because |
available |