| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
AN2187 Emulating HC08AZ32 Using HC908AZ60A Tracy McHenry Sys
Top Searches for this datasheetOrder this document AN2187/D AN2187 Emulating HC08AZ32 Using HC908AZ60A Tracy McHenry Systems Engineering East Kilbride, Scotland Freescale Semiconductor, Inc. Introduction purpose this document help customers HC908AZ60A (0.5µ device) emulate HC08AZ32 (0.65µ device). highlights differences between devices provides checklist help with development compatible code. main difference between devices that HC908AZ60A made from technology contains Flash EEPROM, whereas HC08AZ32 contains bytes EEPROM. There other minor differences between devices these discussed this application note. user should consider differences when developing code that used both devices. Differences between HC08AZ32 HC908AZ60A This section describes differences between HC08AZ32 HC908AZ60A. Each affected module listed along with summary changes. Motorola, Inc., 2001 More Information This Product, www.freescale.com Application Note versus FLASH HC08AZ32 device, 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 however should noted that HC908AZ60A Flash whereas HC08AZ32 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 HC08AZ32, however, program erase operations super-set current HC08AZ32 algorithm. Also, HC908AZ60A byte EEPROM modules whereas HC08AZ32 byte EEPROM module. Each HC908AZ60A EEPROM modules contains registers that must correctly before attempt made program erase. registers required provide EEPROM with constant timebase 35µs from user's oscillator frequency. 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 HC08AZ32 EEPROM HC908AZ60A same. Also, polarity same with programmed state being logic erased state logic user advised consult latest HC908AZ60A specification details program erase algorithms. AN2187 Differences between HC08AZ32 HC908AZ60A More Information This Product, www.freescale.com Motorola Application Note Freescale Semiconductor, Inc. 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 nonvolatile 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 HC08AZ32. Figure section shows method performing device detection. HC908AZ60A detected, then user perform following options order EExDIVH/L registers. AN2187 Motorola Differences between HC08AZ32 HC908AZ60A More Information This Product, www.freescale.com Application Note Option Write required divider value into EExDIVH EExDIVL. Call EEPROM programming routine program EExDIVHNVR EExDIVLNVR with divider value that user would like downloaded into EExDIVH EExDIVL 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. 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 Reset: EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR EE1DIVLNVR AN2187 Differences between HC08AZ32 HC908AZ60A More Information This Product, www.freescale.com Motorola Application Note 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 Freescale Semiconductor, Inc. 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 feature available HC08AZ32, therefore, keep code compatible with HC08AZ32, 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, AN2187 Motorola Differences between HC08AZ32 HC908AZ60A More Information This Product, www.freescale.com Application Note 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 HC08AZ32 uses mask option registers (MORA MORB) various options. contents MORA MORB selected user submission. Alternatively, HC908AZ60A uses configuration registers (Config-1 Config-2) that programmed user select their 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. Owing differences between these registers (address content), code developed that used both devices then essential detect whether device HC908AZ60A HC08AZ32. Figure section shows method completing this task. code should developed such that HC908AZ60A detected, Config-1 Config2 programmed with required values. Also, Config-2 should only accessed when device HC908AZ60A that MORB should only read when device HC08AZ32. Finally, although MORA Config-1 located same address ($001F) still important know which device present when reading that location polarity several bits different. AN2187 Differences between HC08AZ32 HC908AZ60A More Information This Product, www.freescale.com Motorola Application Note 2.3.1 Mask Option Register versus Config-1 Register MORA Config-1 registers located address $001F however polarity several bits these registers different listed below. MORA Bit-7 ROMSEC LVIRSTD LVIPWRD SSREC COPRS STOP COPD $001F LVISTOP Reset: Unaffected Reset Freescale Semiconductor, Inc. Config-1 Bit-7 LVIRST LVIPWR SSREC COPL STOP COPD $001F LVISTOP Reset: Bit-2 HC08AZ32 defined Rate Select (COPRS) determine timeout period when selected enables long timeout period 262128 cycles. Conversely, this defined Long Timeout (COPL) HC908AZ60A when selected enables short timeout period 8176 cycles. Bit-4 HC08AZ32 defined Power Disable (LVIPWRD) when selected disables module power. However, this defined Power Enable (LVIPWR) HC908AZ60A when enables module power. Bit-5 HC08AZ32 defined Reset Disable (LVIRSTD) when selected disables module resets. Again, HC908AZ60A this defined reset enable (LVIRST) when enables reset signal from module. HC08AZ32 defined security (ROMSEC). Setting this enables security feature preventing access contents. AN2187 Motorola Differences between HC08AZ32 HC908AZ60A More Information This Product, www.freescale.com Application Note 2.3.2 Mask Option Register versus Config-2 Register MORB, HC08AZ32 register, located address $003F contains only active bit. HC908AZ60A Config-2 register instead which located address $FE09 several bits that important code development, particular when writing EEPROM. Bit-7 EESEC Unaffected Unimplemented MORB $003F Reset: Reset Freescale Semiconductor, Inc. Config-2 Bit-7 Reserved MSCAND AT60A (read only) AZxx $FE09 EEDIVCLK Reset: 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. AN2187 Differences between HC08AZ32 HC908AZ60A More Information This Product, www.freescale.com Motorola Application Note Bit-7 EEDIVCLK This EEPROM Timebase Divider Clock Select bit, which selects reference clock source EEPROM timebase divider. Selected means that clock (possibly PLL) drives EEPROM time base divider. selects CGMXCLK instead. Analogue Digital Converter user required select 15-channels versus 8-channels submission HC08AZ32, however, user should note that HC908AZ60A always configured with 15-channel analog digital converter. Freescale Semiconductor, Inc. CAUTION: user should note that devices configured with channel ADC, pins used channels also share their functions with timer clock inputs well general purpose I/O. Therefore, channels using TACLK TBCLK pins clock inputs 16-bit timers. Timer Interface Module TIMA HC08AZ32 4-channel timer whereas HC908AZ60A's TIMA module 6-channel timer. additional vectors HC908AZ60A located $FFCC $FFCF which area HC08AZ32. code compatibility these extra timer channels should used although user should aware their existence. Differences Guide flowchart shown Figure illustrates possible method determining whether device HC908AZ60A HC08AZ32. Figure highlights main code changes HC908AZ60A. AN2187 Motorola Differences Guide More Information This Product, www.freescale.com Application Note AUTO detection EECR (address $FE1D) (logic Device HC08AZ32 Device HC908AZ60A Freescale Semiconductor, Inc. Figure Method detect HC908AZ60A HC08AZ32 Device type HC908AZ60A? Check reads address $001F (MORA) ensure settings interpreted correctly HC08AZ32 Ensure reads address $003F (MORB) only occur device HC08AZ32 Config-1 register (address $001F) Config-2 register (address $FE09) Check reads address $001F (Config-1) ensure settings interpreted correctly HC908AZ60A Ensure reads address $FE09 (Config-2) only occur device 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 HC08AZ32 code. Figure Main changes required code HC908AZ60A AN2187 Differences Guide More Information This Product, www.freescale.com Motorola Application Note Conclusion differences discussed above should taken into account when developing code that used both HC908AZ60A HC08AZ32. particular, important gain familiarity with polarity differences several bits HC08AZ32 MORA register versus HC908AZ60A Config-1 register. This will ensure that various options correctly regardless what device present (either HC08AZ32 Flash HC908AZ60A). Also, differences between EEPROM HC08AZ32 EEPROM HC908AZ60A should understood. 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. Additionally, 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 HC08AZ32 HC908AZ60A specifications ensure differences have been fully captured. Freescale Semiconductor, Inc. AN2187 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 AN2187/D Other recent searchesXZCBD87W - XZCBD87W XZCBD87W Datasheet SLM-1411NG40-061-LL - SLM-1411NG40-061-LL SLM-1411NG40-061-LL Datasheet S73WS256N - S73WS256N S73WS256N Datasheet MAX3657 - MAX3657 MAX3657 Datasheet LTC4069 - LTC4069 LTC4069 Datasheet BUK7907-55ATE - BUK7907-55ATE BUK7907-55ATE Datasheet 9026100000 - 9026100000 9026100000 Datasheet 2N6372 - 2N6372 2N6372 Datasheet 2N6373 - 2N6373 2N6373 Datasheet 2N6374 - 2N6374 2N6374 Datasheet
Privacy Policy | Disclaimer |