|
MC9S12KG128_10 Datasheet, PDF (137/606 Pages) Freescale Semiconductor, Inc – HCS12 Microcontrollers | |||
|
◁ |
Chapter 4
Port Integration Module (PIM9KG128V1)
4.1 Introduction
The Port Integration Module (PIM) establishes the interface between the peripheral modules and the I/O
pins for ports H, J, M, P, S and T.
This section covers:
⢠Port H associated with the two SPI modules â SPI1 and SPI2. These ports can also be used as
external interrupt sources.
⢠Port J associated with 1 IIC module and the CAN4 module, which can also be used as an external
interrupt source
⢠Port M associated with 2 CAN modules â CAN0 and CAN4, the SPI module associated with port
S
⢠Port P connected to either the PWM or the two SPI modules associated with Port H, which also can
be used as an external interrupt source
⢠Port S associated with 2 SCI and 1 SPI module
⢠Port T connected to TIM module
Each I/O pin can be conï¬gured by several registers in order to select data direction and drive strength, to
enable and select pull-up or pull-down resistors. On certain pins also interrupts can be enabled which result
in status ï¬ags.
The I/Oâs of 2 CAN and all 3 SPI modules can be routed from their default location to determined pins.
4.1.1 Features
A standard port has the following minimum features:
⢠Input/output selection
⢠3.3V/5V output drive with two selectable drive strength
⢠3.3V/5V digital and analog input
⢠Input with selectable pull-up or pull-down device
Optional features:
⢠Open drain for wired-OR connections
⢠Interrupt inputs with glitch ï¬ltering
MC9S12KG128 Data Sheet, Rev. 1.16
Freescale Semiconductor
137
|
▷ |