Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 10

3-2 - MC9S12DP256B 1

Part 3-2 – The MC9S12DP256B


Freescale’s MC9S12 family contains many “flavors” of the chip.
Some of them are...

ROM RAM EEPROM Flash Serial PWM


SCI,SPI, 8-ch, 8-bit
MC9S12D64 - 4 KB 1 KB 64 KB or
CAN 4-ch, 16-bit
SCI,SPI, 8-ch, 8-bit
MC9S12DG128B - 8 KB 2 KB 128 KB or
CAN 4-ch, 16-bit
SCI,SPI, 8-ch, 8-bit
MC9S12DP256B - 12 KB 4 KB 256 KB or
CAN 4-ch, 16-bit
SCI,SPI, 8-ch, 8-bit
MC9S12DP512 - 14 KB 4 KB 512 KB or
CAN 4-ch, 16-bit

Dr. Bill Reid


3-2 - MC9S12DP256B 2

Modes of Operation

BDM – Background Debug Mode


The ROMCTL signal allows the setting of the ROMON bit in the MISC register thus controlling
whether the internal Flash is visible in the memory map. ROMON = 1 means the Flash is
visible in the memory map. The state of the ROMCTL pin is latched into the ROMON bit in
the MISC register on the rising edge of the reset signal.
3-2 - MC9S12DP256B 3

Modes of Operation (2)


3-2 - MC9S12DP256B 4

Single Chip Mode


• No External Addresses
• No External Data Buses
• Single Chip Stand Alone Mode
• Ports A & B – General Purpose I/O
• Selected by BKGD = 1, MODB = 0, MODA = 0

Note: Operating Modes are sensed at RESET


3-2 - MC9S12DP256B 5

Expanded Wide Mode


• Multiplexed 16-bit Address/16-bit Data Bus
• Port A – High Address and Data Bits
• Port B – Low Address and Data Bits
• Control Signals –
R/W# (PE2)
ECLK (PE4) What is ECLK?
LSTRB# (PE3) What is LSTRB#?
• Selected by BKGD = 1, MODB = 1, MODA = 1
3-2 - MC9S12DP256B 6

Expanded Wide Mode (2)

PB7-PB0 ADDR7-ADDR0/
DATA7-DATA0
ADDR15-ADDR8/
PA7-PA0 DATA15-DATA8

PE2 R/W#

PE4 ECLK

PE3 LSTRB#
3-2 - MC9S12DP256B 7

Expanded Narrow Mode


• Multiplexed 16-bit Address/8-bit Data Bus
• Port A – High Address Byte and Single Data Byte
• Port B – Low Address Byte
• Control Signals –
R/W# (PE2)
ECLK (PE4)
Why is LSTRB# not used?
• Selected by – BKGD = 1, MODB = 0, MODA = 1
3-2 - MC9S12DP256B 8

Expanded Narrow Mode (2)

PB7-PB0 ADDR7-ADDR0

ADDR15-ADDR8/
PA7-PA0 DATA7-DATA0

PE2 R/W#

PE4 ECLK
3-2 - MC9S12DP256B 9

MC9S12DP256B

Memory Map
3-2 - MC9S12DP256B 10

Memory Manager
Registers

Internal
EEPROM

MC9S12DP256B Internal
Programmable
Flash
Memory
Manager
16-bit Addresses
(64 KB) Internal
RAM

External
RAM
(256 KB)

You might also like