| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
AN2186 Freescale Semiconductor, Inc. Emulating HC08AZ60 HC08
Top Searches for this datasheetOrder this document AN2186/D AN2186 Freescale Semiconductor, Inc. Emulating HC08AZ60 HC08AZ48) Using HC908AZ60A Tracy McHenry Systems Engineering East Kilbride, Scotland Introduction purpose this document help customers HC908AZ60A (0.5µ device) emulate 0.65µ HC08AZ60 0.65µ HC08AZ48). highlights differences between Flash devices provides checklist help with development compatible code. HC908AZ60A made from technology contains Flash EEPROM. HC08AZ60 contains EEPROM whereas HC08AZ48 contains bytes EEPROM. differences between FLASH devices discussed this application note. important that user should consider differences when developing code that used both Flash (HC908AZ60A) device (either HC08AZ60 HC08AZ48) device. Motorola, Inc., 2001 More Information This Product, www.freescale.com Application Note Differences between HC08AZ60/48 HC908AZ60A This section describes differences between devices (HC08AZ60 HC08AZ48) Flash HC908AZ60A. Each affected module listed along with summary changes. versus FLASH HC08AZ60 HC08AZ48 devices, code stored static, factory masked Read Only Memory (ROM) whereas HC908AZ60A, code stored non-volatile electrically erasable programmable memory constructed from split-gate Flash technology (Flash EEPROM). There difference when reading from either Flash memories. should noted that HC908AZ60A Flash, HC08AZ60 whereas HC08AZ48 only ROM. user advised consult latest HC908AZ60A specification details programming Flash module. Freescale Semiconductor, Inc. EEPROM This section will concentrate operation HC908AZ60A EEPROM module, which made from technology. HC908AZ60A EEPROM read operations remain same HC08AZ60 HC08AZ48, however, program erase operations super-set current HC08AZ60 HC08AZ48 algorithm. Also, HC908AZ60A HC08AZ60 have byte EEPROM modules, whereas HC08AZ48 byte EEPROM module byte module. Each HC908AZ60A EEPROM modules contains registers that must correctly before attempt made program erase EEPROM. registers required provide EEPROM with constant timebase 35µs from user's oscillator frequency. AN2186 Differences between HC08AZ60/48 HC908AZ60A More Information This Product, www.freescale.com Motorola Application Note important spend time gaining familiarity with HC908AZ60A EEPROM essential that EEPROM module correctly before program erase operations called. Failure could cause premature wear EEPROM could result improper programming/erasing EEPROM. basic programming erase operations EEPROM HC08AZ60 HC08AZ48 EEPROM HC908AZ60A same. Also, polarity same with programmed state being logic erased state logic user advised consult latest HC08AZ60/48 HC908AZ60A specifications details program erase algorithms. HC908AZ60A EEPROM requires constant timebase source program erase operations. clock source that required drive EEDIV clock divider input must first selected using bit-7 CONFIG-2 register address $FE09. Secondly, divide ratio from this source each byte EEPROM module programming 11-bit time base pre-scalar into divider registers, EExDIVH EExDIVL (where depending which EEPROM module selected). These registers must programmed with proper value before starting EEPROM erase programming steps. function divider provide constant clock source with period 35µs (within 2µs) internal timer related EEPROM circuits proper program erase operations. recommended frequency range reference clock 250KHz 16MHz. EEDIV value calculated following formula: EEDIV= INT[Reference Frequency(Hz) x10-6 0.5] result rounded down nearest integer value. example, Reference Frequency 4.9152MHz, EEDIV value above formula will 172. examine time base output divider, Reference Frequency divided calculated EEDIV value (172), which equals 28.577KHz frequency 34.99µs period. user must exercise caution when setting divide ratio EExDIVH EExDIVL volatile registers. They have duplicate nonAN2186 Motorola Differences between HC08AZ60/48 HC908AZ60A More Information This Product, www.freescale.com Freescale Semiconductor, Inc. Application Note volatile registers, EExDIVHNVR EExDIVLNVR whose contents loaded into EExDIVH EExDIVL upon reset. However, user should remember correctly EExDIVH EExDIVL registers before attempting program EExDIVHNVR EExDIVLNVR non-volatile registers. order develop code compatible with Flash device, software should first detect whether device HC908AZ60A HC08AZ60/HC08AZ48. Figure section shows method performing device detection. HC908AZ60A detected, then user perform following options order EExDIVH/L registers. Option Write required divider value into EExDIVH EExDIVL. Call EEPROM programming routine program EExDIVHNVR EExDIVLNVR with divider value that user would like downloaded into EEDIVH EEDIVL every time device reset. Option user's initialisation routine that called every time device reset before EEPROM program erase operations attempted, write required divider value into EExDIVH EExDIVL. Ignore non-volatile EExDIVHNVR EExDIVLNVR registers. After reset, initialisation routine will executed required divider value will written into EExDIVH EExDIVL. This will overwrite default value that downloaded upon reset from EExDIVHNVR EExDIVLNVR. Freescale Semiconductor, Inc. NOTE: EExDIVH EExDIVL registers shown below should also noted that Bit-7, EEDIVSECD, EExDIVH (and EExDIVHNVR) controls EEPROM security. this programmed after system reset security feature permanently enabled divider value EEDIV registers cannot changed. AN2186 Differences between HC08AZ60/48 HC908AZ60A More Information This Product, www.freescale.com Motorola Application Note EE1DIVH $FE1A Reset: Bit-7 EEDIVSECD EE1DIVHNVR EE1DIV10 EE1DIV9 EE1DIVHNVR EE1DIV8 EE1DIVHNVR EE1DIVHNVR EE1DIVL $FE1B Bit-7 EE1DIV7 EE1DIV6 EE1DIV5 EE1DIV4 EE1DIV3 EE1DIV2 EE1DIV1 EE1DIV0 Freescale Semiconductor, Inc. Reset: EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR EE2DIVH $FF7A Reset: Bit-7 EEDIVSECD EE2DIVHNVR EE2DIV10 EE2DIV9 EE2DIVHNVR EE2DIV8 EE2DIVHNVR EE2DIVHNVR EE2DIVL $FF7B Bit-7 EE2DIV7 EE2DIV6 EE2DIV5 EE2DIV4 EE2DIV3 EE2DIV2 EE2DIV1 EE2DIV0 Reset: EE2DIVLNVR EE2DIVLNVR EE2DIVLNVR EE2DIVLNVR EE2DIVLNVR EE2DIVLNVR EE2DIVLNVR EE2DIVLNVR HC908AZ60A EEPROM also contains feature selected AUTO EEPROM control registers (EE1CR address $FE1D EEPROM module EE2CR address $FF7D EEPROM module Setting bit-1 these registers (which unused HC08AZ32 EECR) enables AUTO function. AUTO function enables significantly faster programming/erasing EEPROM allowing logic automatically optimum programming erasing time EEPROM. Using AUTO function means that user does need wait normal minimum specified programming erasing time. After setting EEPGM normal user just poll that again, waiting clear indicating that programming erasing complete. However, this AN2186 Motorola Differences between HC08AZ60/48 HC908AZ60A More Information This Product, www.freescale.com Application Note feature available HC08AZ60 HC08AZ48, therefore, keep code compatible with HC08AZ60 HC08AZ48, user advised enable Finally, HC908AZ60A special feature that designates bytes addresses from $08F0 $08FF EEPROM-1 bytes addresses from $06F0 $06FF EEPROM-2 permanently secured. This security option enabled programming EEPRTCT EEPROM Non-Volatile Register (EE1NVR, address $FE1C EE2NVR, address $FF7C) logic Once EEPRTCT programmed first time programming erasing secured locations $08F0 $08FF EEPROM-1 $06F0 $06FF EEPROM-2 selected) permanently disabled. Secured locations $08F0 $08FF $06F0 $06FF EEPROM-2 selected) can, however, read normal. Programming erasing EENVR permanently disabled bulk block erase operations disabled unprotected locations ($0800-$08EF $0900-$09FF EEPROM-1 $0600-$06EF $0700 $07FF EEPROM-2). Single byte program erase operations still available locations $0800-$08EF EEPROM-1 ($0600-$06EF EEPROM-2) $0900-$09FF EEPROM-1 ($0700-$07FF EEPROM-2) bytes that protected EEPROM Block Protect, EEPBx, bits EExNVR. Freescale Semiconductor, Inc. NOTE: Once armed, protect option permanently enabled. Consequently, functions EExNVR will remain state they were immediately before security enabled. Mask Options HC08AZ60 HC08AZ48 have mask option register (MOR) whose content selected user code submission. Flash devices have mask option register. Therefore, HC908AZ60A uses configuration registers (Config-1 Config-2) which need programmed user select required options. configuration registers write-once registers. reset configuration registers will read their default values. Once these registers have been written further writes will have effect until reset occurs. order develop code compatible with AN2186 Differences between HC08AZ60/48 HC908AZ60A More Information This Product, www.freescale.com Motorola Application Note Flash device, software should able detect whether device HC908AZ60A HC08AZ60/HC08AZ48. Figure section shows method performing device detection. HC908AZ60A detected, then configuration registers (Config-1 Config-2) should programmed with required values. Also, Config-2 register should only accessed when device HC908AZ60A. 2.3.1 Mask Option Register (MOR) versus Config-1 Register Config-1 registers both located address $001F polarity bits same. However, Config-1 reserved whereas register set, security enabled. Freescale Semiconductor, Inc. Bit-7 ROMSEC Unaffected LVIRST LVIPWR Reset SSREC COPL STOP COPD $001F LVISTOP Reset: Config-1 Bit-7 Reserved LVIRST LVIPWR SSREC COPL STOP COPD $001F LVISTOP Reset: 2.3.2 Config-2 Register HC908AZ60A Config-2 register which located address $FE09 several bits that important code development, particular when writing EEPROM. This register reserved location HC08AZ60 HC08AZ48 therefore user advised read write this address device type HC08AZ60/48. Config-2 $FE09 Reset: Bit-7 EEDIVCLK Reserved MSCAND AT60A (read only) AZxx AN2186 Motorola Differences between HC08AZ60/48 HC908AZ60A More Information This Product, www.freescale.com Application Note following descriptions refer config-2 (address $FE09) HC908AZ60A. Bit-0 AZxx This used configure device `AZ' device should user. Bit-3 AT60A This device indicator read-only which identifies device A-suffix silicon. this then HC908AZ60A silicon. This should only used distinguish between 0.65µ flash HC908AZ60 0.5µ flash HC908AZ60A. Bit-4 MSCAND This used disable MSCAN module. When MSCAN module disabled. Bit-7 EEDIVCLK This EEPROM Timebase Divider Clock Select which selects reference clock source EEPROM timebase divider. Selected means that clock (possibly PLL) drives EEPROM time base divider. selects CGMXCLK instead. Freescale Semiconductor, Inc. Analogue Digital Converter user should aware that pins used channels both Flash devices also share their functions with timer clock inputs well general purpose I/O. Therefore, channels using TACLK TBCLK pins clock inputs 16-bit timers. Differences Guide flowchart shown figure illustrates possible method determining whether device HC908AZ60A HC08AZ60/48. Figure checklist main HC908AZ60A differences. AN2186 Differences Guide More Information This Product, www.freescale.com Motorola Application Note AUTO detection EECR (address $FE1D) (logic Device HC08AZ60/48 Freescale Semiconductor, Inc. Device HC908AZ60A Figure Method detect HC908AZ60A HC08AZ60/48 Device HC908AZ60A Config-1 register (address $001F) Config-2 register (address $FE09) with required values Ensure reads address $FE09 (Config-2) will only occur device type HC908AZ60A EEPROM requires EEDIV registers initialisation routine before EEPROM program erase operations called. Take care over bit-7 which programmed (logic enables security will lock this register. EEPROM option AUTO feature. Ensure this enabled keep EEPROM code compatible with HC08AZ60/48 code. Figure Main changes required code HC908AZ60A AN2186 Motorola Differences Guide More Information This Product, www.freescale.com Application Note Conclusion differences discussed above should taken into account when developing code that used both HC908AZ60A HC08AZ60 HC08AZ48. Regarding EEPROM HC908AZ60A: Care should taken when setting EExDIVH, EExDIVL, EExDIVHNVR EExDIVLNVR registers ensure that setting bit-7, EExDIVSECD, does permanently enable EEDIV security feature. This essential EExDIV register values require changed. recommended that required divider value written into EExDIV registers writing EExDIVL first, then EExDIVH, taking care over value written bit-7, EExDIVSECD EExDIVH. Also, important note that EExDIVH EExDIVL registers must written with required divider value before attempting program erase EEPROM (including no-volatile registers) prevent EEPROM from being severely damaged. Finally, user advised read relevant chapters latest HC08AZ60/48 HC908AZ60A specifications ensure differences have been fully captured. Freescale Semiconductor, Inc. AN2186 Conclusion More Information This Product, www.freescale.com Motorola Application Note Freescale Semiconductor, Inc. AN2186 Motorola Conclusion More Information This Product, www.freescale.com Application Note Motorola reserves right make changes without further notice products herein. Motorola makes warranty, representation guarantee regarding suitability products particular purpose, does Motorola assume liability arising application product circuit, specifically disclaims liability, including without limitation consequential incidental damages. "Typical" parameters which provided Motorola data sheets and/or specifications vary different applications actual performance vary over time. operating parameters, including "Typicals" must validated each customer application customer's technical experts. Motorola does convey license under patent rights rights others. Motorola products designed, intended, authorized components systems intended surgical implant into body, other applications intended support sustain life, other application which failure Motorola product could create situation where personal injury death occur. Should Buyer purchase Motorola products such unintended unauthorized application, Buyer shall indemnify hold Motorola officers, employees, subsidiaries, affiliates, distributors harmless against claims, costs, damages, expenses, reasonable attorney fees arising directly indirectly, claim personal injury death associated with such unintended unauthorized use, even such claim alleges that Motorola negligent regarding design manufacture part. Motorola registered trademarks Motorola, Inc. Motorola, Inc. Equal Opportunity/Affirmative Action Employer. Freescale Semiconductor, Inc. reach USA/EUROPE: Motorola Literature Distribution; P.O. 5405, Denver, Colorado 80217. 1-303-675-2140 HOME PAGE: http://motorola.com/sps/ JAPAN: Motorola Japan Ltd.; SPS, Technial Information Center, 3-20-1, Minami-Azabu, Minato-ku, Tokyo 106-8573 Japan. 81-3-3440-3569 ASIA/PACIFIC: Motorola Semiconductors H.K. Ltd.; Silicon Harbour Centre, King Street, Industrial Estate, N.T., Hong Kong. 852-266668334 CUSTOMER FOCUS CENTER: 1-800-521-6274 Motorola, Inc., 2000 More Information This Product, www.freescale.com AN2186/D Other recent searchesXN06401G - XN06401G XN06401G Datasheet TLP4206G - TLP4206G TLP4206G Datasheet TIM-4R - TIM-4R TIM-4R Datasheet K6F8016S6A - K6F8016S6A K6F8016S6A Datasheet dsPIC33FJ32MC302 - dsPIC33FJ32MC302 dsPIC33FJ32MC302 Datasheet dsPIC33FJ64MCX02 - dsPIC33FJ64MCX02 dsPIC33FJ64MCX02 Datasheet dsPIC33FJ128MCX02 - dsPIC33FJ128MCX02 dsPIC33FJ128MCX02 Datasheet BSM300GB120DLC - BSM300GB120DLC BSM300GB120DLC Datasheet AVR033 - AVR033 AVR033 Datasheet STK500 - STK500 STK500 Datasheet 1054960000 - 1054960000 1054960000 Datasheet
Privacy Policy | Disclaimer |