MC9S12E128 MOTOROLA [Motorola, Inc], MC9S12E128 Datasheet

no-image

MC9S12E128

Manufacturer Part Number
MC9S12E128
Description
MC9S12E-Family Device User Guide V01.04
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC9S12E128CFU
Manufacturer:
FREESCALE
Quantity:
3
Part Number:
MC9S12E128CFU
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC9S12E128CFU
Manufacturer:
FRE/MOT
Quantity:
20 000
Part Number:
MC9S12E128CFUE
Manufacturer:
FREESCALE
Quantity:
1 000
Part Number:
MC9S12E128CFUE
Manufacturer:
FREESCALE
Quantity:
5 530
Part Number:
MC9S12E128CFUE
Manufacturer:
FREESCALE
Quantity:
2 500
Part Number:
MC9S12E128CFUE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC9S12E128CFUE
Manufacturer:
FREESCALE
Quantity:
2 500
Part Number:
MC9S12E128CPVE
Manufacturer:
FREESCALE
Quantity:
1 560
Part Number:
MC9S12E128MFUE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
MC9S12E128MPVE
Manufacturer:
Freescale Semiconductor
Quantity:
135
Freescale Semiconductor, Inc.
DOCUMENT NUMBER
9S12E128DGV1/D
MC9S12E-Family
Device User Guide
V01.04
Original Release Date: 4 APR 2003
Revised: 04 NOV 2003
Motorola, Inc.
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its
products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability,
including without limitation consequential or incidental damages. “Typical” parameters which may be provided in Motorola data sheets and/or specifications can and do vary in
different applications and actual performance may vary over time. All operating parameters, including “Typicals” must be validated for each customer application by customer’s
technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components
in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product
could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall
indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney
fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was
negligent regarding the design or manufacture of the part. Motorola and
are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action
Employer.
©Motorola, Inc., 2003
1
For More Information On This Product,
Go to: www.freescale.com

Related parts for MC9S12E128

MC9S12E128 Summary of contents

Page 1

Freescale Semiconductor, Inc. Device User Guide Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola ...

Page 2

Freescale Semiconductor, Inc. Revision History Version Revision Author Number Date 01.00 04.APR.03 01.01 24.JUN.03 01.02 9.OCT.03 01.03 31.OCT.03 01.04 04.NOV.03 Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or ...

Page 3

Freescale Semiconductor, Inc. Table of Contents Section 1 Introduction 1.1 Overview ...

Page 4

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 2.3.21 PM6 / SDA — Port M I/O Pin ...

Page 5

Freescale Semiconductor, Inc. 4.3 Security ...

Page 6

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Section 13 Port Integration Module (PIM) Block Description Section 14 Pulse width Modulator with Fault protection (PMF) Block Descrip- tion Section 15 Pulse Width Modulator (PWM) Block Description Section 16 Serial ...

Page 7

Freescale Semiconductor, Inc. B.3.2 Capacitive Loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 8

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 8 For More Information On This Product, Go to: www.freescale.com ...

Page 9

... Figure 0-1 Order Part Number Coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Figure 1-1 MC9S12E-Family Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Figure 1-2 MC9S12E256 User Configurable Memory Map . . . . . . . . . . . . . . . . . . . . . . 23 Figure 1-3 MC9S12E128 User Configurable Memory Map . . . . . . . . . . . . . . . . . . . . . . 24 Figure 1-4 MC9S12E64 User Configurable Memory Map . . . . . . . . . . . . . . . . . . . . . . . 25 Figure 1-5 MC9S12E32 User configurable Memory Map . . . . . . . . . . . . . . . . . . . . . . . . 26 Figure 2-1 Pin assignments 112 LQFP for MC9S12E-Family Figure 2-2 Pin assignments in 80 QFP for MC9S12E-Family ...

Page 10

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 10 For More Information On This Product, Go to: www.freescale.com ...

Page 11

Freescale Semiconductor, Inc. List of Tables Table 0-1 Document References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 12

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Table B-10 5V ATD Operating Characteristics ...

Page 13

Freescale Semiconductor, Inc. Preface The Device User Guide provides information about the MC9S12E-Family devices made up of standard HCS12 blocks and the HCS12 processor core. This document is part of the customer documentation. A complete set of device manuals also ...

Page 14

... Go to: www.freescale.com Package Options FC = 64QFN FU = 80QFP PV = 112LQFP Temperature Options C = -40°C to 85° -40°C to 105° -40°C to 125°C Description MC9S12E256 MC9S12E256 MC9S12E256 MC9S12E256 MC9S12E128 MC9S12E128 MC9S12E128 MC9S12E128 MC9S12E64 MC9S12E64 MC9S12E64 MC9S12E64 MC9S12E32 MC9S12E32 ...

Page 15

... Freescale Semiconductor, Inc. Table 0-3 summarizes the package option and size configuration. Table 0-3 Package Option Summary Package Device 80QFP MC9S12E256 112LQFP MC9S12E256 80QFP MC9S12E128 112LQFP MC9S12E128 80QFP MC9S12E64 112LQFP MC9S12E64 64QFN MC9S12E32 80QFP MC9S12E32 NOTES 85¯ 25MHz I/O is the sum of ports capable to act as digital input or output. ...

