MOTOROLA
MC9S12B-FamilyPP
Rev 1.1, 16-Feb-01
SEMICONDUCTOR
TECHNICAL DATA
MC9S12B-Family
Product Proposal
16-Bit Microcontroller
Designed for automotive multiplexing applications, members of the MC9S12B-Family of 16 bit Flash-
based microcontrollers are fully pin compatible and enable users to choose between different memory
and peripheral options for scalable designs. All MC9S12B-Family members are composed of standard
on-chip peripherals including a 16-bit central processing unit (CPU12), up to 256K bytes of Flash
EEPROM, 8K bytes of RAM, 2K bytes of EEPROM, two asynchronous serial communications
interfaces (SCI), serial peripheral interface (SPI), an input capture/output compare timer (TIM), 8-
channel, 10-bit analog-to-digital converter (ADC), an four-channel pulse-width modulator (PWM), and
one CAN 2.0 A, B software compatible module (MSCAN12). System resource mapping, clock
generation, interrupt control and bus interfacing are managed by the lite integration module (LIM). The
MC9S12B-Family has full 16-bit data paths throughout, however, the external bus can operate in an 8-
bit narrow mode so single 8-bit wide memory can be interfaced for lower cost systems. The inclusion of
a PLL circuit allows power consumption and performance to be adjusted to suit operational
requirements. In addition to the I/O ports available in each module, up to 22 I/O ports are available with
Wake-Up capability from STOP or WAIT mode.
Features
NOTE
Not all features listed here are available in all configurations.
• 16-bit CPU12
— Upward compatible with M68HC11 instruction set
— Interrupt stacking and programmer’s model identical to M68HC11
— 20-bit ALU
— Instruction queue
— Enhanced indexed addressing
• Multiplexed bus
— Single chip or expanded
— 16 address/16 data wide or 16 address/8 data narrow modes
— External address space 1MByte for Data and Program space (112 pin package only)
• Wake-up interrupt inputs depending on the package option
— 8-bit port H
— 4-bit port J
— 8-bit port P shared with PWM
• Memory options
— 64K, 128K, 256K Byte Flash EEPROM
— 1K, 2K Byte EEPROM
— 2K, 4K and 8K Byte RAM
• Analog-to-Digital Converter
— 16-channels for 112 Pin Package, 8 channels for 80 Pin package options, 10-bit resolution
— External conversion trigger capability
• 1M bit per second, CAN 2.0 A, B software compatible module
This document contains information on a new product. Specifications and information herein are subject to change without notice.
© MOTOROLA 2000
— Five receive and three transmit buffers
— Flexible identifier filter programmable as 2 x 32 bit, 4 x 16 bit or 8 x 8 bit
— Four separate interrupt channels for Rx, Tx, error and wake-up
— Low-pass filter wake-up function
— Loop-back for self test operation
• Input Capture/Ouput Compare Timer (TIM)
— 16-bit main counter with 7-bit prescaler
— 8 programmable input capture or output compare channels
— Two 8-bit or one 16-bit pulse accumulators
• 8 PWM channels with programmable period and duty cycle (7 channels on 80 Pin Packages)
— 8-bit 8-channel or 16-bit 4-channel
— Separate control for each pulse width and duty cycle
— Center- or left-aligned outputs
— Programmable clock select logic with a wide range of frequencies
• Serial interfaces
— Two asynchronous serial communications interfaces (SCI)
— synchronous serial peripheral interface (SPI)
• SIM (System Integration Module)
— CRG (windowed COP watchdog, real time interrupt, clock monitor, clock generation and reset)
— MEBI (multiplexed external bus interface)
— MMC (memory map and interface)
— INT (interrupt control)
— BKP (breakpoints)
— BDM (background debug mode)
• Clock generation
— Phase-locked loop clock frequency multiplier
— Limp home mode in absence of external clock
— Slow mode divider
— Low power 0.5 to 16 MHz crystal oscillator reference clock
• Operation frequency
— 32MHz equivalent to 16MHz Bus Speed for single chip
— 32MHz equivalent to 16MHz Bus Speed in expanded bus modes
• Internal 5V to 2.5V Regulator
• 112-Pin or 80-Pin LQFP package
— I/O lines with 5V input and drive capability
— 5VA/D converter inputs
— Dual supply - 5V for I/O and A/D, 2.5V logic
• Development support
— Single-wire background debug™ mode (BDM)
— On-chip hardware breakpoints
MOTOROLA
2
MC9S12B-Family
PRODUCT PROPOSAL, Rev 1.1, 16-Feb-01
Table 1 List of MC9S12B-Family members
Flash
256K
128K
64K
RAM
8K
4K
2K
EEPROM
2K
1K
1K
Package
80QFP
80QFP
80QFP
Device
MC9S12B256
MC9S12B128
MC9S12B64
CAN
1
1
1
1
1
SCI
2
2
2
2
2
SPI
1
1
1
1
1
A/D
16ch
8ch
16ch
8ch
8ch
PWM
8ch
7ch
8ch
7ch
7ch
Timer
8ch
8ch
8ch
8ch
8ch
I/O
91
59
91
59
59
112LQFP MC9S12B256
112LQFP MC9S12B128
• Pin out explanations:
— I/O is the sum of ports capable to act as digital input or output.
For 112 Pin Versions:
Port A = 8, B = 8, E = 6 + 2 input only, H = 8, J = 4, K = 7, M = 8, P = 8, S = 8, T = 8, PAD = 16
input only.
22 inputs provide Interrupt capability (H =8, P= 8, J = 4, IRQ, XIRQ)
For 80 Pin Versions:
Port A = 8, B = 8, E = 6 + 2 input only, J = 2, M = 2, P = 7, S = 8, T = 8, PAD = 8 input only.
11 inputs provide Interrupt capability (P= 7, J = 2, IRQ, XIRQ)
d
MC9S12B-Family
PRODUCT PROPOSAL, Rev 1.1, 16-Feb-01
MOTOROLA
3
64K, 128K, 256K Byte Flash EEPROM
2K, 4K, 8K Byte RAM
1K, 2K Byte EEPROM
V
DDR
V
SSR
VREGEN
V
DD1,2
V
SS1,2
BKGD
XFC
V
DDPLL
V
SSPLL
EXTAL
XTAL
RESET
PE0
PE1
PE2
PE3
PE4
PE5
PE6
PE7
TEST
VRH
ATD
VRL
VDDA
VSSA
V
RH
V
RL
V
DDA
V
SSA
PAD08
PAD09
PAD10
PAD11
PAD12
PAD13
PAD14
PAD15
PK0
PK1
PK2
PK3
PK4
PK5
PK7
PT0
PT1
PT2
PT3
PT4
PT5
PT6
PT7
PP0
PP1
PP2
PP3
PP4
PP5
PP6
PP7
PS0
PS1
PS2
PS3
PS4
PS5
PS6
PS7
PM0
PM1
PM2
PM3
PM4
PM5
PM6
PM7
PJ0
PJ1
PJ6
PJ7
PH0
PH1
XADDR14
XADDR15
XADDR16
XADDR17
XADDR18
XADDR19
Voltage Regulator
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
PAD0
PAD1
PAD2
PAD3
PAD4
PAD5
PAD6
PAD7
AN08
AN09
AN10
AN11
AN12
AN13
AN14
AN15
PIX0
PIX1
PIX2
PIX3
PIX4
PIX5
ECS
IOC0
IOC1
IOC2
IOC3
IOC4
IOC5
IOC6
IOC7
KWP0
KWP1
KWP2
KWP3
KWP4
KWP5
KWP6
KWP7
RXD
TXD
RXD
TXD
MISO
MOSI
SCK
SS
RxCAN
TxCAN
AD
Single-wire Background
Debug Module
Clock and
Reset
Generation
Module
CPU12
DDRK
PPAGE
PLL
Periodic Interrupt
COP Watchdog
Clock Monitor
Breakpoints
PTK
AD
ECS
XIRQ
IRQ
Lite
R/W
Integration
LSTRB
Module
ECLK
(LIM)
MODA
MODB
NOACC/XCLKS
DDRE
PTE
Input Capture
Output Compare
Timer
DDRT
DDRP
DDRS
DDRM
DDRJ
Multiplexed Address/Data Bus
PWM
DDRA
PTA
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
DDRB
PTB
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PWM0
PWM1
PWM2
PWM3
PWM4
PWM5
PWM6
PWM7
SCI0
SCI1
ADDR15
ADDR14
ADDR13
ADDR12
ADDR11
ADDR10
ADDR9
ADDR8
ADDR7
ADDR6
ADDR5
ADDR4
ADDR3
ADDR2
ADDR1
ADDR0
SPI0
DATA15
DATA14
DATA13
DATA12
DATA11
DATA10
DATA9
DATA8
Multiplexed
Wide Bus
DATA7
DATA6
DATA5
DATA4
DATA3
DATA2
DATA1
DATA0
CAN
Multiplexed
Narrow Bus
Internal Logic 2.5V
V
DD1,2
V
SS1,2
DATA7
DATA6
DATA5
DATA4
DATA3
DATA2
DATA1
DATA0
I/O Driver 5V
V
DDX
V
SSX
PLL 2.5V
V
DDPLL
A/D Converter 5V &
Voltage Regulator Reference
V
DDA
V
SSA
KWJ6
KWJ7
KWH0
KWH1
KWH2
KWH3
KWH4
KWH5
KWH6
KWH7
DDRH
V
SSPLL
PTJ
PTH
KWJ0
KWJ1
PTM
PTS
PTP
PTT
Voltage Regulator 5V & I/O
V
DDR
V
SSR
Pin
Interrupt
Logic
PH2
PH3
PH4
PH5
PH6
PH7
Not all functionality shown in this
Blockdiagramm is available in all Versions!
MOTOROLA
4
MC9S12B-Family
PRODUCT PROPOSAL, Rev 1.1, 16-Feb-01
Figure 1 Pin assignments 112 QFP for MC9S12B-Family
MC9S12B-Family
PRODUCT PROPOSAL, Rev 1.1, 16-Feb-01
ADDR5/DATA5/PB5
ADDR6/DATA6/PB6
ADDR7/DATA7/PB7
KWH7/PH7
KWH6/PH6
KWH5/PH5
KWH4/PH4
XCLKS/NOACC/PE7
MODB/IPIPE1/PE6
MODA/IPIPE0/PE5
ECLK/PE4
V
SSR
V
DDR
RESET
V
DDPLL
XFC
V
SSPLL
EXTAL
XTAL
TEST
KWH3/PH3
KWH2/PH2
KWH1/PH1
KWH0/PH0
LSTRB/TAGLO/PE3
R/W/PE2
IRQ/PE1
XIRQ/PE0
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
PWM3/KWP3/PP3
PWM2/KWP2/PP2
PWM1/KWP1/PP1
PWM0/KWP0/PP0
XADDR17/PK3
XADDR16/PK2
XADDR15/PK1
XADDR14/PK0
IOC0/PT0
IOC1/PT1
IOC2/PT2
IOC3/PT3
V
DD1
V
SS1
IOC4/PT4
IOC5/PT5
IOC6/PT6
IOC7/PT7
XADDR19/PK5
XADDR18/PK4
KWJ1/PJ1
KWJ0/PJ0
MODC/TAGHI/BKGD
ADDR0/DATA0/PB0
ADDR1/DATA1/PB1
ADDR2/DATA2/PB2
ADDR3/DATA3/PB3
ADDR4/DATA4/PB4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
112
111
110
109
108
107
106
105
104
103
102
101
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
PP4/KWP4/PWM4
PP5/KPW5/PWM5
PP6/KWP6/PWM6
PP7/KWP7/PWM7
PK7/ECS
V
DDX
V
SSX
PM0/RxCAN
PM1/TxCAN
PM2
PM3
PM4
PM5
PJ6/KWJ6
PJ7/KWJ7
VREGEN
PS7/SS0
PS6/SCK0
PS5/MOSI0
PS4/MISO0
PS3/TxD1
PS2/RxD1
PS1/TxD0
PS0/RxD0
PM6
PM7
V
SSA
V
RL
MC9S12B-Family
112LQFP
84
83
82
81
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
V
RH
V
DDA
PAD15/AN15
PAD07/AN07
PAD14/AN14
PAD06/AN06
PAD13/AN13
PAD05/AN05
PAD12/AN12
PAD04/AN04
PAD11/AN11
PAD03/AN03
PAD10/AN10
PAD02/AN02
PAD09/AN09
PAD01/AN01
PAD08/AN08
PAD00/AN00
V
SS2
V
DD2
PA7/ADDR15/DATA15
PA6/ADDR14/DATA14
PA5/ADDR13/DATA13
PA4/ADDR12/DATA12
PA3/ADDR11/DATA11
PA2/ADDR10/DATA10
PA1/ADDR9/DATA9
PA0/ADDR8/DATA8
Signals shown in
Bold
are not available on the 80 Pin Package
!!! Pin-out is Subject to Change !!!
MOTOROLA
5