Datasheet

56F8366 Technical Data, Rev. 7
126 Freescale Semiconductor
Preliminary
Two Input/Output pins associated with GPIOD can function as GPIO, EMI (default peripheral) or CAN2
(NOT available in the 56F8166 device) signals. GPIO is the default and is enabled/disabled via the
GPIOD_PER, as shown in Figure 6-11 and Table 6-3. When GPIOD[1:0] are programmed to operate as
peripheral input/output, then the choice between EMI and CAN2 inputs/outputs is made here in the GPS.
Figure 6-11 Overall Control of GPIOD Pads Using SIM_GPS Control
Note: CAN2 is NOT available in the 56F8166 device.
Table 6-3 Control of GPIOD Pads Using SIM_GPS Control
1
1. This applies to the two pins that serve as EMI CSn / CAN2 / GPIOD functions. A separate set of control
bits is used for each pin.
Pin Function
Control Registers
Comments
GPIOD_PER
GPIOC_DDR
SIM_GPS
GPIO Input 0 0
GPIO Output 0 1
EMI I/O 1 0 EMI CSn
pins are always outputs
CAN2 1 1 CAN2_TX is always an output
CAN2_RX is always an input
GPIOD_PER Register
GPIO Controlled
I/O
Pad Control
SIM_ GPS Register
EMI Controlled
CAN2 Controlled
0
1
0
1