Page 16

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 16 For More Information On This Product, Go to: www.freescale.com ...

Page 17

Freescale Semiconductor, Inc. Section 1 Introduction 1.1 Overview The MC9S12E-Family is a 112/80 pin low cost general purpose MCU family. All members of the MC9S12E-Family are comprised of standard on-chip peripherals including a 16-bit central processing unit (HCS12 CPU), up ...

Page 18

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 • Analog-to-Digital Converter (ADC) – 16-channel module with 10-bit resolution – External conversion trigger capability • Three 4-channel Timers (TIM) – Programmable input capture or output compare channels – Simple PWM ...

Page 19

Freescale Semiconductor, Inc. – Pierce or low current Colpitts oscillator – Phase-locked loop clock frequency multiplier – Self Clock mode in absence of external clock – Low power 0.5 to 16Mhz crystal oscillator reference clock • Operating frequency – 50MHz ...

Page 20

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 • Low power modes – Stop Mode – Pseudo Stop Mode – Wait Mode 20 For More Information On This Product, Go to: www.freescale.com ...

Page 21

Freescale Semiconductor, Inc. 1.4 Block Diagram Figure 1-1 MC9S12E-Family Block Diagram 32K - 256K Byte Flash EEPROM 2K -16K Byte RAM VDDR Voltage Regulator VSSR BKGD MODC/TAGHI Single-wire Background Debug Module XFC Clock and EXTAL CRG Reset XTAL Generation RESET ...

Page 22

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 1.5 Device Memory Map Table 1-1 shows the device register map of the MC9S12E-Family after reset. The following figures (, Figure 1-3, and Figure 1-4) illustrate the full device memory map ...

Page 23

Freescale Semiconductor, Inc. $0000 $0400 $4000 $8000 EXT $C000 $FF00 VECTORS VECTORS $FFFF NORMAL EXPANDED SINGLE CHIP The figure shows a useful map, which is not the map out of reset. After reset the map is: $0000 - $03FF: Register ...

Page 24

... SINGLE CHIP The figure shows a useful map, which is not the map out of reset. After reset the map is: $0000 - $03FF: Register Space $0000 - $1FFF: 8K RAM (only 7K RAM visible $0400 - $1FFF) Figure 1-3 MC9S12E128 User Configurable Memory Map 24 For More Information On This Product, EXT ...

Page 25

Freescale Semiconductor, Inc. $0000 $0400 $3000 $4000 $8000 EXT $C000 $FF00 VECTORS VECTORS $FFFF NORMAL EXPANDED SINGLE CHIP The figure shows a useful map, which is not the map out of reset. After reset the map is: $0000 - $03FF: ...

Page 26

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0000 $0400 $3000 $4000 $8000 $C000 $FF00 VECTORS VECTORS $FFFF NORMAL EXPANDED SINGLE CHIP The figure shows a useful map, which is not the map out of reset. After reset the ...

Page 27

Freescale Semiconductor, Inc. $0000 - $000F MEBI map (HCS12 Multiplexed External Bus Interface) Addres Name Bit 7 s Read : $0000 PORTA Bit 7 Write : Read : $0001 PORTB Bit 7 Write : Read : $0002 ...

Page 28

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0000 - $000F Read : $000B MODE Write : Read : $000C PUCR Write : Read : $000D RDRIV Write : Read : $000E EBICTL Write : Read : $000F Reserved ...

Page 29

Freescale Semiconductor, Inc. $0015 - $0016 INT map (HCS12 Interrupt) Addres Name Bit 7 s Read 0 : $0015 ITCR Write : Read : $0016 ITEST INTE Write : $0017 - $0017 MMC map ...

Page 30

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $001A - $001B Addres Name s Read : $001A PARTIDH Write : Read : $001B PARTIDL Write : $001C - $001D User Guide) Addres Name s Read : $001C MEMSIZ0 Write ...

Page 31

Freescale Semiconductor, Inc. $0020 - $002F DBG (including BKP) map 1of 1 (HCS12 Debug) Addres Name Bit 7 s DBGC1 read $0020 DBGEN write - DBGSC read AF $0021 write - read DBGTBH Bit 15 $0022 write - DBGTBL read ...

Page 32

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0032 - $0033 Addres Name s Read : $0032 PORTK Write : Read : $0033 DDRK Write : $0034 - $003F Addres Name s Read : $0034 SYNR Write : Read ...

Page 33

Freescale Semiconductor, Inc. $0034 - $003F CRG (Clock and Reset Generator) Addres Name Bit 7 s Read : $003C COPCTL WCOP RSBCK Write : Read : FORBYP $003D RTIBYP TEST ONLY Write : Read TCTL7 : CTCTL $003E TEST ONLY ...

Page 34

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0040 - $006F Addres Name s Read : $0046 TSCR1 Write : Read : $0047 TTOV Write : Read : $0048 TCTL1 Write : Read : $0049 Reserved Write : Read ...

Page 35

Freescale Semiconductor, Inc. $0040 - $006F TIM0 (Timer 16 Bit 4 Channels) Addres Name Bit 7 s Read 0 : $0051 Reserved Write : Read 0 : $0052 Reserved Write : Read 0 : $0053 Reserved Write : Read 0 ...

