MC68HC908AZ60 Motorola, MC68HC908AZ60 Datasheet

no-image

MC68HC908AZ60

Manufacturer Part Number
MC68HC908AZ60
Description
Manufacturer
Motorola
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68HC908AZ60-2J74Y
Manufacturer:
FREESCALE
Quantity:
1 200
Part Number:
MC68HC908AZ60ACFU
Manufacturer:
MOT
Quantity:
84
Part Number:
MC68HC908AZ60AVFUE
Manufacturer:
SAMSUNG
Quantity:
1 120
Part Number:
MC68HC908AZ60CFU
Manufacturer:
MOT
Quantity:
5 510
Part Number:
MC68HC908AZ60CFU
Manufacturer:
AD
Quantity:
5 510
Part Number:
MC68HC908AZ60CFU
Quantity:
2 245
Part Number:
MC68HC908AZ60CFU
Manufacturer:
MOTOROLA/摩托罗拉
Quantity:
20 000
MC68HC908AZ60/D
MC68HC908AZ60
Rev 2.0
HCMOS Microcontroller Unit
TECHNICAL DATA

Related parts for MC68HC908AZ60

MC68HC908AZ60 Summary of contents

Page 1

... MC68HC908AZ60 Rev 2.0 HCMOS Microcontroller Unit TECHNICAL DATA MC68HC908AZ60/D ...

Page 2

...

Page 3

