mc68hc908lb8 Freescale Semiconductor, Inc, mc68hc908lb8 Datasheet - Page 125

no-image

mc68hc908lb8

Manufacturer Part Number
mc68hc908lb8
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc908lb8CDWE
Manufacturer:
FREESCALE
Quantity:
1 831
Part Number:
mc68hc908lb8CDWE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc68hc908lb8CPE
Manufacturer:
IR
Quantity:
10
13.3.1.1 Internal Oscillator Trimming
The 8-bit trimming register, OSCTRIM, allows a clock period adjust of +127 and –128 steps. Increasing
OSCTRIM value increases the clock period. Trimming will allow the internal clock frequency value fit in a
±5% range around 16 MHz.
The oscillator will be trimmed at the factory. The trimming value will be provided in a known FLASH
location, $FFC0. So that the user would be able to copy this byte from the FLASH to the OSCTRIM
register right at the beginning of assembly code.
Reset loads OSCTRIM with a default value of $80.
13.3.1.2 Internal to External Clock Switching
When external clock source (external OSC, RC, or XTAL) is desired, the user must perform the following
steps:
13.3.2 External Oscillator
The external clock option is designed for use when a clock signal is available in the application to provide
a clock source to the microcontroller. The OSC1 pin is enabled as an input by the oscillator module. The
clock signal is used directly to create BUSCLKX4 and also divided by two to create BUSCLKX2.
In this configuration, the OSC2 pin cannot output BUSCLKX4. So the OSC2EN bit in the port C pullup
enable register will be clear to enable PTC1 I/O functions on the pin.
Freescale Semiconductor
1. For external crystal circuits only, OSCOPT[1:0] = 1:1: To help precharge an external crystal
2. Set CONFIG2 bits OSCOPT[1:0] according to
3. Create a software delay to wait the stabilization time needed for the selected clock source (crystal,
4. After the manufacturer’s recommended delay has elapsed, the ECGON bit in the OSC status
5. After ECGON set is detected, the OSC module checks for oscillator activity by waiting two external
6. The OSC module then switches to the external clock. Logic provides a glitch free transition.
7. The OSC module first sets the ECGST bit in the OSCSTAT register and then stops the internal
oscillator, set PTC1 (OSC2) as an output and drive high for several cycles. This may help the
crystal circuit start more robustly.
then set OSC1 as an external clock input and, if the external crystal option is selected, OSC2 will
also be set as the clock output.
resonator, RC) as recommended by the component manufacturer. A good rule of thumb for crystal
oscillators is to wait 4096 cycles of the crystal frequency, i.e., for a 4-MHz crystal, wait
approximately 1 ms.
register (OSCSTAT) needs to be set by the user software.
clock rising edges.
oscillator.
Once transition to the external clock is done, the internal oscillator will only
be reactivated with reset. No post-switch clock monitor feature is
implemented (clock does not switch back to internal if external clock dies).
MC68HC908LB8 Data Sheet, Rev. 1
NOTE
Table
13-2. The oscillator module control logic will
Functional Description
125

Related parts for mc68hc908lb8