Page 36

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0040 - $006F Addres Name s Read : $005C TC6 (hi) Write : Read : $005D TC6 (lo) Write : Read : $005E TC7 (hi) Write : Read : $005F TC7 ...

Page 37

Freescale Semiconductor, Inc. $0040 - $006F TIM0 (Timer 16 Bit 4 Channels) Addres Name Bit 7 s Read 0 : $0067 Reserved Write : Read 0 : $0068 Reserved Write : Read 0 : $0069 Reserved Write : Read 0 ...

Page 38

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0080 - $00AF Addres Name s Read : $0080 ATDCTL0 Write : Read : ETRIGS $0081 ATDCTL1 Write : Read : $0082 ATDCTL2 Write : Read : $0083 ATDCTL3 Write : ...

Page 39

Freescale Semiconductor, Inc. $0080 - $00AF ATD (Analog to Digital Converter 10 Bit 16 Channel) Addres Name Bit 7 s Read CCF7 : $008B ATDSTAT1 Write : Read : $008C ATDDIEN0 IEN15 Write : Read : $008D ATDDIEN1 IEN7 Write ...

Page 40

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0080 - $00AF Addres Name s Read : $0096 ATDDR3H Write : Read : $0097 ATDDR3L Write : Read : $0098 ATDDR4H Write : Read : $0099 ATDDR4L Write : Read ...

Page 41

Freescale Semiconductor, Inc. $0080 - $00AF ATD (Analog to Digital Converter 10 Bit 16 Channel) Addres Name Bit 7 s Read Bit7 : $00A1 ATDDR8L Write : Read Bit15 : $00A2 ATDDR9H Write : Read Bit7 : $00A3 ATDDR9L Write ...

Page 42

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0080 - $00AF Addres Name s Read : $00AC ATDDR14H Write : Read : $00AD ATDDR14L Write : Read : $00AE ATDDR15H Write : Read : $00AF ATDDR15L Write : NOTES: ...

Page 43

Freescale Semiconductor, Inc. $00C8 - $00CF SCI0 (Asynchronous Serial Interface) Addres Name Bit 7 s Read : $00CB SCICR2 TIE Write : Read TDRE : $00CC SCISR1 Write : Read 0 : $00CD SCISR2 Write : Read R8 : $00CE ...

Page 44

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $00D0 - $00D7 Read : $00D4 SCISR1 Write : Read : $00D5 SCISR2 Write : Read : $00D6 SCIDRH Write : Read : $00D7 SCIDRL Write : NOTES: 1. TXPOL and ...

Page 45

Freescale Semiconductor, Inc. $00D8 - $00DF SPI (Serial Peripheral Interface) Addres Name Bit 7 s Read : $00DD SPIDR Bit7 Write : Read 0 : $00DE Reserved Write : Read 0 : $00DF Reserved Write : $00E0 - $00E7 IIC ...

Page 46

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $00E0 - $00E7 Addres Name s Read : $00E5 Reserved Write : Read : $00E6 Reserved Write : Read : $00E7 Reserved Write : $00E8 - $00EF Addres Name s Read ...

Page 47

Freescale Semiconductor, Inc. $00E8 - $00EF SCI2 (Asynchronous Serial Interface) Read 0 : $00ED SCISR2 Write : Read R8 : $00EE SCIDRH Write : Read R7 : $00EF SCIDRL Write T7 : NOTES: 1. TXPOL and RXPOL are available in ...

Page 48

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $00F4 - $00F7 Addres Name s Read : $00F4 DACC0 Write : Read : $00F5 DACC1 Write : Read : $00F6 DACD Write : Read : $00F7 DACD Write : $00F8 ...

Page 49

Freescale Semiconductor, Inc. $0100 - $010F Flash Control Register Addres Name Bit 7 s Read : $0103 FCNFG CBEIE Write : Read : FPOPE $0104 FPROT N Write : Read : $0105 CBEIF FSTAT Write : Read 0 : $0106 ...

Page 50

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0100 - $010F Addres Name s Read : $010D Reserved Write : Read : $010E Reserved Write : Read : $010F Reserved Write : $0110 - $013F Read $0110 : - ...

Page 51

Freescale Semiconductor, Inc. $0140 - $016F TIM1 (Timer 16 Bit 4 Channels) Addres Name Bit 7 s Read Bit 7 : $0145 TCNT (lo) Write : Read : $0146 TSCR1 TEN Write : Read : $0147 TTOV TOV7 Write : ...

Page 52

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0140 - $016F Addres Name s Read : $0150 Reserved Write : Read : $0151 Reserved Write : Read : $0152 Reserved Write : Read : $0153 Reserved Write : Read ...

Page 53

Freescale Semiconductor, Inc. $0140 - $016F TIM1 (Timer 16 Bit 4 Channels) Addres Name Bit 7 s Read : $015B TC5 (lo) Bit 7 Write : Read : $015C TC6 (hi) Bit 15 Write : Read : $015D TC6 (lo) ...

Page 54

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0140 - $016F Addres Name s Read : $0166 Reserved Write : Read : $0167 Reserved Write : Read : $0168 Reserved Write : Read : $0169 Reserved Write : Read ...

Page 55

