(MCUs). All MCUs in the family use the enhanced M68HC08 central processor unit (CPU08) and are available with a variety of modules, memory sizes and types, and package types. The information contained in this document pertains to the MC68HC908MR16 with the exceptions shown Appendix A MC68HC908MR16.
• Fast 16/8 divide instruction • Binary-coded decimal (BCD) instructions • Optimization for controller applications • C language support 1.3 MCU Block Diagram Figure 1-1 shows the structure of the MC68HC908MR32. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
Page 19
M68HC08 CPU ARITHMETIC/LOGIC REGISTERS UNIT CONTROL AND STATUS REGISTERS — 112 BYTES USER FLASH — 32,256 BYTES USER RAM — 768 BYTES MONITOR ROM — 240 BYTES USER FLASH VECTOR SPACE — 46 BYTES OSC1 CLOCK GENERATOR OSC2 MODULE CGMXFC SYSTEM INTEGRATION MODULE MODULE...
(CGM). SSAD Decoupling of these pins should be per the digital supply. See MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 and V 0.1 µF 1–10 µF Figure 1-4.
1.4.14 PWM Pins (PWM6–PWM1) PWM6–PWM1 are dedicated pins used for the outputs of the pulse-width modulator module (PWMMC). These are high-current sink pins. See Chapter 19 Electrical Specifications. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor and V DDAD SSAD...
(SCI) and four of its pins with the serial peripheral interface module (SPI). See Chapter 15 Serial Peripheral Interface Module (SPI), Chapter 13 Serial Communications Interface Module (SCI), and Chapter 10 Input/Output (I/O) Ports (PORTS). MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
Some I/O bits are reserved. Writing to a reserved bit can have unpredictable effects on MCU operation. In register figures, reserved bits are marked with the letter R. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor (Figure...
Figure 2-1 shows the memory map for the MC68HC908MR32 while the memory map for the MC68HC908MR16 is shown in MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Figure 2-2, contain most of the control, status, and data registers. Appendix A MC68HC908MR16...
Page 28
Data Direction Register F $000D (DDRF) See page 110. U = Unaffected X = Indeterminate Figure 2-2. Control, Status, and Data Registers Summary (Sheet 1 of 8) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 7 Read: PTA7 PTA6 PTA5 Write:...
Page 29
TIMA Channel 2 Status/Control $0019 Register (TASC2) See page 229. U = Unaffected X = Indeterminate Figure 2-2. Control, Status, and Data Registers Summary (Sheet 2 of 8) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Bit 7 Read: TOIE TSTOP Write:...
Page 30
$0025 (PWMOUT) See page 154. U = Unaffected X = Indeterminate Figure 2-2. Control, Status, and Data Registers Summary (Sheet 3 of 8) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 7 Read: Bit 15 Bit 14 Bit 13 Write:...
Page 31
PWM 4 Value Register Low $0031 (PVAL4L) See page 145. U = Unaffected X = Indeterminate Figure 2-2. Control, Status, and Data Registers Summary (Sheet 4 of 8) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Bit 7 Read: Write: Reset: Read:...
Page 32
$003D (SCDR) See page 177. U = Unaffected X = Indeterminate Figure 2-2. Control, Status, and Data Registers Summary (Sheet 5 of 8) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 7 Read: Bit 15 Bit 14 Bit 13 Write:...
Page 33
TIMB Counter Register High $0052 (TBCNTH) See page 246. U = Unaffected X = Indeterminate Figure 2-2. Control, Status, and Data Registers Summary (Sheet 6 of 8) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Bit 7 Read: SCP1 Write: Reset:...
Page 34
See page 68. $005F Unimplemented U = Unaffected X = Indeterminate Figure 2-2. Control, Status, and Data Registers Summary (Sheet 7 of 8) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 7 Read: Bit 7 Bit 6 Bit 5 Write:...
Page 35
COP Control Register $FFFF (COPCTL) See page 77. U = Unaffected X = Indeterminate Figure 2-2. Control, Status, and Data Registers Summary (Sheet 8 of 8) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Bit 7 Read: Write: Reset: Read:...
Page 36
Memory Table 2-1 is a list of vector locations. 1. The SPI module is not available in the 56-pin SDIP package. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Table 2-1. Vector Addresses Address $FFD2 SCI transmit vector (high) $FFD3 SCI transmit vector (low)
Before processing an interrupt, the central processor unit (CPU) uses five bytes of the stack to save the contents of the CPU registers. For M68HC05 and M1468HC05 compatibility, the H register is not stacked. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Address...
= Unimplemented Figure 2-3. FLASH Control Register (FLCR) 1. No security feature is absolutely secure. However, Freescale’s strategy is to make reading or copying the FLASH difficult for unauthorized users. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE NOTE NOTE...
FLASH location will be erased and reprogrammed less than 1000 times, and speed is important, use the 1 ms page erase specification to get a shorter cycle time. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
1. When in monitor mode, with security sequence failed (see of any FLASH address. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 within the FLASH memory address range. NOTE NOTE 18.3.2...
Characteristics. 1. The time between each FLASH address change, or the time between the last FLASH address programmed to clearing PGM bit, must not exceed the maximum programming time, t MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE...
Page 42
This row program algorithm assumes the row/s to be programmed are initially erased. Figure 2-4. FLASH Programming Flowchart MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 SET PGM BIT READ THE FLASH BLOCK PROTECT REGISTER WRITE ANY DATA TO ANY FLASH ADDRESS...
The FLASH is protected from this start address to the end of FLASH memory at $FFFF. With this mechanism, the protect start address can be XX00 and XX80 (128 bytes page boundaries) within the FLASH memory. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE Register.
Standby mode is the power-saving mode of the FLASH module in which all internal control signals to the FLASH are inactive and the current consumption of the FLASH is at a minimum. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 16-BIT MEMORY ADDRESS FLBPR VALUE Start of Address of Protect Range The entire FLASH memory is protected.
When the conversion is completed, the ADC places the result in the ADC data register (ADRH and ADRL) and sets a flag or generates an interrupt. See MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Figure...
Page 46
M68HC08 CPU ARITHMETIC/LOGIC REGISTERS UNIT CONTROL AND STATUS REGISTERS — 112 BYTES USER FLASH — 32,256 BYTES USER RAM — 768 BYTES MONITOR ROM — 240 BYTES USER FLASH VECTOR SPACE — 46 BYTES OSC1 CLOCK GENERATOR OSC2 MODULE CGMXFC SYSTEM INTEGRATION MODULE MODULE...
All other input voltages will result in $3FF if greater than V if less than V REFL Input voltage should not exceed the analog supply voltages. See 19.13 Analog-to-Digital Converter (ADC) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor ADC DATA REGISTERS ADC VOLTAGE IN ADVIN...
Left justification will place the eight most significant bits (MSB) in the corresponding ADC data register high, ADRH. This may be useful if the result is to be treated as an 8-bit result where the two least MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 16 to17 ADC Cycles...
RESULT RESULT IDEAL 10-BIT CHARACTERISTIC WITH QUANTIZATION = ±1/2 3.3.6 Monotonicity The conversion process is monotonic and has no missing codes. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE Figure 3-3. IDEAL 8-BIT CHARACTERISTIC WITH QUANTIZATION = ±1/2...
ADC. Connect the V REFL . A finite current will be associated with V SSAD In the 56-pin shrink dual in-line package (SDIP), V together. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 DDAD as its power pin. Connect the V DDAD NOTE SSAD as its ground pin.
These I/O registers control and monitor operation of the ADC: • ADC status and control register, ADSCR • ADC data registers, ADRH and ARDL • ADC clock register, ADCLK MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor and V REFH and V REFH REFL...
The ADC subsystem is turned off when the channel select bits are all set to 1. This feature allows for reduced power consumption for the MCU when the ADC is not used. Recovery from the disabled state requires one conversion cycle to stabilize. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 AIEN ADCO...
Page 53
1. ATD9 is not available in the 56-pin SDIP package. 2. Used for factory testing. 3. If any unused channels are selected, the resulting ADC conversion will be unknown. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Table 3-1. Mux Channel Select...
ADC conversion completes. Reading ADRH latches the contents of ADRL until ADRL is read. Until ADRL is read, all subsequent ADC results will be lost. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Unaffected by reset = Reserved...
ADIV2, ADIV1, and ADIV0 form a 3-bit field which selects the divide ratio used by the ADC to generate the internal ADC clock. Table 3-2 ADIV2 X = don’t care MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Unaffected by reset = Reserved Unaffected by reset...
Page 56
00 = 8-bit truncation mode 01 = Right justified mode 10 = Left justified mode 11 = Left justified sign data mode MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 , correct operation can be guaranteed. See ADIC Characteristics. ADIV[2:0]...
3. Base clock selector circuit — This software-controlled circuit selects either CGMXCLK divided by two or the VCO clock, CGMVCLK, divided by two as the base clock, CGMOUT. The SIM derives the system clocks from CGMOUT. Figure 4-1 shows the structure of the CGM. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
Page 58
$005C (PCTL) See page 66. PLL Bandwidth Control Register $005D (PBWC) See page 67. PLL Programming Register $005E (PPG) See page 68. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 CLOCK SELECT CIRCUIT CGMRCLK CGMXFC VRS[7:4] VOLTAGE LOOP CONTROLLED FILTER OSCILLATOR...
4.3.2.2 Acquisition and Tracking the reference frequency determines the speed of the corrections and the stability of the PLL. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor , (4.9152 MHz) times a linear factor, L or (L) f...
• CPU interrupts can occur if enabled (PLLIE = 1) when the PLL’s lock condition changes, toggling the LOCK bit. For more information, see MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 4.5.2 PLL Bandwidth Control 4.3.3 Base Clock Selector Circuit. The PLL is automatically in 4.3.3 Base Clock Selector...
Example: N = 4 MHz 4. Calculate the VCO frequency, f Example: f MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor , after entering tracking mode before selecting the PLL as the Table 4-1 lists the variables used and their meaning.
CGMXCLK cycles and three CGMVCLK cycles to change from one clock source to the other. During this time, CGMOUT is held in stasis. The output of the transition control circuit is then divided by MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 , and compare f...
) is included in the diagram to follow strict Pierce oscillator guidelines and may not be required for all ranges of operation, especially with high-frequency crystals. Refer to the crystal manufacturer’s data for more information. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor CGMXCLK...
4.4.5 Oscillator Enable Signal (SIMOSCEN) The SIMOSCEN signal comes from the system integration module (SIM) and enables the oscillator and PLL. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE NOTE should be placed as close to the CGMXFC connection.
4. When PLLON = 0 or VRS[7:4] = $0, BCS is forced to logic 0 and is read-only. 5. When PLLON = 1, the PLL programming register is read-only. 6. When BCS = 1, PLLON is forced set and is read-only. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Figure 4-3 shows only the logical relation of CGMXCLK to OSC1 4.5.1 PLL Control Register...
0 = CGMXCLK divided by two drives CGMOUT PLLON and BCS have built-in protection that prevents the base clock selector circuit from selecting the VCO clock as the source of the base clock MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 PLLF PLLON Figure 4-5.
Table 4-2. VCO Frequency Multiplier (N) Selection MUL7:MUL6:MUL5:MUL4 0000 0001 0010 0011 1101 1110 1111 MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 MUL6 MUL5 MUL4 VRS7 4.3.2.4 Programming the PLL. A value of $0 in the multiplier select bits VCO Frequency Multiplier (N) Bit 0...
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. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE .
This frequency is the input to the phase detector and controls how often the PLL makes corrections. For stability, the corrections must be small compared to the desired frequency, so several corrections are MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 – f 4.3.2.3 Manual and Automatic PLL Bandwidth...
Correct selection of filter capacitor, C • Room temperature operation • Negligible external leakage on C • Negligible noise MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor 4.8.3 Choosing a Filter Time, the external filter capacitor, C ⎛ ⎞ ⎜...
Page 72
In manual mode, it is usually necessary to wait considerably longer than t clock (see 4.3.3 Base Clock Selector Influences on Reaction Time may slow the lock time considerably. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 is the K factor when the PLL is configured in tracking mode. Modes. ⎛ ⎞...
If the LVI module and the LVI reset signal are enabled, a reset occurs when falls to a voltage, V nine consecutive central processor unit (CPU) cycles. Once an LVI reset occurs, the MCU remains in reset until V MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE 5-1.
An internal reset clears the SIM counter and the COP counter. 6.3.5 Reset Vector Fetch A reset vector fetch occurs when the vector address appears on the data bus. A reset vector fetch clears the SIM counter. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 7 Read: Write: Reset: Figure 6-2.
Stop mode turns off the CGMXCLK input to the COP and clears the COP prescaler. Service the COP immediately before entering or after exiting stop mode to ensure a full COP timeout period after entering or exiting stop mode. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
Modular architecture with expandable internal bus definition for extension of addressing range beyond 64 Kbytes • Low-power stop and wait modes 7.3 CPU Registers Figure 7-1 shows the five CPU registers. CPU registers are not part of the memory map. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
The index register can serve also as a temporary data storage location. Read: Write: Reset: X = Indeterminate MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 ACCUMULATOR (A) INDEX REGISTER (H:X) STACK POINTER (SP) PROGRAM COUNTER (PC) V 1 1 H I N Z C...
The vector address is the address of the first instruction to be executed after exiting the reset state. Read: Write: Reset: MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Figure 7-4. Stack Pointer (SP) NOTE Loaded with vector from $FFFE and $FFFF Figure 7-5.
The CPU sets the negative flag when an arithmetic operation, logic operation, or data manipulation produces a negative result, setting bit 7 of the result. 1 = Negative result 0 = Non-negative result MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE Bit 0 Freescale Semiconductor...
CPU instruction, the break interrupt begins immediately. 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. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Arithmetic/Logic Unit (ALU)
Branch if Half Carry Bit Clear BHCS rel Branch if Half Carry Bit Set BHI rel Branch if Higher MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Description V H I N Z C A ← (A) + (M) + (C) A ← (A) + (M) SP ←...
Page 85
CBEQ opr,X+,rel CBEQ X+,rel CBEQ opr,SP,rel Clear Carry Bit Clear Interrupt Mask MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Description V H I N Z C PC ← (PC) + 2 + rel ? (C) = 0 – – – – – – REL PC ←...
Page 86
INC opr INCA INCX Increment INC opr,X INC ,X INC opr,SP MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Description V H I N Z C M ← $00 A ← $00 X ← $00 H ← $00 0 – – 0 1 –...
Page 87
ORA opr,SP PSHA Push A onto Stack PSHH Push H onto Stack PSHX Push X onto Stack MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Effect on CCR Description V H I N Z C PC ← Jump Address –...
Page 88
SUB opr,X Subtract SUB opr,X SUB ,X SUB opr,SP SUB opr,SP MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Effect on CCR Description V H I N Z C SP ← (SP + 1); Pull (A) – – – – – – INH SP ←...
$FFFA and $FFFB. • Return of the IRQ pin to logic 1 — As long as the IRQ pin is at logic 0, the IRQ1 latch remains set. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE Figure 8-3.)
Page 93
FROM RESET I BIT SET? INTERRUPT? FETCH NEXT INSTRUCTION INSTRUCTION? INSTRUCTION? MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor STACK CPU REGISTERS LOAD PC WITH INTERRUPT VECTOR UNSTACK CPU REGISTERS EXECUTE INSTRUCTION Figure 8-3. IRQ Interrupt Flowchart SET I BIT...
Figure 8-4. IRQ Status and Control Register (ISCR) ACK1 — IRQ Interrupt Request Acknowledge Bit Writing a logic 1 to this write-only bit clears the IRQ latch. ACK1 always reads as logic 0. Reset clears ACK1. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE IRQF Bit 0...
Page 95
This read-only bit acts as a status flag, indicating an IRQ event occurred. 1 = External IRQ event occurred. 0 = External IRQ event did not occur. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor IRQ Status and Control Register...
CPU CLOCK > LVItrip = 0 LOW V DETECTOR < LVItrip = 1 TRPSEL FROM LVISCR MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor voltage falls to the LVI trip voltage. Chapter 5 Configuration Register LVIPWR FROM CONFIG DIGITAL FILTER...
The trip point (VLVR1 or VLVR2) may be lower than this. See Electrical Characteristics. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 for only one CPU cycle to bring the MCU out of reset. See Reset. The output of the comparator controls the state of the LVIOUT...
The WAIT instruction puts the MCU in low power-consumption standby mode. With the LVIPWR bit in the configuration register programmed to 1, the LVI module is active after a WAIT instruction. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor voltages below the V...
9.7 Stop Mode If enabled, the LVI module remains active in stop mode. If enabled to generate resets, the LVI module can generate a reset and bring the MCU out of stop mode. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
(PTC) See page 106. Port D Data Register $0003 (PTD) See page 107. Data Direction Register A $0004 (DDRA) See page 103. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE Bit 7 Read: PTA7 PTA6 PTA5 Write: Reset:...
Page 102
Data Direction Register E $000C (DDRE) See page 109. Data Direction Register F $000D (DDRF) See page 110. Figure 10-1. I/O Port Register Summary (Continued) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 7 Read: DDRB7 DDRB6 DDRB5 Write: Reset: Read:...
Avoid glitches on port A pins by writing to the port A data register before changing data direction register A bits from 0 to 1. Figure 10-4 shows the port A I/O logic. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor PTA6 PTA5...
These read/write bits are software-programmable. Data direction of each port B pin is under the control of the corresponding bit in data direction register B. Reset has no effect on port B data. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 DDRAx...
DDRB Bit PTB Bit 1. X = don’t care 2. Hi-Z = high impedance 3. Writing affects data register, but does not affect input. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor DDRB5 DDRB4 DDRB3 NOTE...
0 = Corresponding port C pin configured as input Avoid glitches on port C pins by writing to the port C data register before changing data direction register C bits from 0 to 1. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 PTC6 PTC5...
= Reserved Figure 10-11. Port D Data Register (PTD) PTD[6:0] — Port D Data Bits These read/write bits are software programmable. Reset has no effect on port D data. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor DDRCx RESET PTCx Figure 10-10.
E pins that are being used by the TIMA or TIMB. However, the DDRE bits always determine whether reading port E returns the states of the latches or the states of the pins. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Figure 10-12. Port D Input Circuit Table 10-4 Table 10-4.
DDRE Bit PTE Bit 1. X = don’t care 2. Hi-Z = high impedance 3. Writing affects data register, but does not affect input. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor DDRE5 DDRE4 DDRE3 NOTE...
0 = Corresponding port F pin configured as input Avoid glitches on port F pins by writing to the port F data register before changing data direction register F bits from 0 to 1. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 PTF5 PTF4...
Page 111
DDRF Bit PTF Bit 1. X = don’t care 2. Hi-Z = high impedance 3. Writing affects data register, but does not affect input. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor DDRFx RESET PTFx Figure 10-18. Port F I/O Circuit Table 10-6 summarizes the operation of the port F pins.
The POR is not a brown-out detector, low-voltage detector, or glitch detector. V at the POR must go completely to 0 to reset the microcontroller unit (MCU). To detect power-loss conditions, use a low-voltage inhibit module (LVI) or other suitable circuit. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
Dead-time insertion – Separate top/bottom pulse width correction via current sensing or programmable software bits MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor ) and a programmable prescaler. The highest resolution for = 8 MHz). The highest resolution for center-aligned operation is Figure 12-3.
Page 116
M68HC08 CPU ARITHMETIC/LOGIC REGISTERS UNIT CONTROL AND STATUS REGISTERS — 112 BYTES USER FLASH — 32,256 BYTES USER RAM — 768 BYTES MONITOR ROM — 240 BYTES USER FLASH VECTOR SPACE — 46 BYTES OSC1 CLOCK GENERATOR OSC2 MODULE CGMXFC SYSTEM INTEGRATION MODULE MODULE...
Page 117
Fault Acknowledge Register $0024 (FTACK) See page 153. Figure 12-3. Register Summary (Sheet 1 of 3) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor PWM CHANNELS 1 AND 2 PWM CHANNELS 3 AND 4 PWM CHANNELS 5 AND 6...
Page 118
PWM 3 Value Register High $002E (PVAL3H) See page 145. PWM 3 Value Register Low $002F (PVAL3L) See page 145. Figure 12-3. Register Summary (Sheet 2 of 3) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 7 Read: OUTCTL OUT6 Write: Reset: Read: Write:...
Page 119
See page 150. PWM Disable Mapping $0037 Write-Once Register (DISMAP) See page 150. Figure 12-3. Register Summary (Sheet 3 of 3) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Bit 7 Read: Bit 15 Bit 14 Bit 13 Write:...
PWMF is set. Software can use this interrupt to calculate new PWM parameters in real time for the PWM module. Reload Frequency Bits LDFQ1 and LDFQ0 MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Table 12-1. PWM Prescaler PWM Clock Frequency Table 12-2. PWM Reload Frequency...
Page 123
LDOK bit is set. Even if it is not set, an interrupt will occur if the PWMINT bit is set. To prevent this, the software should clear the PWMINT bit before enabling the PWM module. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE...
Page 124
LDOK = 1 MODULUS = 3 PWM VALUE = 1 PWMF SET Figure 12-10. Edge-Aligned PWM Value Loading MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 LDFQ1:LDFQ0 = 00 (RELOAD EVERY CYCLE) LDOK = 1 LDOK = 0 MODULUS = 3...
PWM value register. This type of operation is meant for use in motor drive circuits such as the one in PWM VALUE REGISTER PWM VALUE REGISTER PWM VALUE REGISTER INPUTS MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Figure 12-13. PWMS 1 AND 2 PWMS 3 AND 4 PWMS 5 AND 6 Figure 12-12.
Figure 12-17 shows the effects of dead-time insertion on pulse widths smaller than the dead-time. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor 12-13, if PWM1 and PWM2 were on at the same time, large currents 12-14. Current sensing determines which PWM value of a PWM generator 12.5.3 Top/Bottom Correction with Motor Phase...
Page 128
Pulse-Width Modulator for Motor Control (PWMMC) OUTPUT CONTROL (OUTCTL) PWMPAIR12 (TOP) PWMPAIR34 (TOP) PWMPAIR56 (TOP) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 OUT2 OUT4 OUT6 PWM (TOP) DEAD-TIME POSTDT (TOP) PREDT (TOP) OUTX SELECT PWM (TOP) DEAD-TIME PREDT (TOP) POSTDT (TOP)
Page 129
PWM1 W/ DEAD-TIME = 2 PWM2 W/ DEAD-TIME = 2 Figure 12-16. Dead-Time at Duty Cycle Boundaries MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor PWM VALUE = 2 PWM VALUE = 1 PWM VALUE = 3 Output Control...
This distortion is aggravated by dissimilar turn-on and turn-off delays of each of the transistors. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 PWM VALUE = 3 PWM VALUE = 2...
Page 131
PWMs are PWMs 2, 4, and 6. Current Sense Pin or Bit IS1 or IPOL1 IS1 or IPOL1 MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Figure 12-13, for a given top/bottom transistor pair, only one Table NOTE Figure 12-19 for current convention.
Page 132
When the PWM is first enabled by setting PWMEN, PWM value registers 1, 3, and 5 will be used if the ISENSx bits are configured for current sensing correction. This is because no current will have previously been sensed. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Table 12-5.
Both bits are found in the CONFIG register, which is a write-once register. This reduces the chances of the software inadvertently changing the polarity of the PWM signals and possibly damaging the motor drive hardware. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor PWM VALUE REG. 2 = 2 IS1 NEGATIVE...
PWM cycle. To avoid an unexpected dead-time occurrence, it is recommended that the OUTx bits be cleared prior to entering and prior to exiting individual PWM output control mode. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Figure 12-22.
Page 136
OUT2 PWM1 PWM2 PWM1/PWM2 DEAD-TIME Figure 12-24. Dead-Time Insertion During OUTCTL = 1 MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 DEAD-TIME INSERTED DUE TO SETTING OF OUT1 BIT DEAD-TIME INSERTED BECAUSE DEAD-TIME INSERTED WHEN OUTCTL WAS SET, THE BECAUSE OUT1 TOGGLES,...
Automatic mode is selected by setting the FMODEx bit in the fault control register. Manual mode is selected when FMODEx is clear. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor shows the structure of the PWM disabling scheme. While the PWM pins...
Page 138
The example is of fault pin 1. Fault pin 3 is logically similar and affects BANK Y disable. Note: In manual mode (FMODE = 0), faults 1 and 3 may be cleared regardless of the logic level at the input of the fault pin. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 DISX...
The FFLAGx bit is cleared by writing a 1 to the corresponding FTACKx bit. • The FINTx bit is cleared. This will not clear the FFLAGx bit. • A reset automatically clears all four interrupt latches. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor BIT 7 BIT 6 BIT 5...
FFLAGx event bit is cleared by writing to the FTACKx bit and the filtered fault condition is cleared (logic low). FILTERED FAULT PIN 1 OR 3 PWM(S) ENABLED Figure 12-29. PWM Disabling in Manual Mode (Example 1) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 PWM(S) DISABLED (INACTIVE) NOTE Figure 12-30.
Due to the absence of periodic PWM cycles, fault conditions are cleared upon each CPU cycle and the PWM outputs are re-enabled, provided all fault clearing conditions are satisfied. DISABLE BIT PWM(S) ENABLED PWM(S) DISABLED PWM(S) ENABLED Figure 12-31. PWM Software Disable MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
• Dead-time insertion when PWM pins change via the PWMOUT register The PWMF flag and pending CPU interrupts are NOT cleared when PWMEN = 0. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE 12.9.2 PWM Counter Modulo 12-32. DRIVE ACCORDING TO PWM VALUE, POLARITY, AND DEAD-TIME Figure 12-32.
$0027 Bit 7 Read: Bit 7 Write: Reset: = Unimplemented Figure 12-34. PWM Counter Register Low (PCNTL) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor 12-34. Bit 11 Bit 6 Bit 5 Bit 4 Bit 3 PWM Operation in Wait Mode...
$FFF. This operation will not be tested or guaranteed (the user should consider it illegal). However, the dead-time constraints and fault conditions will still be guaranteed. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Figure 12-36.
LDOK bit has been set and the next PWM load cycle begins. When reading these registers, the value read is the buffer (not necessarily the value the PWM generator is currently using). MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Bit 14...
When PWMF is cleared, pending PWM CPU interrupts are cleared (not including fault interrupts). ISENS1 and ISENS0 — Current Sense Correction Bits These read/write bits select the top/bottom correction scheme as shown in MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 DISY PWMINT PWMF...
Page 147
For more information, see 12.7 Initialization and the PWMEN 1 = PWM generator and PWM pins enabled 0 = PWM generator and PWM pins disabled MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Table 12-7. Correction Methods Correction Method Bits IPOL1, IPOL2, and IPOL3 are used for correction.
This buffered read/write bit selects which PWM value register is used if top/bottom correction is to be achieved without current sensing. 1 = Use PWM value register 2. 0 = Use PWM value register 1. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE LDFQ0 IPOL1...
Page 149
These buffered read/write bits allow the PWM clock frequency to be modified as shown in When reading these bits, the value read is the buffer value (not necessarily the value the PWM generator is currently using). Prescaler Bits PRSC1 and PRSC0 MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE NOTE NOTE NOTE Table 12-9.
1 = Fault pin 4 will cause CPU interrupts. 0 = Fault pin 4 will not cause CPU interrupts. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 6 Bit 5...
Page 151
This read/write bit allows the user to select between automatic and manual mode faults. For further descriptions of each mode, see 1 = Automatic mode 0 = Manual mode MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor 12.6 Fault Protection.
This read-only bit allows the user to read the current state of fault pin 1. 1 = Fault pin 1 is at logic 1. 0 = Fault pin 1 is at logic 0. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 FPIN3 FFLAG3...
Current sensing pin IS2 is monitored immediately before dead-time ends due to the assertion of PWM4. DT3 — Dead-Time 3 Bit Current sensing pin IS2 is monitored immediately before dead-time ends due to the assertion of PWM3. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor FTACK3 Control Logic Block Bit 0...
• Edge-aligned mode: The time it takes the PWM counter to count up (modulus/f 12-47. PWM CLOCK CYCLE Figure 12-47. PWM Clock Cycle and PWM Cycle Definitions MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Figure 12-47. Center-Aligned Mode...
Page 156
LDFQ1:LDFQ0 = 01 — Reload Every Two Cycles RELOAD NEW MODULUS, PRESCALER, & PWM VALUES IF LDOK = 1 Figure 12-48. PWM Load Cycle/Frequency Definition MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 PWM LOAD CYCLE (1/PWM LOAD FREQUENCY) RELOAD NEW MODULUS, PRESCALER, & PWM VALUES IF...
Page 158
M68HC08 CPU ARITHMETIC/LOGIC REGISTERS UNIT CONTROL AND STATUS REGISTERS — 112 BYTES USER FLASH — 32,256 BYTES USER RAM — 768 BYTES MONITOR ROM — 240 BYTES USER FLASH VECTOR SPACE — 46 BYTES OSC1 CLOCK GENERATOR OSC2 MODULE CGMXFC SYSTEM INTEGRATION MODULE MODULE...
SCI DATA REGISTER RECEIVE PTF4/RxD SHIFT REGISTER SCTIE TCIE SCRIE ILIE WAKEUP CONTROL ÷ 4 MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor INTERNAL BUS SCTE SCRF IDLE LOOPS RECEIVE FLAG CONTROL CONTROL ENSCI PRE- BAUD RATE...
13.3.1 Data Format The SCI uses the standard non-return-to-zero mark/space data format illustrated in START BIT 0 BIT 1 START BIT 0 BIT 1 MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 7 Read: LOOPS ENSCI TXINV Write: Reset: Read:...
Clears the R8 bit in SCC3 • Sets the break flag bit (BKF) in SCS2 • May set the overrun (OR), noise flag (NF), parity error (PE), or reception-in-progress flag (RPF) bits MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
TCIE, in SCC2 enables the TC bit to generate transmitter CPU interrupt requests. 13.3.3 Receiver Figure 13-6 shows the structure of the SCI receiver. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE Functional Description...
(SCC1) determines character length. When receiving 9-bit data, bit R8 in SCI control register 2 (SCC2) is the ninth bit (bit 8). When receiving 8-bit data, bit R8 is a copy of the eighth bit (bit 7). MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 INTERNAL BUS...
To verify the start bit and to detect noise, data recovery logic takes samples at RT3, RT5, and RT7. Table 13-1 summarizes the results of the start bit verification samples. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor START BIT...
Page 166
To verify a stop bit and to detect noise, recovery logic takes samples at RT8, RT9, and RT10. summarizes the results of the stop bit samples. RT8, RT9, and RT10 MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Table 13-1. Start Bit Verification Start Bit...
SCDR. The previous character remains in the SCDR, and the new character is lost. The overrun interrupt enable bit, ORIE, in SCC3 enables OR to generate SCI error CPU interrupt requests. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE...
The PTF5/TxD pin is the serial data output from the SCI transmitter. The SCI shares the PTF5/TxD pin with port F. When the SCI is enabled, the PTF5/TxD pin is an output regardless of the state of the DDRF5 bit in data direction register F (DDRF). MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
SCI, and the transmitter output goes into the receiver input. Both the transmitter and the receiver must be enabled to use loop mode. Reset clears the LOOPS bit. 1 = Loop mode enabled 0 = Normal operation enabled MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor ENSCI TXINV WAKE...
Page 170
1 = Odd parity 0 = Even parity Changing the PTY bit in the middle of a transmission or reception can generate a parity error. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE Table 13-4. When enabled, the parity function Figure 13-4.
This read/write bit enables the TC bit to generate SCI transmitter CPU interrupt requests. Reset clears the TCIE bit. 1 = TC enabled to generate CPU interrupt requests 0 = TC not enabled to generate CPU interrupt requests MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Table 13-4. Character Format Selection Character Format...
Page 172
0 = No break characters being transmitted Do not toggle the SBK bit immediately after setting the SCTE bit. Toggling SBK too early causes the SCI to send a break character instead of a preamble. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE NOTE NOTE...
This read/write bit enables SCI receiver CPU interrupt requests generated by the parity error bit, PE. 13.7.4 SCI Status Register 1 = SCI error CPU interrupt requests from PE bit enabled 0 = SCI error CPU interrupt requests from PE bit disabled MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor ORIE U = Unaffected 1.
SCRF generates a CPU interrupt request. In normal operation, clear the SCRF bit by reading SCS1 with SCRF set and then reading the SCDR. Reset clears SCRF. 1 = Received data available in SCDR 0 = Data not available in SCDR MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 SCRF IDLE Bit 0...
Page 175
OR was not set when SCS1 was read. Byte 2 caused the overrun and is lost. The next flag-clearing sequence reads byte 3 in the SCDR instead of byte 2. BYTE 1 READ SCS1 READ SCDR BYTE 1 MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NORMAL FLAG CLEARING SEQUENCE BYTE 2 BYTE 3 READ SCS1...
SCDR. Once cleared, BKF can become set again only after logic 1s again appear on the PTF4/RxD pin followed by another break character. Reset clears the BKF bit. 1 = Break character detected 0 = No break character detected MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 0 Freescale Semiconductor...
Figure 13-15. SCI Baud Rate Register (SCBR) SCP1 and SCP0 — SCI Baud Rate Prescaler Bits These read/write bits select the baud rate prescaler divisor as shown in and SCP0. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Unaffected by reset SCP1 SCP0 Table 13-5.
Page 178
SCI baud rates that can be generated with a 4.9152-MHz crystal with the CGM set for an f of 7.3728 MHz and the CGM set for an f MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Table 13-6. SCI Baud Rate Selection Baud Rate Divisor (BD)
PLL-based or OSC1-based clock output from CGM module (bus clock = CGMOUT divided by two) Internal address bus Internal data bus PORRST Signal from the power-on reset module to the SIM IRST Internal reset signal Read/write signal MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Figure 14-1. Table 14-1. Signal Name Conventions Description...
CPU and peripherals are inactive and held in an inactive phase until after the 4096 CGMXCLK cycle POR timeout has completed. The RST pin is driven low by the SIM during this entire period. The internal bus (IBUS) clocks start upon completion of the timeout. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 WAIT CONTROL COUNTER ÷...
(SRSR) is set as long as RST is held low for a minimum of 67 CGMXCLK cycles, assuming that neither the POR nor the LVI was the source of the reset. See timing. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor CGMXCLK...
The active reset feature allows the part to issue a reset to peripherals and other chips within a system built around the MCU. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Table 14-2. PIN Bit Set Timing Number of Cycles Required to Set PIN...
The COP module is disabled if the RST pin or the IRQ pin is held at V The COP module can be disabled only through combinational logic conditioned with the high voltage MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
External reset has no effect on the SIM counter. The SIM counter is free-running after all reset states. For counter control and internal reset recovery sequences, see 14.3.2 Active Resets from Internal Sources. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
CPU uses to determine which vector to fetch. Once an interrupt is latched by the SIM, no other interrupt can take precedence, regardless of priority, until the latched interrupt is serviced (or the I bit is cleared). See MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Figure 14-9 shows interrupt recovery timing.
Page 188
System Integration Module (SIM) AS MANY INTERRUPTS AS EXIST ON CHIP MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 FROM RESET BREAK OR SWI I BIT SET? INTERRUPT? I BIT SET? INTERRUPT? STACK CPU REGISTERS LOAD PC WITH INTERRUPT VECTOR FETCH NEXT...
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. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor SP – 3 SP –...
Figure 14-12 Figure 14-13 EXITSTOPWAIT Note: EXITSTOPWAIT = RST pin OR CPU interrupt Figure 14-12. Wait Recovery from Interrupt MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 WAIT ADDR + 1 SAME PREVIOUS DATA NEXT OPCODE Figure 14-11. Wait Mode Entry Timing show the timing for wait recovery.
Clear SBSW by writing a logic 0 to it. Reset clears SBSW. 1 = Wait mode was exited by break interrupt. 0 = Wait mode was not exited by break interrupt. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor CYCLES CYCLES Note 1.
0 = POR or read of SRSR LVI — Low-Voltage Inhibit Reset Bit 1 = Last reset caused by the LVI circuit 0 = POR or read of SRSR MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 ILOP ILAD Bit 0...
To clear status bits during the break state, the BCFE bit must be set. 1 = Status bits clearable during break 0 = Status bits not clearable during break MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor SIM Registers...
Page 194
System Integration Module (SIM) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
The generic pin names appear in the text that follows. Table 15-1 Generic Pin Names: Full Pin Names: MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor shows the full names of the SPI I/O pins. Table 15-1. Pin Name Conventions MISO...
Page 196
M68HC08 CPU ARITHMETIC/LOGIC REGISTERS UNIT CONTROL AND STATUS REGISTERS — 112 BYTES USER FLASH — 32,256 BYTES USER RAM — 768 BYTES MONITOR ROM — 240 BYTES USER FLASH VECTOR SPACE — 46 BYTES OSC1 CLOCK GENERATOR OSC2 MODULE CGMXFC SYSTEM INTEGRATION MODULE MODULE...
MISO pin. The transmission ends when the receiver full bit, SPRF, becomes set. At the same time that SPRF becomes set, the byte from the slave transfers to the receive data register. In normal operation, MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 7...
SPI control register (SPCR). The clock polarity is specified by the CPOL control bit, which selects an active high or low clock and has no significant effect on the transmission format. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor 15.6.2 Mode Fault...
CAPTURE STROBE Figure 15-5. Transmission Format (CPHA = 0) MISO/MOSI MASTER SS SLAVE SS CPHA = 0 SLAVE SS CPHA = 1 MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE Figure 15-6. BIT 6 BIT 5 BIT 4 BIT 3...
SPSCK signal. When CPHA = 0, the SPSCK signal remains inactive for the first half of the first SPSCK cycle. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
Page 202
WRITE TO SPDR CLOCK EARLIEST Figure 15-8. Transmission Start Delay (Master) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Figure 15-8 The internal SPI clock in the master is a free-running INITIATION DELAY INITIATION DELAY FROM WRITE SPDR TO TRANSFER BEGIN SPSCK = INTERNAL CLOCK ÷...
CPU READS BYTE 1 IN SPDR, CLEARING SPRF BIT. BYTE 2 SETS SPRF BIT. Figure 15-9. Missed Read of Overflow Condition MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor BYTE 2 BYTE 3 CPU READS SPSCR WITH SPRF BIT SET AND OVRF BIT CLEAR.
The SPRF, MODF, and OVRF interrupts share the same CPU interrupt vector. MODF and OVRF can generate a receiver/error CPU interrupt request. See MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Figure 15-10 illustrates this process. Generally, to avoid this second...
Page 205
To clear the MODF flag, read the SPSCR with the MODF bit set and then write to the SPCR register. This entire clearing procedure must occur with no MODF condition existing or else the flag is not cleared. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE 15.5 Transmission...
If the SPI transmit interrupt enable bit, SPTIE, is also set, SPTE can generate either an SPTE or CPU interrupt request. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Table 15-2. SPI Interrupts Request...
This implies that a back-to-back write to the transmit data register is not possible. The SPTE indicates when the next write can occur. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Resetting the SPI...
SLAVE SS CPHA = 0 SLAVE SS CPHA = 1 MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor C) capability (requiring software support) as a master in a C peripherals, MOSI becomes an open-drain output C communication, the MOSI and MISO pins...
Selects serial clock polarity and phase • Configures the SPSCK, MOSI, and MISO pins as open-drain outputs • Enables the SPI module MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 15.12.2 SPI Status and Control NOTE 15.6.2 Mode Fault Table 15-3.
Page 211
This read/write bit disables the pullup devices on pins SPSCK, MOSI, and MISO so that those pins become open-drain outputs. 1 = Wired-OR SPSCK, MOSI, and MISO pins 0 = Normal push-pull SPSCK, MOSI, and MISO pins MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor SPMSTR CPOL...
This read/write bit enables the MODF and OVRF bits to generate CPU interrupt requests. Reset clears the ERRIE bit. 1 = MODF and OVRF can generate CPU interrupt requests. 0 = MODF and OVRF cannot generate CPU interrupt requests. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 OVRF MODF SPTE...
Page 213
SPR1 and SPR0 — SPI Baud Rate Select Bits In master mode, these read/write bits select one of four baud rates as shown in SPR0 have no effect in slave mode. Reset clears SPR1 and SPR0. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE Select).
R7:R0/T7:T0 — Receive/Transmit Data Bits Do not use read-modify-write instructions on the SPI data register since the register read is not the same as the register written. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Baud Rate Divisor (BD) CGMOUT Baud rate ------------------------- - ×...
7-frequency internal bus clock prescaler selection – External TIMA clock input (4-MHz maximum frequency) • Free-running or modulo up-count operation • Toggle any channel pin on overflow • TIMA counter stop and reset bits MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
Page 216
M68HC08 CPU ARITHMETIC/LOGIC REGISTERS UNIT CONTROL AND STATUS REGISTERS — 112 BYTES USER FLASH — 32,256 BYTES USER RAM — 768 BYTES MONITOR ROM — 240 BYTES USER FLASH VECTOR SPACE — 46 BYTES OSC1 CLOCK GENERATOR OSC2 MODULE CGMXFC SYSTEM INTEGRATION MODULE MODULE...
The level transition which triggers the counter transfer is defined by the corresponding input edge bits (ELSxB and ELSxA in TASC0–TASC3 control registers with MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
Also, using a TIMA overflow interrupt routine to write a new, smaller output compare value may cause the compare to be missed. The TIMA may pass the new value before it is written. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
TIMA channel registers determines the pulse width of the PWM signal. The time between overflow and output compare is the pulse width. Program the TIMA MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
PWM period. In PWM signal generation, do not program the PWM channel to toggle on output compare. Toggling on output compare prevents reliable 0 percent MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 16.7.1 TIMA Status and Control OVERFLOW...
2. In the TIMA counter modulo registers (TAMODH–TAMODL), write the value for the required PWM period. 3. In the TIMA channel x registers (TACHxH–TACHxL), write the value for the required pulse width. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE...
Channel x TIMA CPU interrupt requests are controlled by the channel x interrupt enable bit, CHxIE. 16.5 Wait Mode The WAIT instruction puts the MCU in low power-consumption standby mode. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE 16.7.4 TIMA Channel Status and Control Table 16-2.)
The TIMA status and control register: • Enables TIMA overflow interrupts • Flags TIMA overflows • Stops the TIMA counter • Resets the TIMA counter • Prescales the TIMA counter clock MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Register. I/O Signals...
Page 226
0. Reset clears the TRST bit. 1 = Prescaler and TIMA counter cleared 0 = No effect Setting the TSTOP and TRST bits simultaneously stops the TIMA counter at a value of $0000. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 TOIE TSTOP TRST NOTE...
Bit 7 Write: Reset: = Reserved Figure 16-6. TIMA Counter Registers (TACNTH and TACNTL) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor pin or one of the seven prescaler outputs as the PTE3/TCLKA Table 16-1 shows. Reset clears the PS[2:0] bits.
Selects output toggling on TIMA overflow • Selects 0 percent and 100 percent PWM duty cycle • Selects buffered or unbuffered output compare/PWM operation MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 TAMODH — $0011 Bit 14 Bit 13 Bit 12 Bit 11 TAMODL —...
Page 229
This read/write bit enables TIMA CPU interrupts on channel x. Reset clears the CHxIE bit. 1 = Channel x CPU interrupt requests enabled 0 = Channel x CPU interrupt requests disabled MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor TASC0 — $0013 CH0IE...
Page 230
ELSxB and ELSxA work. Reset clears the ELSxB and ELSxA bits. Before enabling a TIMA channel register for input capture operation, make sure that the PTEx/TACHx pin is stable for at least two bus clocks. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Table 16-2.
Page 231
PERIOD PTEx/TCHx OUTPUT COMPARE CHxMAX TOVx MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Mode Pin under port control; initialize timer output level high Output preset Pin under port control; initialize timer output level low Capture on rising edge only...
Register Name and Address: Bit 7 Read: Bit 15 Write: Reset: Figure 16-10. TIMA Channel Registers MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 TACH0H — $0014 Bit 14 Bit 13 Bit 12 Bit 11 Indeterminate after reset TACH0L — $0015...
Page 233
Reset: Register Name and Address: Bit 7 Read: Bit 7 Write: Reset: Figure 16-10. TIMA Channel Registers MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor TACH2L — $001B Bit 6 Bit 5 Bit 4 Bit 3 Indeterminate after reset TACH3H —...
Page 234
Timer Interface A (TIMA) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
The two TIMB channels are programmable independently as input capture or output compare channels. The TIMB module is not available in the 56-pin SDIP. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE...
Page 236
M68HC08 CPU ARITHMETIC/LOGIC REGISTERS UNIT CONTROL AND STATUS REGISTERS — 112 BYTES USER FLASH — 32,256 BYTES USER RAM — 768 BYTES MONITOR ROM — 240 BYTES USER FLASH VECTOR SPACE — 46 BYTES OSC1 CLOCK GENERATOR OSC2 MODULE CGMXFC SYSTEM INTEGRATION MODULE MODULE...
The free-running counter contents are transferred to the TIMB channel status and control register (TBCHxH–TBCHxL, see 17.7.5 TIMB Channel MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Bit 7 Read: CH0F...
Writing a larger value in an output compare interrupt routine (at the end of the current pulse) could cause two output compares to occur in the same counter overflow period. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Functional Description 17.7.5 TIMB Channel...
PWM output. The frequency of an 8-bit PWM signal is variable in 256 increments. Writing $00FF (255) to the TIMB counter modulo registers produces a PWM period of 256 times the internal bus clock period if the prescaler select value is $000 (see MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE OVERFLOW...
1 pin, PTE2/TCH1B, is available as a general-purpose I/O pin. In buffered PWM signal generation, do not write new pulse width values to the currently active channel registers. User software should track the MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE...
The result is a 0 percent duty cycle output. Setting the channel x maximum duty cycle bit (CHxMAX) and setting the TOVx bit generates a 100 percent duty cycle output. (See MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE 17.7.4 TIMB Channel Status and Control Table 17-2.)
Each channel I/O pin is programmable independently as an input capture pin or an output compare pin. PTE1/TCH0B and PTE2/TCH1B can be configured as buffered output compare or buffered PWM pins. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Register.
This read/write bit enables TIMB overflow interrupts when the TOF bit becomes set. Reset clears the TOIE bit. 1 = TIMB overflow interrupts enabled 0 = TIMB overflow interrupts disabled MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 TOIE TSTOP TRST...
Page 245
PS[2:0] — Prescaler Select Bits These read/write bits select either the PTE0/TCLKB pin or one of the seven prescaler outputs as the input to the TIMB counter as PS[2:0] MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE NOTE Table 17-1 shows.
Bit 7 Write: Reset: Figure 17-7. TIMB Counter Modulo Registers (TBMODH and TBMODL) Reset the TIMB counter before writing to the TIMB counter modulo registers. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE TBCNTH — $0052 Bit 14 Bit 13...
This read/write bit enables TIMB CPU interrupts on channel x. Reset clears the CHxIE bit. 1 = Channel x CPU interrupt requests enabled 0 = Channel x CPU interrupt requests disabled MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor TBSC0 — $0056 CH0IE...
Page 248
TIMB counter overflows. When channel x is an input capture channel, TOVx has no effect. Reset clears the TOVx bit. 1 = Channel x pin toggles on TIMB counter overflow. 0 = Channel x pin does not toggle on TIMB counter overflow. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Table 17-2. Table 17-2.
Page 249
PERIOD PTEx/TCHx OUTPUT COMPARE CHxMAX TOVx MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Mode Pin under port control; initialize timer output level high Output preset Pin under port control; initialize timer output level low Capture on rising edge only...
Register Name and Address: Bit 7 Read: Bit 7 Write: Reset: Figure 17-10. TIMB Channel Registers (TBCH0H/L–TBCH1H/L) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 TBCH0H — $0057 Bit 14 Bit 13 Bit 12 Bit 11 Indeterminate after reset TBCH0L — $0058...
18.2.1.1 Flag Protection During Break Interrupts The BCFE bit in the SIM break flag control register (SBFCR) enables software to clear status bits during the break state. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
Page 252
Break Status and Control $FE0E Register (BRKSCR) Write: See page 254. Reset: Note: Writing a 0 clears BW. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 IAB15–IAB8 BREAK ADDRESS REGISTER HIGH 8-BIT COMPARATOR 8-BIT COMPARATOR BREAK ADDRESS REGISTER LOW IAB7–IAB0 Bit 7...
Figure 18-4. Break Address Register High (BRKH) Address: $FE0D Bit 7 Read: Bit 7 Write: Reset: Figure 18-5. Break Address Register Low (BRKL) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 BRKA Bit 0 Bit 0 Bit 8 Bit 0 Bit 0 Freescale Semiconductor...
Monitor mode entry can be achieved without the use of V vector addresses $FFFE and $FFFF are blank, thus reducing the hardware requirements for in-circuit programming. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Monitor ROM (MON)
COP is a mask option enabled or disabled by the COPD bit in the configuration register. 18.3.1.2 Normal Monitor Mode Table 18-2 shows the pin conditions for entering monitor mode. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 NOTE Table 18-1. Mode Differences Functions...
Page 257
S2 Position A — Bus clock = CGMXCLK ÷ 4 or CGMVCLK ÷ 4 S2 Position B — Bus clock = CGMXCLK ÷ 2 S3 Position A — Parallel communication S3 Position B — Serial communication MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor 10 µF 10 µF...
Page 258
Table 18-2. Monitor Mode Signal Requirements and Options RESET $FFFE PTC2 PLL PTC3 PTC4 (S1) /$FFFF (S2) $FFFF Blank $FFFF Blank Non-$FF Programmed 1. External clock is derived by a 32.768 kHz crystal or a 4.9152/9.8304 MHz off-chip oscillator. 2. DNA = does not apply, X = don’t care 3.
Figure 18-10. Sample Monitor Waveforms The data transmit and receive rate can be anywhere from 4800 baud to 28.8 Kbaud. Transmit and receive baud rates must be identical. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Chapter 14 System Integration Module (SIM) the MCU will come out of reset in user mode.
IREAD, indexed read • IWRITE, indexed write • READSP, read stack pointer • RUN, run user program MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 READ ADDR. HIGH ADDR. HIGH ADDR. LOW Figure 18-11. Read Transaction Figure MISSING STOP BIT 2--STOP-BIT DELAY BEFORE ZERO ECHO Figure 18-12.
Page 261
Read next 2 bytes in memory from last address accessed Operand 2-byte address in high byte:low byte order Data Returned Returns contents of next two addresses Opcode ECHO MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Command Sequence ADDRESS ADDRESS ADDRESS ADDRESS...
Page 262
FROM HOST ECHO Table 18-8. RUN (Run User Program) Command Description Executes PULH and RTI instructions Operand None Data Returned None Opcode MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Command Sequence FROM HOST DATA DATA IWRITE IWRITE ECHO Command Sequence READSP...
RAM. The bulk erase operation clears the security code locations so that all eight security bytes become $FF. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor VCO Frequency Multiplier (N)
Page 264
2 = Data return delay, 2 bit times 3 = Wait 1 bit time before sending next byte. Figure 18-13. Monitor Mode Entry Timing MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 24 BUS CYCLES 256 BUS CYCLES (MINIMUM) Freescale Semiconductor...
V ≤ (V or V inputs are connected to an appropriate logic voltage level (for example, either V or V MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor NOTE Characteristics. and V NOTE and V be constrained to the range ) ≤...
1. Power dissipation is a function of temperature. 2. K is a constant unique to the device. K can be determined for a known T can be determined for any value of T MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Symbol Symbol θ...
POR is released, RST must be driven low externally until minimum V is reached. 9. Maximum is highest voltage that POR is possible. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Symbol LVR1...
4. Some modules may require a minimum frequency greater than dc for proper operation; see appropriate table for this information. 5. Minimum pulse width reset is guaranteed to be recognized. It is possible for a smaller pulse width to cause a reset. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Symbol —...
2. Numbers refer to dimensions in Figure 19-1 3. Time to data active from high-impedance state 4. Hold time to high-impedance state 5. With 100 pF on all SPI pins MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor Serial Peripheral Interface Characteristics Symbol OP(M)
Page 270
MISO INPUT MOSI OUTPUT Note: This last clock edge is generated internally, but is not seen at the SCK pin. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 MSB IN BITS 6–1 MASTER MSB OUT BITS 6–1 a) SPI Master Timing (CPHA = 0) MSB IN BITS 6–1...
Page 271
INPUT MISO NOTE INPUT MOSI OUTPUT Note: Not defined, but normally LSB of character previously transmitted MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor MSB OUT BITS 6–1 BITS 6–1 a) SPI Slave Timing (CPHA = 0) SLAVE MSB OUT BITS 6–1...
19.11 CGM Operating Conditions Characteristic Crystal reference frequency Range nominal multiplier VCO center-of-range frequency VCO frequency multiplier VCO center of range multiplier VCO operating frequency MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Symbol TIH, TCH, Symbol — — 2 * C —...
Automatic mode time to stable Automatic stable to lock time Automatic lock time PLL jitter (deviation of average bus frequency over 2 ms) MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor CGM Acquisition/Lock Time Specifications Symbol — 0.0154 FACT —...
Chapter 20 Ordering Information and Mechanical Specifications 20.1 Introduction This section provides ordering information for the MC68HC908MR16 and MC68HC908MR32 along with the dimensions for: • 64-lead plastic quad flat pack (QFP) • 56-pin shrink dual in-line package (SDIP) The following figures show the latest package drawings at the time of this publication. To make sure that you have the latest package specifications, contact your local Freescale Sales Office.
Appendix A MC68HC908MR16 The information contained in this document pertains to the MC68HC908MR16 with the exception of that shown in Figure A-1. MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1 Freescale Semiconductor...
Page 282
Freescale Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale Semiconductor 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.
Need help?
Do you have a question about the MC68HC908MR16 and is the answer not in the manual?
Questions and answers