... EEPROM EEPROM Central Processor Unit (CPU System Integration Module (SIM 105 Clock Generator Module (CGM 127 Configuration Register (CONFIG- 155 Configuration Register (CONFIG- 159 Break Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 © Motorola, Inc., 1999 MOTOROLA List of Sections List of Sections List of Sections MC68HC908AZ60 — Rev 2.0 1 ...

Page 4

... I/O Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305 MSCAN Controller (MSCAN08 331 Keyboard Module (KBD 381 Timer Interface Module A (TIMA- 389 Analog-to-Digital Converter (ADC-15 421 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433 Appendix A: Future EEPROM Registers . . . . . . . . . . . . 449 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453 Literature Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469 MC68HC908AZ60 — Rev 2.0 2 List of Sections MOTOROLA ...

Page 5

... FLASH Charge Pump Frequency Control . . . . . . . . . . . . . . . . . . . . . 41 FLASH Erase Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 FLASH Program/Margin Read Operation . . . . . . . . . . . . . . . . . . . . . . 43 FLASH Block Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 FLASH-1 Block Protect Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 FLASH-2 Block Protect Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 FLASH-2 Memory Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Future FLASH Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 MOTOROLA Table of Contents Table of Contents Table of Contents MC68HC908AZ60 — Rev 2.0 3 ...

Page 6

... Opcode Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103 System Integration Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105 Module (SIM) Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106 SIM Bus Clock Control and Generation . . . . . . . . . . . . . . . . . . . . . .109 Reset and System Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110 SIM Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 Program Exception Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .120 SIM Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123 MC68HC908AZ60 — Rev 2.0 4 Table of Contents MOTOROLA ...

Page 7

... Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 Computer Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 Operating Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 Properly Module Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 (COP) I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 COP Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 Monitor Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 COP Module During Break Interrupts . . . . . . . . . . . . . . . . . . . . . . . 184 MOTOROLA Table of Contents Table of Contents MC68HC908AZ60 — Rev 2.0 5 ...

Page 8

... Pin Name and Register Name Conventions . . . . . . . . . . . . . . . . . . .239 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240 Transmission Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .244 Error Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .249 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253 Queuing Transmission Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .255 Resetting the SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .256 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .257 SPI During Break Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .258 I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259 I/O Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .262 MC68HC908AZ60 — Rev 2.0 6 Table of Contents MOTOROLA ...

Page 9

... Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331 (MSCAN08) Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 External Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 Message Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 Identifier Acceptance Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344 Protocol Violation Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346 Timer Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350 Clock System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351 MOTOROLA Table of Contents Table of Contents MC68HC908AZ60 — Rev 2.0 7 ...

Page 10

... Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .425 I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .426 I/O Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .427 Specifications Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .433 Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .434 Mechanical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .447 Appendix A: Future EEPROM Timebase Divider Control Registers . . . . . . . . . . . . . . . .449 EEPROM Registers EEDIVH and EEDIVL Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . .450 EEDIV Non-volatile Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .451 MC68HC908AZ60 — Rev 2.0 8 Table of Contents MOTOROLA ...

Page 11

... Glossary Literature Updates Literature Distribution Centers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465 Customer Focus Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466 Microcontroller Division’s Web Site . . . . . . . . . . . . . . . . . . . . . . . . . 466 Revision History Major Changes Between Revision 2.0 and Revision 1 469 MOTOROLA Table of Contents Table of Contents MC68HC908AZ60 — Rev 2.0 9 ...

Page 12

... Table of Contents MC68HC908AZ60 — Rev 2.0 10 Table of Contents MOTOROLA ...

Page 13

... CAN Receive Pin (CANRx Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 MC Order Numbers Introduction The MC68HC908AZ60 is a member of the low-cost, high-performance M68HC08 Family of 8-bit microcontroller units (MCUs). The M68HC08 Family is based on the customer-specified integrated circuit (CSIC) design strategy. All MCUs in the family use the enhanced M68HC08 ...

Page 14

... This part is designed to emulate the MC68HC08AZxx automotive family. In AZxx mode the MC68HC908AZ60 offers extra features which are not available on the MC68HC08AZ32 device the user’s responsibility to ensure compatibility between the features used on the MC68HC908AZ60 and those which are available on the device which will ultimately be used in the application ...

Page 15

... Memory-to-Memory Data Transfers • Fast 8 8 Multiply Instruction • Fast 16/8 Divide Instruction • Binary-Coded Decimal (BCD) Instructions • Optimization for Controller Applications • C Language Support shows the structure of the MC68HC908AZ60. General Description General Description MCU Block Diagram MC68HC908AZ60 — Rev 2.0 13 ...

Page 16

... IRQ IRQ MODULE POWER-ON RESET MODULE POWER V DDA V SSA Figure 1. MCU Block Diagram for the MC68HC908AZ60 (64-Pin QFP) V REFH ANALOG-TO-DIGITAL MODULE BREAK MODULE LOW-VOLTAGE INHIBIT MODULE COMPUTER OPERATING PROPERLY MODULE TIMER A 6 CHANNEL INTERFACE MODULE TIMER B INTERFACE MODULE ...

Page 17

... PTF5/TBCH1 11 PTF6 12 PTE0/TxD 13 PTE1/RxD 14 PTE2/TACH0 15 PTE3/TACH1 16 NOTE: The following pin descriptions are just a quick reference. For a more detailed representation, see 5-gen MOTOROLA shows the MC68HC908AZ60 pin assignments. Figure 2. MC68HC908AZ60 (64-Pin QFP) General Description page 305 ...

Page 18

... Serial Peripheral Interface Module (SPI) NOTE Oscillator Pins The OSC1 and OSC2 pins are the connections for the on-chip oscillator (OSC1 and OSC2) circuit. See MC68HC908AZ60 — Rev 2.0 16 and V are the power supply and ground pins. The MCU operates SS MCU V DD ...

Page 19

... The analog sections consist of a clock generator Clock Generator Module (CGM) on page 305. General Description General Description Pin Assignments on page 105 for more information. on page 191. on page 127. on page 127. on page 127 on page 421 and I/O Ports MC68HC908AZ60 — Rev 2.0 I ...

Page 20

... Port H I/O Pins Port 2-bit special-function port that shares all of its pins with the (PTH1/KBD4ÐPTH0/ keyboard interrupt module (KBD). See KBD3) page 381 and MC68HC908AZ60 — Rev 2.0 18 I/O Ports on page 305. Timer Interface Module A (TIMA-6) Analog-to-Digital Converter (ADC-15) on page 305. ...

Page 21

... Open Drain Dual State Yes Open Drain Dual State Yes Open Drain Dual State Yes Dual State Yes Dual State Yes Dual State Yes MC68HC908AZ60 — Rev 2.0 MSCAN Reset State Input Hi-Z Input Hi-Z Input Hi-Z Input Hi-Z Input Hi-Z Input Hi-Z Input Hi-Z Input Hi-Z Input Hi-Z Input Hi-Z Input Hi-Z Input Hi-Z ...

Page 22

... DDAREF A /V VSS REFL V REFH OSC1 OSC2 CGMXFC IRQ RST CANRx CANTx MC68HC908AZ60 — Rev 2.0 20 Driver Function Type General-Purpose I/O Dual State SCI Transmit Data General-Purpose I/O Dual State General-Purpose Dual State I/O/Timer B Channel General-Purpose I/O Dual State Timer A Channel 5 General-Purpose I/O Dual State ...

Page 23

... General Description General Description Pin Assignments Clock Source CGMXCLK or Bus Clock CGMXCLK or CGMOUT CGMXCLK Bus Clock RC OSC or Bus Clock Bus Clock/SPSCK CGMXCLK Bus Clock or PTD4/TBCLK Bus Clock CGMOUT and CGMXCLK Bus Clock Bus Clock Bus Clock OSC1 and OSC2 MC68HC908AZ60 — Rev 2.0 21 ...

Page 24

... General Description Ordering Information This section contains instructions for ordering the MC68HC908AZ60. MC Order Numbers MC68HC908AZ60CFU MC68HC908AZ60VFU MC68HC908AZ60MFU MC68HC908AZ60 — Rev 2.0 22 Table 3. MC Order Numbers MC Order Number General Description Operating Temperature Range – – 105 C –40 ° 125 °C ...

Page 25

... Bytes of User-Defined Vectors 224 Bytes of Monitor ROM Reserved — Accessing a reserved location can have unpredictable effects on MCU operation. Unimplemented — Accessing an unimplemented location causes an illegal address reset if illegal address resets are enabled. Memory Map Memory Map Memory Map MC68HC908AZ60 — Rev 2.0 23 ...

Page 26

... Memory Map MC68HC908AZ60 — Rev 2.0 24 Figure 1. Memory Map $0000 I/O REGISTERS (64 BYTES) $003F $0040 I/O REGISTERS, 16 BYTES $004F $0050 RAM-1, 1024 BYTES $044F $0450 FLASH-2, 176 BYTES $04FF $0500 CAN CONTROL AND MESSAGE BUFFERS, 128 BYTES $057F $0580 FLASH-2, 128 BYTES $05FF $0600 ...

Page 27

... Memory Map Memory Map Introduction $FE04 $FE05 $FE06 $FE07 $FE08 $FE09 $FE0A $FE0B $FE0C $FE0D $FE0E $FE0F $FE10 $FE11 $FE12 $FE17 $FE18 $FE19 $FE1A $FE1B $FE1C $FE1D $FE1E $FE1F $FE20 $FEFF $FF00 $FF7F $FF80 $FF81 $FF82 $FFCB MC68HC908AZ60 — Rev 2.0 25 ...

Page 28

... Table 1 MC68HC908AZ60 — Rev 2.0 26 Figure 1. Memory Map (Continued) $FFCC VECTORS (52BYTES) $FFFF $FE00 (SIM break status register, SBSR) $FE01 (SIM reset status register, SRSR) $FE03 (SIM break flag control register, SBFCR) $FE09 (configuration write-once register, CONFIG-2) ...

Page 29

... PTH1 DDRE4 DDRE3 DDRE2 DDRE1 DDRF4 DDRF3 DDRF2 DDRF1 0 0 DDRG2 DDRG1 DDRH1 CPOL CPHA SPWOM SPE MC68HC908AZ60 — Rev 2.0 I/O Section Bit 0 PTA0 PTB0 PTC0 PTD0 DDRA0 DDRB0 DDRC0 DDRD0 PTE0 PTF0 PTG0 PTH0 DDRE0 DDRF0 DDRG0 DDRH0 SPTIE 27 ...

Page 30

... Configuration Write-Once $001F Register (CONFIG-1) Timer A Status and Control $0020 Register (TASC) Keyboard Interrupt Enable Register $0021 (KBIE) Figure 2. Control, Status, and Data Registers (Sheet MC68HC908AZ60 — Rev 2.0 28 Bit Unimplemented Read: SPRF OVRF ERRIE Write: Read: ...

Page 31

... MS3A ELS3B ELS3A TOV3 MS4A ELS4B ELS4A TOV4 MC68HC908AZ60 — Rev 2.0 I/O Section Bit 0 Bit 8 Bit 0 Bit 8 Bit 0 CH0MAX Bit 8 Bit 0 CH1MAX Bit 8 Bit 0 CH2MAX Bit 8 Bit 0 CH3MAX Bit 8 Bit 0 CH4MAX Bit 8 29 ...

Page 32

... Timer B CH1 Status and Control Register (TBSC1) $0048 Timer B CH1 Register High $0049 (TBCH1H) Timer B CH1 Register Low $004A (TBCH1L) Figure 2. Control, Status, and Data Registers (Sheet MC68HC908AZ60 — Rev 2.0 30 Bit Read: Bit Write: Read: CH5F ...

Page 33

... BLK0 HVEN VERF ERASE EEPRTCT EEBP3 EEBP2 EEBP1 0 EERAS1 EERAS0 EELAT MC68HC908AZ60 — Rev 2.0 Memory Map I/O Section Bit 0 PPS0 Bit 8 Bit 0 Bit 8 Bit AZxx PGM Bit 8 Bit PGM EEBP0 EEPGM R 31 ...

Page 34

... FLASH Block Protect Register $FF80 (FLBPR1) FLASH Block Protect Register $FF81 (FLBPR2) $FFFF COP Control Register (COPCTL) Figure 2. Control, Status, and Data Registers (Sheet MC68HC908AZ60 — Rev 2.0 32 Bit Read: EERA CON2 CON1 EEPRTCT EEBP3 Write: Read: EERA ...

Page 35

... TIMB CH1 Vector (Low) $FFEA TIMB CH0 Vector (High) $FFEB TIMB CH0 Vector (Low) $FFEC TIMA Overflow Vector (High) $FFED TIMA Overflow Vector (Low) $FFEE TIMA CH3 Vector (High) $FFEF TIMA CH3 Vector (Low) Memory Map Memory Map I/O Section MC68HC908AZ60 — Rev 2.0 33 ...

Page 36

... Memory Map MC68HC908AZ60 — Rev 2.0 34 Table 1. Vector Addresses (Continued) Address $FFF0 TIMA CH2 Vector (High) $FFF1 TIMA CH2 Vector (Low) $FFF2 TIMA CH1 Vector (High) $FFF3 TIMA CH1 Vector (Low) $FFF4 TIMA CH0 Vector (High) $FFF5 TIMA CH0 Vector (Low) $FFF6 ...

Page 37

... RAM locations efficiently. Page zero RAM, therefore, provides ideal locations for frequently accessed global variables. Before processing an interrupt, the CPU uses five bytes of the stack to save the contents of the CPU registers. 1-ram MOTOROLA MC68HC908AZ60 — Rev 2.0 RAM RAM RAM 35 ...

Page 38

... During a subroutine call, the CPU uses two bytes of the stack to store the return address. The stack pointer decrements during pushes and increments during pulls. NOTE: Be careful when using nested subroutines. The CPU could overwrite data in the RAM during a subroutine or during the interrupt stacking operation. MC68HC908AZ60 — Rev 2.0 36 RAM 2-ram MOTOROLA ...

Page 39

... Future FLASH Memory Design is underway to introduce an improved Flash memory module. The new module will offer improved write erase cycling and faster programming times. However Flash program and erase algorithms will 3-flash-1 MOTOROLA FLASH-1 Memory FLASH-1 Memory FLASH-1 Memory MC68HC908AZ60 — Rev 2.0 37 ...

Page 40

... The 8 program cycle maximum per row aligns with the architecture’s 8 pages of storage per MC68HC908AZ60 — Rev 2.0 38 $8000–$FDFF $FF80–FF81 (Block Protect Registers) $FE0B FLASH Control Register $FFCC– ...

Page 41

... This read/write bit together with FDIV0 selects the factor by which the charge pump clock is divided from the system clock. See Charge Pump Frequency Control FLASH-1 Memory FLASH-1 Memory FLASH-1 Control Register BLK0 HVEN MARGIN ERASE page 41. MC68HC908AZ60 — Rev 2.0 1 Bit 0 PGM 0 FLASH 39 ...

Page 42

... ERASE — Erase Control Bit This read/write bit configures the memory for erase operation. ERASE is interlocked with the PGM bit such that both bits cannot be set at the same time. MC68HC908AZ60 — Rev 2.0 40 FLASH Erase Operation FLASH Erase Operation 1 = High voltage enabled to array and charge pump on ...

Page 43

... FLASH-1 control register. See 1 for FDIV settings. FLASH-1 Memory FLASH-1 Memory FLASH Charge Pump Frequency Control Table 1 shows Bus Clock Frequency 1 2 MHz 10 MHz 10 MHz 10 MHz 10% Table 2 for block sizes. See MC68HC908AZ60 — Rev 2.0 Table 41 ...

Page 44

... In step 2 of the erase operation, the cared addresses are latched and used to determine the location of the block to be erased. For instance, with BLK0 = BLK1 = 0, writing to any Flash address in the range $8000 to $FFFF will enable the full-array erase. MC68HC908AZ60 — Rev 2.0 42 register: address $FF80. See and FLASH-1 Block Protect Register information ...

Page 45

... Set the HVEN bit. 5. Wait for time PROG 6. Clear the HVEN bit. 7. Wait for time HVTV 8. Set the MARGIN bit. 9. Wait for time VTP . HVD FLASH-1 Memory FLASH-1 Memory FLASH Program/Margin Read Operation on page 445, has a detailed MC68HC908AZ60 — Rev 2.0 43 ...

Page 46

... In order to ensure proper FLASH read operation after completion of the smart programming algorithm, a series of 500 dummy FLASH reads must be performed of any address before accurate data is read from the FLASH. MC68HC908AZ60 — Rev 2.0 44 separate read operations which are each stretched by eight cycles. FLASH Erase Operation FLASH-1 Memory on page 41) ...

Page 47

... Clear HVEN Bit Wait t HVTV Set MARGIN Bit Wait t VTP Clear PGM Bit Wait t HVD Margin Read Page of Data N Margin Read Data Equal To Write Data? Y Clear MARGIN Bit Clear Interrupt Mask: CLI Instr. (see note above) Programming Operation Complete MC68HC908AZ60 — Rev 2.0 45 ...

Page 48

... IRQ pin. The presence of V entry in to monitor mode out of reset. Therefore, the ability to change the block protect register is voltage dependent and can occur in either user or monitor modes. MC68HC908AZ60 — Rev 2 page 47. The block protect register HI FLASH-1 Memory ...

Page 49

... This bit protects the memory contents in the address range $9000 to $FFFF Address range protected from erase or program 0 = Address range open to erase or program FLASH-1 Memory FLASH-1 Memory FLASH-1 Block Protect Register BPR3 BPR2 BPR1 MC68HC908AZ60 — Rev 2.0 Bit 0 BPR0 0 47 ...

Page 50

... The block protect register is implemented as a byte within the FLASH-1 memory. Each bit, when programmed, protects a range of addresses in the FLASH-2 array. Address: Read: Write: Reset: MC68HC908AZ60 — Rev 2 Address range protected from erase or program 0 = Address range open to erase or program $FF81 Bit 7 6 ...

Page 51

... Address range protected from erase or program 0 = Address range open to erase or program This bit protects the memory contents in the address range $0450 to $7FFF Address range protected from erase or program 0 = Address range open to erase or program FLASH-1 Memory FLASH-1 Memory FLASH-2 Block Protect Register on the HI MC68HC908AZ60 — Rev 2.0 49 ...

Page 52

... Exit from stop must now be done with a reset rather than an interrupt because if exiting stop with an interrupt, the memory will not be in read mode and the interrupt vector cannot be read from the memory. MC68HC908AZ60 — Rev 2.0 50 FLASH-1 Memory 16-flash-1 ...

Page 53

... Future FLASH Memory Design is underway to introduce an improved Flash memory module. The new module will offer improved write erase cycling and faster programming times. However Flash program and erase algorithms will 1-flash-2 MOTOROLA FLASH-2 Memory FLASH-2 Memory FLASH-2 Memory MC68HC908AZ60 — Rev 2.0 51 ...

Page 54

... The 8 program cycle maximum per row aligns with the architecture’s 8 pages of storage per row. The margin read step of the smart programming algorithm is used to insure programmed bits are programmed to sufficient margin for data MC68HC908AZ60 — Rev 2.0 52 $0450–$04FF $0580–$05FF $0E00– ...

Page 55

... This read/write bit together with FDIV1 selects the factor by which the charge pump clock is divided from the system clock. See Charge Pump Frequency Control FLASH-2 Memory FLASH-2 Memory FLASH Control Register BLK0 HVEN MARGIN ERASE page 55. on page 55. MC68HC908AZ60 — Rev 2.0 1 Bit 0 PGM 0 FLASH FLASH 53 ...

Page 56

... PGM — Program Control Bit This read/write bit configures the memory for program operation. PGM is interlocked with the ERASE bit such that both bits cannot be set at the same time. MC68HC908AZ60 — Rev 2.0 54 FLASH Erase Operation FLASH Erase Operation 1 = High voltage enabled to array and charge pump on ...

Page 57

... FLASH-2 Memory FLASH-2 Memory FLASH Charge Pump Frequency Control Table 1 Bus Clock Frequency 1 2 MHz 2 4 MHz 2 4 MHz 4 8 MHz Table 2 for block sizes. See FLASH Block Protection FLASH Block Protect Register MC68HC908AZ60 — Rev 2.0 shows 10% 10% 10% 10% Table 1 on page 55 ...

Page 58

... In step 2 of the erase operation, the cared addresses are latched and used to determine the location of the block to be erased. For instance, with BLK0 = BLK1 = 0, writing to any Flash address in the range $0450-$05FF or $0E00-$7FFF will enable the full-array erase. MC68HC908AZ60 — Rev 2 for the high voltages to dissipate. KILL , the memory can be accessed in read mode again ...

Page 59

... Set the HVEN bit. 5. Wait for time PROG 6. Clear the HVEN bit. 7. Wait for time HVTV 8. Set the MARGIN bit. 9. Wait for time VTP . HVD FLASH-2 Memory FLASH-2 Memory FLASH Program/Margin Read Operation on page 445 has a detailed MC68HC908AZ60 — Rev 2.0 57 ...

Page 60

... In order to ensure proper FLASH read operation after completion of the smart programming algorithm, a series of 500 dummy FLASH reads must be performed of any address before accurate data is read from the FLASH. MC68HC908AZ60 — Rev 2.0 58 separate read operations which are each stretched by eight cycles. FLASH Erase Operation FLASH-2 Memory on page 55) ...

Page 61

... Clear HVEN Bit Wait t HVTV Set MARGIN Bit Wait t VTP Clear PGM Bit Wait t HVD Margin Read Page of Data N Margin Read Data Equal To Write Data? Y Clear MARGIN Bit Clear Interrupt Mask: CLI Instr. (see note above) Programming Operation Complete MC68HC908AZ60 — Rev 2.0 59 ...

Page 62

... The block protect register for FLASH-2 is physically implemented as a byte within the FLASH-1 memory. Please refer to the FLASH-1 memory section, register. Each bit, when programmed, protects a range of addresses in the FLASH-2 array. MC68HC908AZ60 — Rev 2 page 60. The block protect register FLASH-2 Block Protect Register FLASH-2 Memory ...

Page 63

... Exit from stop must now be done with a reset rather than an interrupt because if exiting stop with an interrupt, the memory will not be in read mode and the interrupt vector cannot be read from the memory. 11-flash-2 MOTOROLA FLASH-2 Memory FLASH-2 Memory Low-Power Modes MC68HC908AZ60 — Rev 2.0 61 ...

Page 64

... FLASH-2 Memory MC68HC908AZ60 — Rev 2.0 62 FLASH-2 Memory 12-flash-2 MOTOROLA ...

Page 65

... Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Future EEPROM Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Functional Description EEPROM Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 EEPROM Erasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 EEPROM Block Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 MCU Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 MC68HC908AZ60 EEPROM Protection EEPROM Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 EEPROM Nonvolatile Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Wait Mode Stop Mode Introduction This section describes the electrically erasable programmable read-only memory (EEPROM). The 1024 bytes available on the MC68HC908AZ60 are physically located in two 512byte arrays ...

Page 66

... This new silicon will not allow multiple writes before erase. EEPROM bytes must be erased before reprogramming. Features EEPROM features include: • • • • • MC68HC908AZ60 — Rev. 2.0 64 for preliminary details. Byte, Block, or Bulk Erasable Nonvolatile Block Protection Option Nonvolatile MCU Configuration Bits On-Chip Charge Pump for Programming/Erasing Security Option EEPROM-1 ...

Page 67

... Set the EEPGM bit. (See note C.) 4. Wait for a time, t EEPGM 5. Clear EEPGM bit. 6. Wait for a time, t EEFPV 7. Clear EELAT bits. (See note D.) 8. Repeat steps for more EEPROM programming. EEPROM-1 Functional Description , to program the byte. , for the programming voltage to fall. MC68HC908AZ60 — Rev. 2.0 EEPROM-1 65 ...

Page 68

... EEPROM-1 NOTES: MC68HC908AZ60 — Rev. 2 EERAS1 and EERAS0 must be cleared for programming. Otherwise, the part will be in erase mode. b. Setting EELAT bit configures the address and data buses to latch data for programming the array. Only data with valid EEPROM address will be latched. If another consecutive valid EEPROM write occurs, this address and data will override the previous address and data ...

Page 69

... The EEPGM bit cannot be set if the EELAT bit is cleared and a non-EEPROM write has occurred. This is to ensure proper erasing sequence. Once EEPGM is set, the type of erase EEPROM-1 Functional Description ,/ EEBLOCK EEBULK. , for the erasing voltage to fall. MC68HC908AZ60 — Rev. 2.0 EEPROM-1 67 ...

Page 70

... EENVR1 register. The block protect configuration can be modified by erasing/programming the corresponding bits in the EENVR1 register and then reading the EENVR1 register. MC68HC908AZ60 — Rev. 2.0 68 mode cannot be modified. If EEPGM is set, the onboard charge pump generates the erase voltage and applies it to the user EEPROM array ...

Page 71

... The new array configuration will take affect after a system reset or a read of the EENVR1. MC68HC908AZ60 The MC68HC908AZ60 has a special protection option which prevents EEPROM program/erase access to memory locations $08F0 to $08FF. This Protection protect function is enabled by programming the EEPRTCT bit in the EENVR to 0 ...

Page 72

... EEOFF — EEPROM Power Down This read/write bit disables the EEPROM module for lower power consumption. Any attempts to access the array will give unpredictable results. Reset clears this bit. NOTE: The EEPROM requires a recovery time, t the EEOFF bit. MC68HC908AZ60 — Rev. 2.0 70 $FE1D Bit ...

Page 73

... EEPROM location has occurred. Reset clears the EEPGM bit EEPROM programming/erasing power switched EEPROM programming/erasing power switched off EEPROM-1 EEPROM-1 Functional Description EERAS0 MODE 0 Byte Program 1 Byte Erase 0 Block Erase 1 Bulk Erase X No Erase/Program MC68HC908AZ60 — Rev. 2.0 71 ...

Page 74

... This one-time programmable bit can be used to protect 16 bytes ($8F0–$8FF) from being erased or programmed. EEBP3–EEBP0 — EEPROM Block Protection Bits These read/write bits select blocks of EEPROM array from being programmed or erased. Reset loads EEBP[3:0] from EENVR1 to EEACR1. MC68HC908AZ60 — Rev. 2.0 72 $FE1C Bit ...

Page 75

... These read/write bits select blocks of EEPROM array from being programmed or erased. Reset loads EEBP[3:0] from EENVR1 to EEACR1 EEPROM array block is protected 0 = EEPROM array block is unprotected EEPROM-1 Functional Description EEPRTCT EEBP3 EEBP2 EEBP1 EENVR MC68HC908AZ60 — Rev. 2.0 EEPROM-1 Figure 1 Bit 0 EEBP0 73 ...

Page 76

... Program/erase time will need to be extended if program/erase is interrupted by entering stop mode. The module requires a recovery time, t stop mode. Attempts to access the array during the recovery time will result in unpredictable behavior. MC68HC908AZ60 — Rev. 2 stabilize after leaving EESTOP EEPROM-1 ...

Page 77

... Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Future EEPROM Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Functional Description EEPROM Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 EEPROM Erasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 EEPROM Block Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 MCU Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 MC68HC908AZ60 EEPROM Protection EEPROM Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 EEPROM Nonvolatile Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Wait Mode Stop Mode Introduction This section describes the electrically erasable programmable read-only memory (EEPROM). The 1024 bytes available on the MC68HC908AZ60 are physically located in two 512byte arrays ...

Page 78

... This new silicon will not allow multiple writes before erase. EEPROM bytes must be erased before reprogramming. Features EEPROM features include: • • • • • MC68HC908AZ60 — Rev 2.0 76 for preliminary details. Byte, Block, or Bulk Erasable Nonvolatile Block Protection Option Nonvolatile MCU Configuration Bits On-Chip Charge Pump for Programming/Erasing Security Option EEPROM-2 ...

Page 79

... Set the EEPGM bit. (See note C.) 4. Wait for a time, t EEPGM 5. Clear EEPGM bit. 6. Wait for a time, t EEFPV 7. Clear EELAT bits. (See note D.) 8. Repeat steps for more EEPROM programming. EEPROM-2 Functional Description , to program the byte. , for the programming voltage to fall. MC68HC908AZ60 — Rev 2.0 EEPROM-2 77 ...

Page 80

... EEPROM-2 NOTES: MC68HC908AZ60 — Rev 2 EERAS1 and EERAS0 must be cleared for programming. Otherwise, the part will be in erase mode. b. Setting EELAT bit configures the address and data buses to latch data for programming the array. Only data with valid EEPROM address will be latched. If another consecutive valid EEPROM write occurs, this address and data will override the previous address and data ...

Page 81

... The EEPGM bit cannot be set if the EELAT bit is cleared and a non-EEPROM write has occurred. This is to ensure proper erasing sequence. Once EEPGM is set, the type of erase EEPROM-2 Functional Description ,/ EEBLOCK EEBULK. , for the erasing voltage to fall. MC68HC908AZ60 — Rev 2.0 EEPROM-2 79 ...

Page 82

... EENVR2 register. The block protect configuration can be modified by erasing/programming the corresponding bits in the EENVR2 register and then reading the EENVR2 register. MC68HC908AZ60 — Rev 2.0 80 mode cannot be modified. If EEPGM is set, the onboard charge pump generates the erase voltage and applies it to the user EEPROM array ...

Page 83

... The new array configuration will take affect after a system reset or a read of the EENVR2. MC68HC908AZ60 The MC68HC908AZ60 has a special protection option which prevents EEPROM program/erase access to memory locations $08F0 to $08FF. This Protection protect function is enabled by programming the EEPRTCT bit in the EENVR to 0 ...

Page 84

... EEOFF — EEPROM Power Down This read/write bit disables the EEPROM module for lower power consumption. Any attempts to access the array will give unpredictable results. Reset clears this bit. NOTE: The EEPROM requires a recovery time, t the EEOFF bit. MC68HC908AZ60 — Rev 2.0 82 $FE19 Bit ...

Page 85

... EEPROM location has occurred. Reset clears the EEPGM bit EEPROM programming/erasing power switched EEPROM programming/erasing power switched off EEPROM-2 EEPROM-2 Functional Description EERAS0 MODE 0 Byte Program 1 Byte Erase 0 Block Erase 1 Bulk Erase X No Erase/Program MC68HC908AZ60 — Rev 2.0 83 ...

Page 86

... This one-time programmable bit can be used to protect 16 bytes ($8F0–$8FF) from being erased or programmed. EEBP3–EEBP0 — EEPROM Block Protection Bits These read/write bits select blocks of EEPROM array from being programmed or erased. Reset loads EEBP[3:0] from EENVR2 to EEACR2. MC68HC908AZ60 — Rev 2.0 84 $FE18 Bit ...

Page 87

... These read/write bits select blocks of EEPROM array from being programmed or erased. Reset loads EEBP[3:0] from EENVR2 to EEACR2 EEPROM array block is protected 0 = EEPROM array block is unprotected EEPROM-2 Functional Description EEPRTCT EEBP3 EEBP2 EEBP1 EENVR MC68HC908AZ60 — Rev 2.0 EEPROM-2 Figure 1 Bit 0 EEBP0 85 ...

Page 88

... Program/erase time will need to be extended if program/erase is interrupted by entering stop mode. The module requires a recovery time, t stop mode. Attempts to access the array during the recovery time will result in unpredictable behavior. MC68HC908AZ60 — Rev 2 stabilize after leaving EESTOP EEPROM-2 ...

Page 89

... CPU is an enhanced and fully object-code-compatible version of the M68HC05 CPU. The CPU08 Reference Manual (Motorola document number CPU08RM/AD) contains a description of the CPU instruction set, addressing modes, and architecture. 1-cpu MOTOROLA Central Processor Unit (CPU) Central Processor Unit (CPU) Central Processor Unit (CPU) MC68HC908AZ60 — Rev 2.0 87 ...

Page 90

... MC68HC908AZ60 — Rev 2.0 88 Full upward, object-code compatibility with M68HC05 family 16-bit stack pointer with stack manipulation instructions 16-bit index register with X-register manipulation instructions 8.4MHz CPU internal bus frequency 64K byte program/data memory space ...

Page 91

... Central Processor Unit (CPU) 0 ACCUMULATOR (A) 0 INDEX REGISTER (H:X) 0 STACK POINTER (SP) 0 PROGRAM COUNTER (PC) 0 CONDITION CODE REGISTER (CCR) CARRY/BORROW FLAG ZERO FLAG NEGATIVE FLAG INTERRUPT MASK HALF-CARRY FLAG TWO’S COMPLEMENT OVERFLOW FLAG MC68HC908AZ60 — Rev 2.0 CPU registers Bit 0 89 ...

Page 92

... In the stack pointer 8-bit offset and 16-bit offset addressing modes, the stack pointer can function as an index register to access data on the stack. The CPU uses the contents of the stack pointer to determine the conditional address of the operand. Read: SP Write: Reset: MC68HC908AZ60 — Rev 2.0 90 Bit ...

Page 93

... Figure 5. Program counter (PC) Bit Indeterminate Figure 6. Condition code register (CCR) Central Processor Unit (CPU) Central Processor Unit (CPU MC68HC908AZ60 — Rev 2.0 CPU registers Bit Bit ...

Page 94

... A return from interrupt (RTI) instruction pulls the CPU registers from the stack and restores the interrupt mask from the stack. After any reset, the interrupt mask is set and can only be cleared by the clear interrupt mask software instruction (CLI). MC68HC908AZ60 — Rev 2 Overflow overflow ...

Page 95

... Some instructions - such as bit test and branch, shift, and rotate - also clear or set the carry/borrow flag Carry out of bit carry out of bit 7 Central Processor Unit (CPU) Central Processor Unit (CPU) CPU registers MC68HC908AZ60 — Rev 2.0 93 ...

Page 96

... After exiting STOP mode, the CPU clock begins running after the oscillator stabilization delay. MC68HC908AZ60 — Rev 2.0 94 clears the interrupt mask (I bit) in the condition code register, enabling interrupts. After exit from WAIT mode by interrupt, the I bit remains clear. After exit by reset, the I bit is set. ...

Page 97

... A return-from-interrupt instruction (RTI) in the break routine ends the break interrupt and returns the MCU to normal operation if the break interrupt has been deasserted. 9-cpu MOTOROLA Break Module Central Processor Unit (CPU) Central Processor Unit (CPU) CPU during break interrupts on page 161. The program MC68HC908AZ60 — Rev 2.0 95 ...

Page 98

... ASL ,X ASL opr ,SP ASR opr ASRA ASRX Arithmetic Shift Right ASR opr ,X ASR opr ,X ASR opr ,SP BCC rel Branch if Carry Bit Clear MC68HC908AZ60 — Rev 2.0 96 provides a summary of the M68HC08 instruction set. Table 1. Instruction Set Summary Description A (A) + (M) + (C) A (A) + (M) « SP (SP) + (16 M) « ...

Page 99

... REL 91 rr – – – – – – REL 2C rr – – – – – – REL 2B rr – – – – – – REL 2D rr MC68HC908AZ60 — Rev 2 ...

Page 100

... CBEQ X+ ,rel CBEQ opr, SP ,rel CLC Clear Carry Bit CLI Clear Interrupt Mask CLR opr CLRA CLRX CLRH Clear CLR opr ,X CLR ,X CLR opr ,SP MC68HC908AZ60 — Rev 2.0 98 Description (PC rel ? ( (PC rel ? ( (PC rel PC (PC rel ? (Mn (PC ...

Page 101

... INH 52 IMM A8 ii DIR B8 dd EXT IX2 – – – IX1 SP1 9EE8 ff SP2 9ED8 ee ff MC68HC908AZ60 — Rev 2 ...

Page 102

... LSL ,X LSL opr ,SP LSR opr LSRA LSR X Logical Shift Right LSR opr ,X LSR ,X LSR opr ,SP MOV opr,opr MOV opr, X+ Move MOV # opr,opr MOV X+ ,opr MUL Unsigned multiply MC68HC908AZ60 — Rev 2.0 100 Description ...

Page 103

... DIR 36 dd INH 46 INH 56 – – IX1 SP1 9E66 ff – – – – – – INH 9C INH 80 – – – – – – INH 81 MC68HC908AZ60 — Rev 2 ...

Page 104

... SUB opr SUB opr ,X Subtract SUB opr ,X SUB ,X SUB opr ,SP SUB opr ,SP SWI Software Interrupt TAP Transfer A to CCR TAX Transfer TPA Transfer CCR to A MC68HC908AZ60 — Rev 2.0 102 Description A (A) – (M) – ( (A) (M (H: Stop Oscillator ...

Page 105

... INH 5D 0 – – – IX1 SP1 9E6D – – – – – – INH 95 – – – – – – INH 9F – – – – – – INH 94 2. MC68HC908AZ60 — Rev 2 103 ...

Page 106

... Central Processor Unit (CPU) MC68HC908AZ60 — Rev 2.0 104 Central Processor Unit (CPU) 18-cpu MOTOROLA ...

Page 107

... SIM Break Flag Control Register . . . . . . . . . . . . . . . . . . . . . . . . . 125 1-sim MOTOROLA System Integration Module (SIM) System Integration Module (SIM) Power-On Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Computer Operating Properly (COP) Reset . . . . . . . . . . . . . . . 113 Illegal Opcode Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 Illegal Address Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Low-Voltage Inhibit (LVI) Reset . . . . . . . . . . . . . . . . . . . . . . . . 114 System Integration Module (SIM) MC68HC908AZ60 — Rev 2.0 105 ...

Page 108

... SIM input/output (I/O) registers. The SIM is a system state controller that coordinates CPU and exception timing. The SIM is responsible for: • • • • MC68HC908AZ60 — Rev 2.0 106 Figure Bus clock generation and control for CPU and peripherals – Stop/wait/reset/break entry and recovery – Internal clock control ...

Page 109

... CPU WAIT (FROM CPU) SIMOSCEN (TO CGM) COP CLOCK CGMXCLK (FROM CGM) CGMOUT (FROM CGM) INTERNAL CLOCKS LVI (FROM LVI MODULE) ILLEGAL OPCODE (FROM CPU) ILLEGAL ADDRESS (FROM ADDRESS MAP DECODERS) COP (FROM COP MODULE) INTERRUPT SOURCES CPU INTERFACE MC68HC908AZ60 — Rev 2.0 107 ...

Page 110

... System Integration Module (SIM) Register Name SIM Break Status Register (SBSR) SIM Reset Status Register (SRSR) SIM Break Flag Control Register (SBFCR) Table 2 Signal Name CGMXCLK CGMVCLK MC68HC908AZ60 — Rev 2.0 108 Bit POR PIN COP BCFE Reserved Figure 2 ...

Page 111

... PTC3 USER MODE CGM Figure 3. CGM Clock Signals System Integration Module (SIM) System Integration Module (SIM) SIM Bus Clock Control and Generation Figure 3. This clock can come on page 127). on page 127). SIM COUNTER BUS CLOCK 2 GENERATORS SIM MC68HC908AZ60 — Rev 2.0 109 ...

Page 112

... Pulling the asynchronous RST pin low halts all processing. The PIN bit of the SIM reset status register (SRSR) is set as long as RST is held low for a minimum of 67 CGMXCLK cycles, assuming that neither the POR MC68HC908AZ60 — Rev 2.0 110 Power-on reset module (POR) ...

Page 113

... All others Figure 4. External Reset Timing Figure System Integration Module (SIM) System Integration Module (SIM) Reset and System Initialization Table 3 for details. 4163 (4096 + ( VECT H VECT L 6). Note that for LVI or POR Figure 5. MC68HC908AZ60 — Rev 2.0 Figure Figure 111 ...

Page 114

... CPU and memories are released from reset to allow the reset vector sequence to occur. At power-on, the following events occur: • • • • • • MC68HC908AZ60 — Rev 2.0 112 RST PULLED LOW BY MCU 32 CYCLES IAB Figure 5. Internal Reset Timing ILLEGAL ADDRESS RST ILLEGAL OPCODE RST COPRST ...

Page 115

... SIM treats the STOP instruction as an illegal opcode and causes an illegal opcode reset. 9-sim MOTOROLA 4096 32 32 CYCLES CYCLES CYCLES Figure 7. POR Recovery Computer Operating Properly Module (COP) System Integration Module (SIM) System Integration Module (SIM) Reset and System Initialization $FFFE $FFFF on page 179. MC68HC908AZ60 — Rev 2.0 113 ...

Page 116

... LVIRSTD bits in the CONFIG-1 register are at logic zero. The RST pin will be held low until the SIM counts 4096 CGMXCLK cycles after V DD CPU is released from reset to allow the reset vector sequence to occur. See MC68HC908AZ60 — Rev 2.0 114 voltage falls to the V voltage. The LVI bit in the SIM reset LVII DD rises above V ...

Page 117

... The SIM counter is free-running after all reset states. See Active Resets from Internal Sources internal reset recovery sequences. 11-sim MOTOROLA on page 111 for counter control and System Integration Module (SIM) System Integration Module (SIM) SIM Counter Stop Mode on page MC68HC908AZ60 — Rev 2.0 115 ...

Page 118

... I bit is cleared), see 9. MODULE I N TERRUPT I BIT IAB DUMMY SP IDB DUMMY PC – 1[7:0] R/W MC68HC908AZ60 — Rev 2.0 116 Interrupts – Maskable hardware CPU interrupts – Non-maskable software interrupt instruction (SWI) Reset Break interrupts Figure 8 shows interrupt entry timing. SP – – – – ...

Page 119

... LOAD PC WITH INTERRUPT VECTOR. FETCH NEXT INSTRUCTION. SWI YES INSTRUCTION? NO YES RTI INSTRUCTION? NO Figure 9. Interrupt Processing System Integration Module (SIM) System Integration Module (SIM) Program Exception Control STACK CPU REGISTERS. SET I BIT. UNSTACK CPU REGISTERS. EXECUTE INSTRUCTION. MC68HC908AZ60 — Rev 2.0 117 ...

Page 120

... Families the H register is not pushed on the stack during interrupt entry. If the interrupt service routine modifies the H register or uses the indexed addressing mode, software should save the H register and then restore it prior to exiting the routine. MC68HC908AZ60 — Rev 2.0 118 SP – – – ...

Page 121

... Break Module on page 161. The SIM puts the CPU into the System Integration Module (SIM) System Integration Module (SIM) Program Exception Control BACKGROUND ROUTINE INT1 INTERRUPT SERVICE ROUTINE INT2 INTERRUPT SERVICE ROUTINE MC68HC908AZ60 — Rev 2.0 119 ...

Page 122

... Some modules can be programmed to be active in wait mode. Wait mode can also be exited by a reset or break. A break interrupt during wait mode sets the SIM break wait bit, BW, in the SIM break MC68HC908AZ60 — Rev 2.0 120 Figure 12 shows the timing for wait mode entry. ...

Page 123

... RST Figure 14. Wait Recovery from Internal Reset System Integration Module (SIM) System Integration Module (SIM) SAME SAME NEXT OPCODE SAME $00FF $00FE $00FD $01 $0B $ Cycles Cycles RST VCT H MC68HC908AZ60 — Rev 2.0 Low-Power Modes SAME $00FC RST VCT L 121 ...

Page 124

... The SIM counter is held in reset from the execution of the STOP instruction until the beginning of stop recovery then used to time the recovery period. CPUSTOP NOTE: Previous data can be operand data or the STOP opcode, depending on the last MC68HC908AZ60 — Rev 2.0 122 Figure 15 shows stop mode entry timing. IAB ...

Page 125

... Wait mode was exited by break interrupt 0 = Wait mode was not exited by break interrupt System Integration Module (SIM) System Integration Module (SIM) SIM Registers SP SP – – – See Note 0 NOTE: Writing a logic 0 clears BW MC68HC908AZ60 — Rev 2.0 Bit 0 R 123 ...

Page 126

... A power-on reset sets the POR bit and clears all other bits in the register. Address: Read: Write: POR: POR — Power-On Reset Bit MC68HC908AZ60 — Rev 2.0 124 ; See if wait mode or stop mode was exited ; by break RETURNLO is not zero, ...

Page 127

... MCU break state. To clear status bits during the break state, the BCFE bit must be set Status bits clearable during break 0 = Status bits not clearable during break System Integration Module (SIM) System Integration Module (SIM) SIM Registers MC68HC908AZ60 — Rev 2.0 Bit 0 R 125 ...

Page 128

... System Integration Module (SIM) MC68HC908AZ60 — Rev 2.0 126 System Integration Module (SIM) 22-sim MOTOROLA ...

Page 129

... Acquisition/Lock Time Definitions . . . . . . . . . . . . . . . . . . . . . . . . . 149 1-cgm MOTOROLA Clock Generator Module (CGM) Clock Generator Module (CGM) Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Acquisition and Tracking Modes 133 Manual and Automatic PLL Bandwidth Modes 133 Programming the PLL 135 Special Programming Exceptions 137 Clock Generator Module (CGM) MC68HC908AZ60 — Rev 2.0 127 ...

Page 130

... Features Features of the CGM include: • • • • • MC68HC908AZ60 — Rev 2.0 128 Phase-Locked Loop with Output Frequency in Integer Multiples of the Crystal Reference Programmable Hardware Voltage-Controlled Oscillator (VCO) for Low-Jitter Operation Automatic Bandwidth Control Mode for Low-Jitter Operation Automatic Frequency Lock Detector ...

Page 131

... CGMXCLK divided by two or the VCO clock, CGMVCLK, divided by two as the base clock, CGMOUT. The system clocks are derived from CGMOUT. shows the structure of the CGM. Clock Generator Module (CGM) Clock Generator Module (CGM) Functional Description MC68HC908AZ60 — Rev 2.0 129 ...

Page 132

... Clock Generator Module (CGM) OSC1 CGMRDV CGMRCLK V DDA PHASE DETECTOR LOCK DETECTOR LOCK CGMVDV MC68HC908AZ60 — Rev 2.0 130 CLOCK SELECT CIRCUIT BCS CGMXFC V SS VRS7–VRS4 VOLTAGE LOOP CONTROLLED FILTER OSCILLATOR PLL ANALOG BANDWIDTH INTERRUPT CONTROL CONTROL AUTO ACQ PLLIE PLLF MUL7– ...

Page 133

... Loop filter • Lock detector Clock Generator Module (CGM) Clock Generator Module (CGM) Functional Description BCS XLD MUL4 VRS7 VRS6 VRS5 PPG $001E MC68HC908AZ60 — Rev 2.0 1 Bit VRS4 1 0 131 ...

Page 134

... The lock detector compares the frequencies of the VCO feedback clock, CGMVDV, and the final reference clock, CGMRDV. Therefore, the speed of the lock detector is directly proportional to the final reference frequency, f condition based on this comparison. MC68HC908AZ60 — Rev 2.0 132 is equal to the nominal center-of-range VRS , (4.9152 MHz) times a linear factor L or (L)f ...

Page 135

... ACQ bit is set. PLL Bandwidth Control Register Base Clock Selector Circuit Clock Generator Module (CGM) Clock Generator Module (CGM) Functional Description on page 143. on page 137. The PLL is on page 143. If PLL on page 137. If the VCO is selected as Interrupts on page 147. MC68HC908AZ60 — Rev 2.0 133 ...

Page 136

... The following conditions apply when in manual mode: • • • • • MC68HC908AZ60 — Rev 2.0 134 The ACQ bit (See PLL Bandwidth Control Register read-only indicator of the mode of the filter. See Modes on page 133. The ACQ bit is set when the VCO frequency is within a certain ...

Page 137

... BUSDES Clock Generator Module (CGM) Clock Generator Module (CGM) Functional Description Definition . BUSDES . VCLKDES f BUSDES 8 MHz = 32 MHz , equal to the crystal frequency, RCLK f VCLKDES = ---------------------- f RCLK 32 MHz = ------------------- - = 8 4 MHz . VCLK N f RCLK 4 MHz = 32 MHz , and compare f BUS MC68HC908AZ60 — Rev 2.0 with BUS 135 ...

Page 138

... Using the value 4.9152 MHz for f 8. Calculate the VCO center-of-range frequency, f NOTE: For proper operation, Exceeding the recommended maximum bus frequency or VCO frequency can crash the MCU. 9. Program the PLL registers accordingly: MC68HC908AZ60 — Rev 2.0 136 f VCLK f = ------------- ...

Page 139

... A 0 value for L disables the PLL and prevents its selection as the source for the base clock. See page 137. Figure Clock Generator Module (CGM) Clock Generator Module (CGM) Functional Description Programming the PLL Base Clock Selector Circuit 3. Figure 3 shows only the logical MC68HC908AZ60 — Rev 2.0 on page on 137 ...

Page 140

... Figure 3 • • Routing should be done with great care to minimize signal cross talk and noise. (See information and more information on the filter capacitor’s value and its effects on PLL performance). MC68HC908AZ60 — Rev 2.0 138 Crystal Fixed capacitor Tuning capacitor, C ...

Page 141

... can be 0 (shorted) when used with higher-frequency crystals. Refer to manufacturer’s data. Figure 3. CGM External Connections F Clock Generator Module (CGM) Clock Generator Module (CGM) CGMXCLK C F should be placed as close to the F connection. MC68HC908AZ60 — Rev 2.0 I/O Signals BYP 139 ...

Page 142

... CGMVCLK, divided by two. CGM CPU Interrupt CGMINT is the CPU interrupt signal generated by the PLL lock detector. (CGMINT) MC68HC908AZ60 — Rev 2.0 140 is a power pin used by the analog portions of the PLL. Connect the pin to the same voltage potential as the V carefully for maximum noise immunity and place bypass DDA ) and comes directly from the crystal oscillator circuit ...

Page 143

... PLLIE cannot be written and reads as logic 0. Reset clears the PLLIE bit PLL CPU interrupt requests enabled 0 = PLL CPU interrupt requests disabled Clock Generator Module (CGM) Clock Generator Module (CGM) CGM Registers BCS MC68HC908AZ60 — Rev 2.0 Bit 141 ...

Page 144

... VCO clock as the source of the base clock if the PLL is off. Therefore, PLLON cannot be cleared when BCS is set, and BCS cannot be set when PLLON is clear. If the PLL is off MC68HC908AZ60 — Rev 2.0 142 1 = Change in lock condition change in lock condition ...

Page 145

... In manual operation, forces the PLL into acquisition or tracking mode $001D Bit LOCK AUTO ACQ Unimplemented Figure 5. PLL Bandwidth Control Register (PBWC) Clock Generator Module (CGM) Clock Generator Module (CGM) CGM Registers on page 137 XLD MC68HC908AZ60 — Rev 2.0 Bit 143 ...

Page 146

... XLD — Crystal Loss Detect Bit When the VCO output, CGMVCLK, is driving CGMOUT, this read/write bit can indicate whether the crystal reference frequency is active or not. MC68HC908AZ60 — Rev 2.0 144 1 = Automatic bandwidth control 0 = Manual bandwidth control 1 = VCO frequency correct or locked ...

Page 147

... Reset initializes these bits give a default multiply value of 6. Clock Generator Module (CGM) Clock Generator Module (CGM) CGM Registers MUL4 VRS7 VRS6 VRS5 Circuits on page 131 and MC68HC908AZ60 — Rev 2.0 1 Bit 0 VRS4 1 0 145 ...

Page 148

... VCO clock as the source of the base clock (BCS = 1) if the VCO range select bits are all clear. The VCO range select bits must be programmed correctly. Incorrect programming can result in failure of the PLL to achieve lock. MC68HC908AZ60 — Rev 2.0 146 Table 3. VCO Frequency Multiplier (N) Selection MUL7:MUL6:MUL5:MUL4 ...

Page 149

... PLL without turning it off. Applications that require the PLL to wake the MCU from wait mode also can deselect the PLL output without turning off the PLL. 21-cgm MOTOROLA Clock Generator Module (CGM) Clock Generator Module (CGM) Interrupts MC68HC908AZ60 — Rev 2.0 147 ...

Page 150

... To protect the PLLF bit during the break state, write a logic 0 to the BCFE bit. With BCFE at logic 0 (its default state), software can read and write the PLL control register during the break state without affecting the PLLF bit. MC68HC908AZ60 — Rev 2.0 148 Clock Generator Module (CGM) Break Module ...

Page 151

... Acquisition time is based on an initial frequency error, Clock Generator Module (CGM) Clock Generator Module (CGM) Acquisition/Lock Time Specifications trk MC68HC908AZ60 — Rev 2.0 . 149 ...

Page 152

... The size of the capacitor also is related to the stability of the PLL. If the capacitor is too small, the PLL cannot make small enough adjustments to the voltage and the system cannot lock. If the capacitor MC68HC908AZ60 — Rev 2.0 150 (f – not more than 100% ...

Page 153

... fact , (see Electrical Specifications fact , choose the voltage potential at which the DDA Clock Generator Module (CGM) Clock Generator Module (CGM) Acquisition/Lock Time Specifications on page 151. . The DDA on page 150, V DDA ------------ - f rdv on page MC68HC908AZ60 — Rev 2.0 151 ...

Page 154

... In automatic bandwidth control mode, the acquisition and lock times are quantized into units based on the reference frequency. (See Automatic PLL Bandwidth Modes clock cycles, n tracking mode entry tolerance, MC68HC908AZ60 — Rev 2.0 152 Correct selection of filter capacitor, C Capacitor on page 151). Room temperature operation ...

Page 155

... Clock Generator Module (CGM) Clock Generator Module (CGM) Acquisition/Lock Time Specifications , is required to ascertain that the TRK . Therefore, the Lock /f , and the ACQ RDV /f TRK RDV Base Clock Selector Circuit Parametric Influences on MC68HC908AZ60 — Rev 2.0 . Also, on 153 ...

Page 156

... Clock Generator Module (CGM) MC68HC908AZ60 — Rev 2.0 154 Clock Generator Module (CGM) MOTOROLA ...

Page 157

... Configuration Register (CONFIG-1) Resets caused by the LVI module Power to the LVI module LVI enabled during stop mode Stop mode recovery time (32 CGMXCLK cycles or 4096 CGMXCLK cycles) Computer operating properly module (COP) Stop instruction enable/disable. Configuration Register (CONFIG-1) MC68HC908AZ60 — Rev 2.0 155 ...

Page 158

... LVISTOP bit must logic 1. Take note that by enabling the LVI in stop mode, the stop I LVIRST — LVI Reset Enable Bit LVIRST enables the reset signal from the LVI module. (See Low-Voltage Inhibit (LVI) MC68HC908AZ60 — Rev 2.0 156 falls to a voltage, LVI DD TRIPF ...

Page 159

... COPD disables the COP module. (See Computer Operating Properly Module (COP COP module disabled 0 = COP module enabled Configuration Register (CONFIG-1) Configuration Register (CONFIG-1) Functional Description Low-Voltage Inhibit (LVI) on page 179 – 2 CGMXCLK cycles 18 4 – 2 CGMXCLK cycles on page 179). MC68HC908AZ60 — Rev 2.0 on 157 ...

Page 160

... ConÞguration Register (CONFIG-1) MC68HC908AZ60 — Rev 2.0 158 Configuration Register (CONFIG-1) 4-config-1 MOTOROLA ...

Page 161

... Configuration Register (CONFIG-2) Configures either the MC68HC08AZxx emulator or the MC68HC08ASxx emulator Disables the CAN module $FE09 Bit MSCAND Figure 1. Configuration Register (CONFIG-2) Configuration Register (CONFIG- Bit AZxx MC68HC908AZ60 — Rev 2.0 159 ...

Page 162

... AZxx — AZxx Emulator Enable Bit AZxx enables the MC68HC08AZxx emulator configuration. This bit will be 0 out of reset. NOTE: AZxx bit is reset by a POWER-ON-RESET only. MC68HC908AZ60 — Rev 2.0 160 on page 331 MSCAN module disabled 0 = MSCAN Module enabled 1 = MC68HC08AZxx emulator enabled ...

Page 163

... Features • • • • 1-brk MOTOROLA Accessible I/O Registers during Break Interrupts CPU-Generated Break Interrupts Software-Generated Break Interrupts COP Disabling during Break Interrupts Break Module Break Module Break Module MC68HC908AZ60 — Rev 2.0 161 ...

Page 164

... CPU completes its current instruction. A return-from-interrupt instruction (RTI) in the break routine ends the break interrupt and returns the MCU to normal operation. MC68HC908AZ60 — Rev 2.0 162 A CPU-generated address (the address in the program counter) matches the contents of the break address registers. ...

Page 165

... Loading the program counter with $FFFC:$FFFD ($FEFC:$FEFD in monitor mode) Break Module Functional Description Reserved BRKL BSCR $FE0D $FE0E MC68HC908AZ60 — Rev 2.0 Break Module 1 Bit 0 9 Bit Bit 163 ...

Page 166

... If so, the user can modify the return address on the stack by subtracting one from it. (See on page 123). Stop Mode The break module is inactive in stop mode. The STOP instruction does not affect break module register states. MC68HC908AZ60 — Rev 2.0 164 SIM Break Status Register Break Module is present on the Hi ...

Page 167

... Clear BRKA by writing a logic before exiting the break routine. Reset clears the BRKA bit (When read) Break address match 0 = (When read) No break address match Break Module Break Module Break Module Registers MC68HC908AZ60 — Rev 2.0 Bit 165 ...

Page 168

... The break address registers contain the high and low bytes of the Registers desired breakpoint address. Reset clears the break address registers. Register: Address: Read: Write: Reset: Read: Write: Reset: MC68HC908AZ60 — Rev 2.0 166 BRKH BRKL $FE0C $FE0D Bit Bit 15 ...

Page 169

... Baud Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 Introduction This section describes the monitor ROM (MON). The monitor ROM allows complete testing of the MCU through a single-wire interface with a host computer. 1-mon MOTOROLA Monitor ROM (MON) Monitor ROM (MON) Monitor ROM (MON) MC68HC908AZ60 — Rev 2.0 167 ...

Page 170

... All communication between the host computer and the MCU is through the PTA0 pin. A level-shifting and multiplexing interface is required between PTA0 and the host computer. PTA0 is used in a wired-OR configuration and requires a pullup resistor. MC68HC908AZ60 — Rev 2.0 168 Normal User-Mode Pin Functionality One Pin Dedicated to Serial Communication between Monitor ...

Page 171

... Functional Description V DD 68HC08 10 k RST 0 IRQ V DDA V DDA CGMXFC 0.1 F OSC1 4.9152 MHz OSC2 SSA 0 PTA0 5 PTC3 PTC0 A (SEE PTC1 B NOTE.) MC68HC908AZ60 — Rev 2.0 /V DDAREF 169 ...

Page 172

... CGMXCLK frequency, and the OSC1 input directly generates internal bus clocks. In this case, the OSC1 signal must have a 50% duty cycle at maximum bus frequency. MC68HC908AZ60 — Rev 2.0 170 shows the pin conditions for entering monitor mode. Table 1. Mode Selection ...

Page 173

... Volt DC Electrical Characteris- Figure 2 and Figure NEXT START STOP BIT 6 BIT 7 BIT BIT NEXT START STOP BIT 5 BIT 6 BIT 7 BIT BIT STOP NEXT BIT 5 BIT 6 BIT 7 BIT START BIT MC68HC908AZ60 — Rev 2.0 SWI SWI Vector Vector High Low $FFFC $FFFD $FEFC $FEFD 3.) 171 ...

Page 174

... When the monitor receives a break signal, it drives the PTA0 pin high for the duration of two bits before echoing the break signal. MISSING STOP BIT MC68HC908AZ60 — Rev 2.0 172 Figure 4, the monitor ROM immediately echoes each READ ADDR. HIGH ADDR. HIGH Figure 4 ...

Page 175

... IREAD, indexed read • IWRITE, indexed write • READSP, read stack pointer • RUN, run user program READ ADDR. HIGH ADDR. HIGH Monitor ROM (MON) Monitor ROM (MON) Functional Description ADDR. LOW ADDR. LOW DATA RESULT MC68HC908AZ60 — Rev 2.0 173 ...

Page 176

... Operand Specifies 2-byte address in high byte:low byte order Data Returned Returns contents of next two addresses Opcode $1A Command Sequence SENT TO MONITOR ECHO MC68HC908AZ60 — Rev 2.0 174 ADDR. HIGH ADDR. HIGH ADDR. LOW IREAD IREAD DATA Monitor ROM (MON) ADDR. LOW DATA ...

Page 177

... Data Returned Returns stack pointer in high byte:low byte order Opcode $0C Command Sequence SENT TO MONITOR ECHO 9-mon MOTOROLA SENT TO MONITOR IWRITE IWRITE ECHO READSP READSP Monitor ROM (MON) Monitor ROM (MON) Functional Description DATA DATA SP HIGH SP LOW RESULT MC68HC908AZ60 — Rev 2.0 175 ...

Page 178

... This supports designs which use the MSCAN module, which is generally clocked from a 4MHz, 8MHz or 16MHz crystal. The table below outlines the available baud rates for a range of crystals and how they can match baud rate. MC68HC908AZ60 — Rev 2.0 176 SENT TO MONITOR RUN ...

Page 179

... Monitor ROM (MON) Monitor ROM (MON) Functional Description Table 10 Closest PC baud PC PTC3=0 PTC3=1 PTC3=0 57.6 28.8 0.64 1800 900 0.64 3600 1800 0.64 7200 3600 0.64 7680 3840 1.08 8861 4430 0.49 14400 7200 0.64 28800 14400 0.64 MC68HC908AZ60 — Rev 2.0 Error % PTC3=1 0.63 0.64 0.64 0.64 1.08 0.50 0.64 0.64 177 ...

Page 180

... After receiving the eight security bytes from the host, the MCU transmits a break character signalling that it is ready to receive a command. NOTE: The MCU does not transmit a break character until after the host sends the eight security bytes. MC68HC908AZ60 — Rev 2.0 178 4096 + 32 CGMXCLK CYCLES 24 CGMXCLK CYCLES 256 CGMXCLK CYCLES (ONE BIT TIME) ...

Page 181

... COP Module During Break Interrupts . . . . . . . . . . . . . . . . . . . . . . . . 184 Introduction The COP module contains a free-running counter that generates a reset if allowed to overflow. The COP module helps software recover from runaway code. Prevent a COP reset by periodically clearing the COP counter. 1-cop MOTOROLA Computer Operating Properly Module (COP) MC68HC908AZ60 — Rev 2.0 179 ...

Page 182

... Place COP clearing instructions in the main program and not in an interrupt subroutine. Such an interrupt subroutine could keep the COP from generating a reset even while the main program is not working properly. MC68HC908AZ60 — Rev 2.0 180 . During the break state Computer Operating Properly Module (COP) ...

Page 183

... COPCTL WRITE COPD FROM CONFIG-1 RESET COPCTL WRITE COPL FROM CONFIG-1 Figure 1. COP Block Diagram Computer Operating Properly Module (COP) Computer Operating Properly Module (COP) 6-BIT COP COUNTER CLEAR COP COUNTER MC68HC908AZ60 — Rev 2.0 I/O Signals Figure 1. RESET RESET STATUS REGISTER 181 ...

Page 184

... COPL The COPL signal reflects the state of the COP rate select bit. (COPL) in the configuration register. (See page 155). MC68HC908AZ60 — Rev 2.0 182 on page 183), clears the COP counter and clears Configuration Register (CONFIG-1) Configuration Register (CONFIG-1) Computer Operating Properly Module (COP) ...

Page 185

... Low Byte of Reset Vector Figure 2. COP Control Register (COPCTL) pin or on the RST pin. PP Computer Operating Properly Module (COP) Computer Operating Properly Module (COP) COP Control Register Clear COP Counter Unaffected by Reset is present on the Hi MC68HC908AZ60 — Rev 2.0 1 Bit 0 183 ...

Page 186

... To prevent inadvertently turning off the COP with a STOP instruction, disable the STOP instruction by clearing the STOP bit. COP Module During Break Interrupts The COP is disabled during a break interrupt when V RST pin. MC68HC908AZ60 — Rev 2.0 184 Computer Operating Properly Module (COP) is present on the Hi ...

Page 187

... Polled LVI Operation 188 Forced Reset Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 False Reset Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 LVI Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 LVI Interrupts 189 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 Wait Mode 190 Stop Mode 190 1-lvi MOTOROLA Low-Voltage Inhibit (LVI) Low-Voltage Inhibit (LVI) Low-Voltage Inhibit (LVI) MC68HC908AZ60 — Rev 2.0 185 ...

Page 188

... CPU cycles. NOTE: Note that short V responsibility to ensure a clean V voltage range if normal microcontroller operation guaranteed. MC68HC908AZ60 — Rev 2.0 186 pin and can force a reset when the V DD Programmable LVI Reset Programmable Power Consumption ...

Page 189

... LVISTOP FROM CONFIG-1 Figure 1. LVI Module Block Diagram Low-Voltage Inhibit (LVI) Low-Voltage Inhibit (LVI) Functional Description . LVIPWR, LVISTOP, and LVIRST are Configuration Register for only one TRIPR Forced Reset Operation FROM CONFIG-1 LVIRST LVIOUT MC68HC908AZ60 — Rev 2.0 rises DD LVI RESET 187 ...

Page 190

... LVI resets. False Reset The V Protection supply noise. In order for the LVI module to reset the MCU,V remain at or below the LVI cycles. V MCU out of reset. MC68HC908AZ60 — Rev 2.0 188 Bit Unimplemented Figure 2. LVI I/O Register Summary by polling the LVIOUT bit. In the configuration ...

Page 191

... DD Table For Number of CGMXCLK Cycles: Any < 32 CGMXCLK Cycles Between 32 and 40 CGMXCLK Cycles > 40 CGMXCLK Cycles Any MC68HC908AZ60 — Rev 2.0 level . TRIPF 1 Bit 1). Reset LVIOUT Previous Value 189 ...

Page 192

... Note that the LVI feature is intended to provide the safe shutdown of the microcontroller and thus protection of related circuitry prior to any application V intended that users operate the microcontroller at lower than specified operating voltage V MC68HC908AZ60 — Rev 2.0 190 voltage collapsing completely to an unsafe level not DD . ...

Page 193

... Features Features include: • • • • 1-irq MOTOROLA External Interrupt Module (IRQ) External Interrupt Module (IRQ) Dedicated External Interrupt Pin (IRQ/V Hysteresis Buffer Programmable Edge-Only or Edge- and Level-Interrupt Sensitivity Automatic Interrupt Acknowledge External Interrupt Module (IRQ MC68HC908AZ60 — Rev 2.0 191 ...

Page 194

... ACK1 VECTOR FETCH DECODER IRQ/V PP MC68HC908AZ60 — Rev 2.0 192 Figure 1 shows the structure of the IRQ module. pin are latched into the IRQ latch Vector fetch — A vector fetch automatically generates an interrupt acknowledge signal that clears the latch that caused the vector fetch. Software clear — ...

Page 195

... Write Reserved • Vector fetch or software clear • Return of the interrupt pin to logic 1 External Interrupt Module (IRQ) External Interrupt Module (IRQ) Functional Description IRQF1 ACK1 MC68HC908AZ60 — Rev 2.0 1 Bit 0 IMASK1 MODE1 pin. PP Figure 2 ). 193 ...

Page 196

... External Interrupt Module (IRQ) MC68HC908AZ60 — Rev 2.0 194 FROM RESET YES I BIT SET? NO YES INTERRUPT? NO STACK CPU REGISTERS. LOAD PC WITH INTERRUPT VECTOR. FETCH NEXT INSTRUCTION. SWI YES INSTRUCTION? NO RTI YES UNSTACK CPU REGISTERS. INSTRUCTION? NO EXECUTE INSTRUCTION. Figure 2. IRQ Interrupt Flowchart External Interrupt Module (IRQ) SET I BIT ...

Page 197

... IRQ latch remains set. pin is at logic 0. A reset will clear the latch and the PP External Interrupt Module (IRQ) External Interrupt Module (IRQ) pin is both falling-edge sensitive PP pin. A falling PP pin is falling-edge sensitive only. PP MC68HC908AZ60 — Rev 2.0 IRQ Pin pin and PP pin PP pin to PP 195 ...

Page 198

... To protect the latch during the break state, write a logic 0 to the BCFE bit. With BCFE at logic 0 (its default state), writing to the ACK1 bit in the IRQ status and control register during the break state has no effect on the IRQ latch. MC68HC908AZ60 — Rev 2.0 196 SIM Break Flag Control Register External Interrupt Module (IRQ) pin ...

Page 199

... Reset clears IMASK1 IRQ interrupt requests disabled 0 = IRQ interrupt requests enabled External Interrupt Module (IRQ) External Interrupt Module (IRQ) IRQ Status and Control Register interrupt pin IRQF1 0 IMASK1 R R ACK1 MC68HC908AZ60 — Rev 2.0 Bit 0 MODE1 0 197 ...

Page 200

... External Interrupt Module (IRQ) MODE1 — IRQ Edge/Level Select Bit This read/write bit controls the triggering sensitivity of the IRQ/V pin. Reset clears MODE1. MC68HC908AZ60 — Rev 2.0 198 1 = IRQ/V interrupt requests on falling edges and low levels IRQ/V interrupt requests on falling edges only ...

Related keywords