Freescale Semiconductor, Inc. $0170 - $017F Reserved Read 0 $0110 : - Reserved Write $013F : $0180 - $01AF TIM2 (Timer 16 Bit 4 Channels) Addres Name Bit 7 s Read : $0180 TIOS IOS7 Write : Read 0 : ...

Page 56

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0180 - $01AF Addres Name s Read : $0189 Reserved Write : Read : $018A TCTL3 Write : Read : $018B Reserved Write : Read : $018C TIE Write : Read ...

Page 57

Freescale Semiconductor, Inc. $0180 - $01AF TIM2 (Timer 16 Bit 4 Channels) Addres Name Bit 7 s Read 0 : $0194 Reserved Write : Read 0 : $0195 Reserved Write : Read 0 : $0196 Reserved Write : Read 0 ...

Page 58

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0180 - $01AF Addres Name s Read : $019F TC7 (lo) Write : Read : $01A0 PACTL Write : Read : $01A1 PAFLG Write : Read : $01A2 PACNT (hi) Write ...

Page 59

Freescale Semiconductor, Inc. $0180 - $01AF TIM2 (Timer 16 Bit 4 Channels) Addres Name Bit 7 s Read 0 : $01AA Reserved Write : Read 0 : $01AB Reserved Write : Read 0 : $01AC Reserved Write : Read 0 ...

Page 60

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $01E0 - $01FF Addres Name s Read : $01E0 PWME Write : Read : $01E1 PWMPOL Write : Read : $01E2 PWMCLK Write : Read : $01E3 PWMPRCLK Write : Read ...

Page 61

Freescale Semiconductor, Inc. $01E0 - $01FF PWM (Pulse Width Modulator) Addres Name Bit 7 s Read 0 : $01EB PWMSCNTB Write : Read Bit 7 : $01EC PWMCNT0 Write 0 : Read Bit 7 : $01ED PWMCNT1 Write 0 : ...

Page 62

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $01E0 - $01FF Addres Name s Read : $01F6 PWMPER4 Write : Read : $01F7 PWMPER5 Write : Read : $01F8 PWMDTY0 Write : Read : $01F9 PWMDTY1 Write : Read ...

Page 63

Freescale Semiconductor, Inc. $0200 - $023F PMF (Pulse width Modulator with Fault protection) Addres Name Bit 7 s Read : $0200 PMFCFG0 WP Write : Read : $0201 PMFCFG1 ENHA Write : Read 0 : $0202 PMFCFG2 Write : Read ...

Page 64

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0200 - $023F Addres Name s Read : $020B Reserved Write : Read : $020C PMFOUTC Write : Read : $020D PMFOUTB Write : Read : $020E PMFDTMS Write : Read ...

Page 65

Freescale Semiconductor, Inc. $0200 - $023F PMF (Pulse width Modulator with Fault protection) Addres Name Bit 7 s Read : $0216 PMFVAL3 Bit 15 Write : Read : $0217 PMFVAL3 Bit 7 Write : Read : $0218 PMFVAL4 Bit 15 ...

Page 66

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0200 - $023F Addres Name s Read : $0221 PMFFQCA Write : Read : $0222 PMFCNTA Write : Read : $0223 PMFCNTA Write : Read : $0224 PMFMODA Write : Read ...

Page 67

Freescale Semiconductor, Inc. $0200 - $023F PMF (Pulse width Modulator with Fault protection) Addres Name Bit 7 s Read 0 : $022C PMFMODB Write : Read : $022D PMFMODB Bit 7 Write : Read 0 : $022E PMFDTMB Write : ...

Page 68

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0200 - $023F Addres Name s Read : $0237 PMFDTMC Write : Read : $0238 Reserved Write : Read : $0239 Reserved Write : Read : $023A Reserved Write : Read ...

Page 69

Freescale Semiconductor, Inc. $0240 - $027F PIM (Port Interface Module) Read : $0240 PTT PTT7 Write : Read PTIT7 : $0241 PTIT Write : Read : $0242 DDRT DDRT7 DDRT7 DDRT5 DDRT4 DDRT3 DDRT2 DDRT1 DDRT0 Write : Read : ...

Page 70

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0240 - $027F Read : $024C PERS Write : Read : $024D PPSS Write : Read : $024E WOMS Write : Read : $024F Reserved Write : Read : $0250 PTM ...

Page 71

Freescale Semiconductor, Inc. $0240 - $027F PIM (Port Interface Module) Read 0 : $0258 PTP Write : Read 0 : $0259 PTIP Write : Read 0 : $025A DDRP Write : Read 0 : $025B RDRP Write : Read 0 ...

Page 72

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $0240 - $027F Read : $0264 PERQ Write : Read : $0265 PPSQ Write : Read : $0266 Reserved Write : Read : $0267 Reserved Write : Read : $0268 PTU ...

Page 73

Freescale Semiconductor, Inc. $0240 - $027F PIM (Port Interface Module) Read : $0270 PTAD(H) PTAD15 PTAD14 PTAD13 PTAD12 PTAD11 PTAD10 Write : Read : $0271 PTAD(L) PTAD7 Write : Read PTIAD15 PTIAD14 PTIAD13 PTIAD12 PTIAD11 PTIAD10 PTIAD9 : $0272 PTIAD(H) ...

