mc68hc912dg128 Freescale Semiconductor, Inc, mc68hc912dg128 Datasheet - Page 437

no-image

mc68hc912dg128

Manufacturer Part Number
mc68hc912dg128
Description
M68hc12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc912dg128ACPV
Manufacturer:
FREESCALE
Quantity:
201
Part Number:
mc68hc912dg128ACPVE
Manufacturer:
FREESCALE
Quantity:
1 000
Part Number:
mc68hc912dg128AMPV
Manufacturer:
FREESCALE
Quantity:
334
Part Number:
mc68hc912dg128AVPV
Manufacturer:
FUJI
Quantity:
6 629
Part Number:
mc68hc912dg128CCPVE
Manufacturer:
FREESCALE
Quantity:
500
22.7 Programming EEDIVH and EEDIVL Registers
22.7.1 Normal mode
22.7.2 Special mode
MC68HC912DG128 — Rev 3.0
MOTOROLA
CAUTION:
The EEDIVH and EEDIVL registers must be correctly set according to
the oscillator frequency before any EEPROM location can be
programmed or erased.
The EEDIVH and EEDIVL registers are write once in normal mode.
Upon system reset, the application program is required to write correct
divider value to EEDIVH and EEDIVL registers based on the oscillator
frequency. After the first write, the value in the EEDIVH and EEDIVL
registers is locked from been overwritten until the next reset. The
EEPROM is then ready for standard program/erase routines.
Runaway code can possibly corrupt the EEDIVH and EEDIVL registers
if they are not initialized for the write once.
If an existing application code with EEPROM program/erase routines is
fixed and the system is already operating at a known oscillator
frequency, it is recommended to initialize the shadow word with the
corresponding EEDIVH and EEDIVL values in special mode. The
shadow word initializes EEDIVH and EEDIVL registers upon system
reset to ensure software compatibility with existing code. Initializing the
EEDIVH and EEDIVL registers in special modes (SMODN=0) is
accomplished by the following steps.
1. Write correct divider value to EEDIVH and EEDIVL registers
2. Remove the SHADOW word protection by clearing SHPROT bit in
3. Clear NOSHW bit in EEMCR register to make the SHADOW word
4. Write NOSHW bit in EEMCR register to make the SHADOW word
Freescale Semiconductor, Inc.
For More Information On This Product,
Appendix: MC68HC912DG128A EEPROM
based on the oscillator frequency as per
EEPROT register.
visible at $0FC0-$0FC1.
visible at $0FC0-$0FC1.
Go to: www.freescale.com
Programming EEDIVH and EEDIVL Registers
Appendix: MC68HC912DG128A EEPROM
Table
22-1.
Technical Data
437

Related parts for mc68hc912dg128