Page 74

... The part ID is located in two 8-bit registers PARTIDH and PARTIDL (addresses $001A and $001B after reset. The read-only value is a unique part ID for each revision of the chip. Table 1-2 shows the assigned part ID numbers. Table 1-2 Assigned Part ID Numbers Device MC9S12E256 MC9S12E128 MC9S12E64 MC9S12E32 NOTES: 1. The coding is as follows: Bit 15-12: Major family identifier ...

Page 75

... Table 1-3 shows the read-only values of these registers. Refer to HCS12 Module Mapping Control (MMC) Block Guide for further details. Device MC9S12E32 MC9S12E32 MC9S12E64 MC9S12E64 MC9S12E128 MC9S12E128 MC9S12E256 MC9S12E256 For More Information On This Product, Device User Guide — 9S12E128DGV1/D V01.04 Table 1-3 Memory size registers Register name MEMSIZ0 ...

Page 76

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Section 2 Signal Description 2.1 Device Pinout PM3 1 RXD2/PM4 2 TXD2/PM5 3 SDA/PM6 4 SCL/PM7 5 FAULT0/PQ0 6 FAULT1/PQ1 7 FAULT2/PQ2 8 FAULT3/PQ3 9 ADDR0/DATA0/PB0 10 ADDR1/DATA1/PB1 11 ADDR2/DATA2/PB2 12 ...

Page 77

Freescale Semiconductor, Inc. PM3 1 RXD2/PM4 2 TXD2/PM5 3 SDA/PM6 4 SCL/PM7 5 FAULT0/PQ0 6 FAULT1/PQ1 7 FAULT2/PQ2 8 FAULT3/PQ3 9 VDDX 10 VSSX 11 IS0/PQ4 12 IS1/PQ5 13 IS2/PQ6 14 MODC/TAGHI/BKGD 15 IOC04/PT0 16 IOC05/PT1 17 IOC06/PT2 18 IOC07/PT3 ...

Page 78

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 2.2 Signal Properties Summary Pin Name Pin Name Pin Name Function 1 Function 2 Function 3 EXTAL — — XTAL — — XFC — — RESET — — BKGD MODC TAGHI ...

Page 79

Freescale Semiconductor, Inc. Pin Name Pin Name Pin Name Function 1 Function 2 Function 3 PQ[6:4] IS[6:4] — PQ[3:0] FAULT[3:0] — PS7 SS — PS6 SCK — PS5 MOSI — PS4 MISO — PS3 TXD1 — PS2 RXD1 — PS1 ...

Page 80

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 2.3 Detailed Signal Descriptions 2.3.1 EXTAL, XTAL — Oscillator Pins EXTAL and XTAL are the external clock and crystal driver pins. On reset all the device clocks are derived from the ...

Page 81

Freescale Semiconductor, Inc. 2.3.8 PE7 / NOACC / XCLKS — Port E I/O Pin 7 PE7 is a general purpose input or output pin. During MCU expanded modes of operation, the NOACC signal, when enabled, is used to indicate that ...

Page 82

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Figure 2-3 Colpitts Oscillator Connections (PE7=1) EXTAL MCU * Due to the nature of a translated ground Colpitts oscillator a DC voltage bias is applied to the crystal .Please contact the ...

Page 83

Freescale Semiconductor, Inc. instruction queue tracking signal IPIPE1. This pin is an input with a pull-down device which is only active when RESET is low. PE6 is not available in the 80 pin package version. 2.3.10 PE5 / MODA / ...

Page 84

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 2.3.14 PE1 / IRQ — Port E input Pin 1 / Maskable Interrupt Pin PE1 is always an input and can always be read. The PE1 pin is also the IRQ ...

Page 85

Freescale Semiconductor, Inc. 2.3.19 PAD[15:0] / AN[15:0] / KWAD[15:0] — Port AD I/O Pins [15:0] PAD[15:0] are the analog inputs for the analog to digital converter (ADC). They can also be configured as general purpose digital input or output pin. ...

Page 86

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 2.3.25 PM1 / DAO1 — Port M I/O Pin 1 PM1 is a general purpose input or output pin. When the Digital to Analog module 1 (DAC1) is enabled the PM1 ...

Page 87

Freescale Semiconductor, Inc. 2.3.31 PS6 / SCK — Port S I/O Pin 6 PS6 is a general purpose input or output pin. When the Serial Peripheral Interface (SPI) is enabled PS6 becomes the serial clock pin, SCK. While in reset ...

Page 88

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 2.3.37 PS0 / RXD0 — Port S I/O Pin 0 PS0 is a general purpose input or output. When the Serial Communications Interface 0 (SCI0) receiver is enabled the PS0 pin ...

Page 89

Freescale Semiconductor, Inc. impedance input pins. Consult the Port Integration Module (PIM) PIM_9E128 Block Guide, TIM_16B4C Block Guide, and the PWM_8B6C Block Guide for information about pin configurations. 2.4 Power Supply Pins 2.4.1 VDDX,VSSX — Power & Ground Pins for ...

Page 90

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Table 2-2 MC9S12E-Family Power and Ground Connection Summary Nominal Mnemonic Voltage VDD1 2.5 V VDD2 VSS1 0V VSS2 VDDR 3.3/5.0 V VSSR 0 V VDDX 3.3/5.0 V VSSX 0 V VDDA ...

Page 91

Freescale Semiconductor, Inc. Section 3 System Clock Description The Clock and Reset Generator provides the internal clock signals for the core and all peripheral modules. Figure 3-1 shows the clock connections from the CRG to all modules. Consult the CRG ...

Page 92

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Section 4 Modes of Operation 4.1 Overview Eight possible modes determine the operating configuration of the MC9S12E-Family. Each mode has an associated default memory map and external bus configuration controlled by ...

Page 93

Freescale Semiconductor, Inc. 4.3 Security The device will make available a security feature preventing the unauthorized read and write of the memory contents. This feature allows: • Protection of the contents of FLASH, • Operation in single-chip mode, • Operation ...

Page 94

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 an external program (again through BDM commands). Note that if the part goes through a reset before the security bits are reprogrammed to the unsecure state, the part will be secured ...

Page 95

Freescale Semiconductor, Inc. Section 5 Resets and Interrupts 5.1 Overview Consult the Exception Processing section of the CPU12 Reference Manual for information on resets and interrupts. System resets can be generated through external control of the RESET pin, through the ...

Page 96

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 $FFC2, $FFC3 $FFC0, $FFC1 $FFBA to $FFBF $FFB8, $FFB9 $FFB6, $FFB7 Standard Timer 1 channel 4 $FFB4, $FFB5 Standard Timer 1 channel 5 $FFB2, $FFB3 Standard Timer 1 channel 6 $FFB0, ...

Page 97

Freescale Semiconductor, Inc. COP Watchdog Reset 5.3.1 Effects of Reset When a reset occurs, MCU registers and control bits are changed to known start-up states. Refer to the respective module Block Guides for register reset states. Refer to the HCS12 ...

Page 98

... Consult the FTS32K Block Guide for information about the flash module for the MC9S12E32. Consult the FTS128K1 Block Guide for information about the flash module for the MC9S12E64. Consult the FTS128K1 Block Guide for information about the flash module for the MC9S12E128. 98 For More Information On This Product, Go to: www ...

Page 99

Freescale Semiconductor, Inc. Consult the FTS256K2 Block Guide for information about the flash module for the MC9S12E256. The "S12 LRAE" generic Load RAM and Execute (LRAE) program which will be programmed into the flash memory of this device ...

Page 100

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Description There are three Serial Communications Interface modules (SCI0, SCI1, SCI2). Consult the SCI Block Guide for information about the Serial Communications Interface module. Section 17 Serial Peripheral Interface (SPI) Block ...

Page 101

Freescale Semiconductor, Inc. • Central point of the ground star should be the VSSR pin. • Use low ohmic low inductance connections between VSS1, VSS2 and VSSR. • VSSPLL must be directly connected to VSSR. • Keep traces of VSSPLL, ...

Page 102

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Figure 20-1 Recommended PCB Layout (112 LQFP) VDDX C6 VSSX 102 For More Information On This Product, NOTE: Oscillator in Colpitts mode. VSSA VSS1 VSSR VDDR Q1 VSSPLL VDDPLL R1 Go ...

Page 103

Freescale Semiconductor, Inc. Figure 20-2 Recommended PCB Layout (80 QFP) NOTE: Oscillator in Colpitts mode. VDDX C6 VSSX VSSR VDDR For More Information On This Product, Go to: www.freescale.com Device User Guide — 9S12E128DGV1/D V01.04 VSSA C3 VSS1 VSS2 Q1 ...

Page 104

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 104 For More Information On This Product, Go to: www.freescale.com ...

Page 105

Freescale Semiconductor, Inc. Appendix A Electrical Characteristics A.1 General NOTE: The electrical characteristics given in this section are preliminary and should be used as a guide only. Values cannot be guaranteed by Motorola and are subject to change without notice. ...

Page 106

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 VSS1 and VSS2 are internally connected by metal. VDD1 and VDD2 are internally connected by metal. VDDA, VDDX, VDDR as well as VSSA, VSSX, VSSR are connected by anti-parallel diodes for ...

Page 107

Freescale Semiconductor, Inc. A.1.5 Absolute Maximum Ratings Absolute maximum ratings are stress ratings only. A functional operation under or outside those maxima is not guaranteed. Stress beyond those limits may affect the reliability or cause permanent damage of the device. ...

Page 108

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 A.1.6 ESD Protection and Latch-up Immunity All ESD testing is in conformity with CDF-AEC-Q100 Stress test qualification for Automotive Grade Integrated Circuits. During the device qualification ESD stresses were performed for ...

Page 109

Freescale Semiconductor, Inc. NOTE: Instead of specifying ambient temperature all parameters are specified for the more meaningful silicon junction temperature. For power dissipation calculations refer to Section A.1.8 Power Dissipation and Thermal Characteristics. Rating I/O, Regulator and Analog Supply Voltage ...

Page 110

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 1. Internal Voltage Regulator disabled INT DD Which is the sum of all output currents on I/O ports associated with VDDX and VDDM. For R is valid: DSON ...

Page 111

Freescale Semiconductor, Inc. Table A-5 Thermal Package Characteristics Num Thermal Resistance LQFP112, single sided PCB Thermal Resistance LQFP112, double sided PCB 2 T with 2 internal planes 3 T Junction to Board LQFP112 4 T Junction to ...

Page 112

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Conditions are shown in Table A-4 unless otherwise noted Num C Rating P Input High Voltage 1 T Input High Voltage P Input Low Voltage 2 T Input Low Voltage 3 ...

Page 113

Freescale Semiconductor, Inc. Table A-7 Preliminary 3.3V I/O Characteristics Conditions are shown in Table A-4 unless otherwise noted Num C Rating P Input High Voltage 1 T Input High Voltage P Input Low Voltage 2 T Input Low Voltage 3 ...

Page 114

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 A.1.10 Supply Currents This section describes the current consumption characteristics of the device as well as the conditions for the measurements. A.1.10.1 Measurement Conditions All measurements are without output loads. Unless ...

Page 115

Freescale Semiconductor, Inc. Table A-8 Supply Current Characteristics Conditions are shown in Table A-4 unless otherwise noted Num C Run supply currents 1 P Single Chip, Internal regulator enabled Wait Supply current Pseudo Stop Current (RTI and ...

Page 116

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 116 For More Information On This Product, Go to: www.freescale.com ...

Page 117

Freescale Semiconductor, Inc. Appendix B Electrical Specifications B.1 Voltage Regulator (VREG_3V3) Operating Characteristics This section describes the characteristics of the on chip voltage regulator. Table 20-2 VREG_3V3 - Operating Conditions Num C Characteristic 1 P Input Voltages Regulator Current 2 ...

Page 118

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 B.2 Chip Power-up and LVI/LVR graphical explanation Voltage regulator sub modules LVI (low voltage interrupt), POR (power-on reset) and LVR (low voltage reset) handle chip power-up or drops of the supply ...

Page 119

Freescale Semiconductor, Inc. B.3.2 Capacitive Loads The capacitive loads are specified in Table B-1. Ceramic capacitors with X7R dielectricum are required. Table B-1 Voltage Regulator - Capacitive Loads Num Characteristic 1 VDD external capacitive load 2 VDDPLL external capacitive load ...

Page 120

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 120 For More Information On This Product, Go to: www.freescale.com ...

Page 121

Freescale Semiconductor, Inc. B.4 Reset, Oscillator and PLL This section summarizes the electrical characteristics of the various startup scenarios for Oscillator and Phase-Locked-Loop (PLL). B.4.1 Startup Table B-2 summarizes several startup characteristics explained in this section. Detailed description of the ...

Page 122

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 B.4.1.4 External Reset When external reset is asserted for a time greater than PW reset, and the CPU starts fetching the reset vector without doing a clock quality check, if there ...

Page 123

Freescale Semiconductor, Inc. B.4.2 Oscillator The device features an internal Colpitts and Pierce oscillator. The selection of Colpitts oscillator or Pierce oscillator/external clock depends on the XCLKS signal which is sampled during reset. Pierce oscillator/external clock mode allows the input ...

Page 124

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 B.4.3 Phase Locked Loop The oscillator provides the reference clock for the PLL. The PLL´s Voltage Controlled Oscillator (VCO) is also the system clock source in self clock mode. B.4.3.1 XFC ...

Page 125

Freescale Semiconductor, Inc. The loop bandwidth f should be chosen to fulfill the Gardner’s stability criteria by at least a factor of 10, C typical values are 50. ζ = 0.9 ensures a good transient response. 2 ζ ...

Page 126

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 accordingly.The adjustment is done continuously with no abrupt changes in the clock output frequency. Noise, voltage, temperature and other factors cause slight variations in the control loop resulting in a clock ...

Page 127

Freescale Semiconductor, Inc. J(N) 1 This is very important to notice with respect to timers, serial modules where a pre-scaler will eliminate the effect of the jitter to a large extent. Conditions are shown in Table A-4 unless otherwise noted ...

Page 128

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 128 For More Information On This Product, Go to: www.freescale.com ...

Page 129

Freescale Semiconductor, Inc. B.5 Flash NVM B.5.1 NVM timing The time base for all NVM program or erase operations is derived from the oscillator. A minimum oscillator frequency f is required for performing program or erase operations. The NVM modules ...

Page 130

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 B.5.1.4 Mass Erase Erasing a NVM block takes: The setup times can be ignored for this operation. B.5.1.5 Blank Check The time it takes to perform a blank check on the ...

Page 131

Freescale Semiconductor, Inc. The failure rates for data retention and program/erase cycling are specified at <2ppm defects over lifetime at the operating conditions noted. The program/erase cycle count on the sector is incremented every time a sector or mass erase ...

Page 132

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 132 For More Information On This Product, Go to: www.freescale.com ...

Page 133

Freescale Semiconductor, Inc. B.6 SPI Characteristics This section provides electrical parametrics and ratings for the SPI. In Table B-7 the measurement conditions are listed. Table B-7 Measurement Conditions Description Drive mode Load capacitance C LOAD, on all outputs Thresholds for ...

Page 134

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01. (OUTPUT SCK (CPOL = 0) (OUTPUT) 4 SCK (CPOL = 1) (OUTPUT) 5 MISO MSB IN (INPUT) 9 MOSI PORT DATA MASTER MSB OUT (OUTPUT) 1.If configured ...

Page 135

Freescale Semiconductor, Inc. B.6.2 Slave Mode In Figure B-6 the timing diagram for slave mode with transmission format CPHA=0 is depicted. SS (INPUT) SCK (CPOL = 0) (INPUT) 2 SCK (CPOL = 1) 10 (INPUT) 7 MISO see SLAVE MSB ...

Page 136

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 SS (INPUT SCK (CPOL = 0) (INPUT) 4 SCK (CPOL = 1) (INPUT) 9 MISO see SLAVE note (OUTPUT MOSI MSB IN (INPUT) NOTE: Not defined! Figure ...

Page 137

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 For More Information On This Product, Go to: www.freescale.com 137 ...

Page 138

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 138 For More Information On This Product, Go to: www.freescale.com ...

Page 139

Freescale Semiconductor, Inc. B.7 ATD Characteristics This section describes the characteristics of the analog to digital converter. The ATD is specified and tested for both the 3.3V and 5V range. For ranges between 3.3V and 5V the ATD accuracy is ...

Page 140

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 B.7.2 ATD Operating Characteristics - 3.3V Range The Table B-11 shows conditions under which the ATD operates. The following constraints exist to obtain full-scale, full range results: VSSA ≤ VRL ≤ ...

Page 141

Freescale Semiconductor, Inc. B.7.3.2 Source capacitance When sampling an additional internal capacitor is switched to the input. This can cause a voltage drop due to charge sharing with the external and the pin capacitance. For a maximum sampling error of ...

Page 142

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 B.7.4 ATD accuracy - 5V Range Table B-13 specifies the ATD conversion performance excluding any errors due to current injection, input capacitance and source resistance. Table B-13 5V ATD Conversion Performance ...

Page 143

Freescale Semiconductor, Inc. NOTES: 1. These values include the quantization error which is inherently 1/2 count for any A/D converter. For the following definitions see also Figure B-8. Differential Non-Linearity (DNL) is defined as the difference between two adjacent switching ...

Page 144

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 DNL LSB V i-1 $3FF $3FE $3FD $3FC $3FB $3FA $3F9 $3F8 $3F7 $3F6 $3F5 $3F4 $3F3 ...

Page 145

Freescale Semiconductor, Inc. B.8 DAC Characteristics This section describes the characteristics of the digital to analog converter. B.8.1 DAC Operating Characteristics Table B-15 DAC Electrical Characteristics (Operating) Num C Characteristic 1 D DAC Supply D 2 DAC Supply Current D ...

Page 146

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 146 For More Information On This Product, Go to: www.freescale.com ...

Page 147

Freescale Semiconductor, Inc. Appendix C External Bus Timing A timing diagram of the external multiplexed-bus is illustrated in Figure C-1 with the actual timing values shown on table Table C-1. All major bus signals are included in the diagram. While ...

Page 148

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Figure C-1 General External Bus Timing ECLK PE4 5 9 Addr/Data data (read) PA, PB Addr/Data data (write) PA Non-Multiplexed Addresses PK5:0 ECS PK7 24 R/W PE2 27 LSTRB ...

Page 149

Freescale Semiconductor, Inc. Table C-1 Expanded Bus Timing Characteristics (5V Range) Conditions are 4.75V < VDDX < 5.25V, Junction Temperature -40°C to +140°C, C Num Frequency of operation (E-clock Cycle time 3 D Pulse width, ...

Page 150

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Table C-1 Expanded Bus Timing Characteristics (5V Range) Conditions are 4.75V < VDDX < 5.25V, Junction Temperature -40°C to +140° NOACC hold time 33 D IPIPO[1:0] delay time ...

Page 151

Freescale Semiconductor, Inc. Table C-2 Expanded Bus Timing Characteristics (3.3V Range) Conditions are VDDX=3.3V+/-10%, Junction Temperature -40°C to +140°C, C Num Frequency of operation (E-clock Cycle time 3 D Pulse width, E low 1 4 ...

Page 152

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 Table C-2 Expanded Bus Timing Characteristics (3.3V Range) Conditions are VDDX=3.3V+/-10%, Junction Temperature -40°C to +140° NOACC hold time 33 D IPIPO[1:0] delay time IPIPO[1:0] valid time to ...

Page 153

Freescale Semiconductor, Inc. Appendix D Package Information D.1 80-pin QFP package 0.05 A-B 0. -C- H SEATING PLANE G DATUM -H- PLANE W X DETAIL C Figure ...

Page 154

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 D.2 112-pin LQFP package 0. PIN 1 112 IDENT 1 VIEW 0.050 θ C1 VIEW AB 154 ...

Page 155

Freescale Semiconductor, Inc. Device User Guide End Sheet For More Information On This Product, Device User Guide — 9S12E128DGV1/D V01.04 Go to: www.freescale.com 155 ...

Page 156

Freescale Semiconductor, Inc. Device User Guide — 9S12E128DGV1/D V01.04 156 For More Information On This Product, FINAL PAGE OF 156 PAGES Go to: www.freescale.com ...

Related keywords