| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
AN1792 Freescale Semiconductor, Inc. Using MC68HC908MR24 Pla
Top Searches for this datasheetOrder this document AN1792/D Rev. AN1792 Freescale Semiconductor, Inc. Using MC68HC908MR24 Place MC68HC708MP16 Bill Lucas Denise Younger Motorola Microprocessor Division Austin, Texas Introduction This application note documents differences between MC68HC708MP16 (MP16) MC68HC908MR24 (MR24). information here intended help users migrate from MC68HC708MP16 MC68HC908MR24. features MR24 differences between are: MR24 24-k FLASH memory, replacing MP16's 16-k EPROM. MR24's size increased bytes, starting $60, from bytes MP16. MR24's low-voltage inhibit (LVI) selectable with percent percent tolerance. MR24's 10-bit (analog-to-digital) converter 8-bit truncation mode, allowing compatibility with MP16's 8-bit converter. Quantization error, however, affected truncation mode. Refer MC68HC908MR24 General Release Specification, Motorola document order number HC908MR24GRS/D, more information. Motorola, Inc., 2000 AN1792 Rev. More Information This Product, www.freescale.com Freescale Semiconductor, Inc. Application Note MR24's 10-bit converter finite current draw whereas MP16, VDDAD/VDDREF negligible current draw. MP16's 8-bit converter replaced with 10-bit module, selectable 8-bit 10-bit modes. Load (LDOK) control register read-write, manner which used changed. Page zero (input/output) module register addresses have changed. external VREFH been added converter. Freescale Semiconductor, Inc. Background MC68HC908MR24 improved version MC68HC708MP16 launched create family products motor control applications. MR24 designed mechanical drop-in replacement MC68HC708MP16, with exception: Redefinition MP16 from VADCAP VREFH MR24. Also, 2-channel timer MP16 named timer MR24. And, 4-channel timer MP16 named timer MR24. From software point view, there number address changes. address timer differences between MP16 MR24 summarized Table AN1792 Rev. More Information This Product, www.freescale.com MOTOROLA Application Note From Hardware Point View Table MP16 MR24 Address Timer Differences Function Timers MC68HC708MP16 VADCAP Pins 32-39 Timer $0000-$004f $0050-$024f bytes 8-bit mode CONFIG (configuration register) MC68HC908MR24 VREFH Pins 32-39 Becomes timer $0000-$005f $0060-$035f bytes 10-bit modes (mask option register) Freescale Semiconductor, Inc. From Hardware Point View physical footprint MR24 same MP16 except renaming timer timer MR24 VADCAP MP16 being changed VREFH MR24. VADCAP VREFH change (pin requires printed circuit board change move from MP16 MR24. Figure shows typical usage VADCAP MP16. Figure shows typical usage VREFH MR24. Figure example circuitry with jumper that will accommodate both MP16 MR24. AN1792 Rev. MOTOROLA More Information This Product, www.freescale.com Freescale Semiconductor, Inc. Application Note PTB0/ATD0 PTB1/ATD1 PTB2/ATD2 PTB3/ATD3 PTB4/ATD4 PTB5/ATD5 PTB6/ATD6 PTB7/ATD7 PTB8/ATD8 PTB9/ATD9 VDDAD/VDDAREF VSSAD 0.001 VREFL VADCAP 68HC708MP16 Freescale Semiconductor, Inc. Figure MC68HC708MP16 Example PTB0/ATD0 PTB1/ATD1 PTB2/ATD2 PTB3/ATD3 PTB4/ATD4 PTB5/ATD5 PTB6/ATD6 PTB7/ATD7 PTB8/ATD8 PTB9/ATD9 VDDAD VSSAD VREFL VREFH 68HC908MR24 0.001 Figure MC68HC08MR24 Example AN1792 Rev. More Information This Product, www.freescale.com MOTOROLA Application Note From Software Point View Notes: MC68HC708MP16, this labeled VDDAD/VDDAREF. MC68HC908MR24, this labeled VDDAD. MC68HC708MP16, this labeled VADCAP. MC68HC908MR24, this labeled VREFH. Install jumper when using MC68HC908MR24. Leave jumper open when using MC68HC708MP16. PTB0/ATD0 PTB1/ATD1 PTB2/ATD2 PTB4/ATD4 PTB6/ATD6 PTB5/ATD5 PTB3/ATD3 NOTE JUMPER PTB7/ATD7 PTB8/ATD8 PTB9/ATD9 VSSAD NOTE Freescale Semiconductor, Inc. 0.001 VREFL NOTE MC68HC708MP16/MC68HC908MR24 Figure MC68HC708MP16/MC68HC908MR24 Example From Software Point View number control, status, data registers' addresses have changed from MP16 MR24. instance, register MP16 started $0000 ended $004f. MR24, register starts $0000 ends $005f. Also, MP16 started $0050 ended $024f (512 bytes), whereas MR24 starts $0060 ends $035f (768 bytes). CONFIG (configuration register), located address $001f MP16, been renamed (mask option register) MR24. However, address same control bits within register remain same. AN1792 Rev. MOTOROLA More Information This Product, www.freescale.com Freescale Semiconductor, Inc. Application Note LDOK bit, control register (PCTL1) located address $0020, used enable values loaded into buffered control data registers. intended LDOK prevent partial reloads parameters from occurring until parameters have been calculated, stored registers, "OK" those values. registers affected LDOK modulus, prescaler, value registers. When LDOK set, calculated values loaded into second registers passed generator's registers beginning next reload cycle. After values have been loaded into generator, LDOK then logic hardware. MR24, LDOK implemented read/write bit. Therefore, requires interlocking mechanism ensure that inadvertent setting LDOK does occur when other bits PCTL1 written. MP16, LDOK write-only always read logic LDOK MR24, LDOK must first read logic before logic example inadvertent setting LDOK, without interlock, would LDOK PCTL1 before load generator occurs some other routine executes this instruction: bset 5,PCTL1; other PCTL1 Freescale Semiconductor, Inc. (bset) instruction read/modify/write instruction broken down into three steps: contents PCTL1 read. this example) logic original contents PCTL1 (with written back PCTL1. When operation performed, LDOK logic Some time after step before step hardware performs reload, thus clearing LDOK PCTL1. Step then performed logic rewritten LDOK, thus re-arming module another reload when reload requested. This issue with MP16, LDOK always read logic write effect AN1792 Rev. More Information This Product, www.freescale.com MOTOROLA Application Note Address Changes LDOK. interlock MR24 solves issue inadvertent writes LDOK, required read LDOK logic before logic Because LDOK read/write MR24, load operation aborted after LDOK before actual generator load occurs clearing LDOK when logic This permits multiple, asynchronous software routines (for example, Hall effect commutation servo update ISR) interface properly with module without corrupting each other's data. Freescale Semiconductor, Inc. convenience, include files MR24 both language assembler language included this application note. Address Changes addresses listed here have changed from MP16 MR24, while remainder addresses stayed same. bits within these registers also remain same. locations addresses MR24 listed here. Ports $0004 $0005 $0006 $0007 $0008 $0009 $000C $000D Data Data Data Data Port Port Data Data Direction Register (DDRA) Direction Register (DDRB) Direction Register (DDRC) Direction Register (DDRD) Data Register (PTE) Data Register (PTF) Direction Register (DDRE) Direction Register (DDRF) AN1792 Rev. MOTOROLA More Information This Product, www.freescale.com Freescale Semiconductor, Inc. Application Note 4-Channel Timer Interface Module NOTE: 4-channel timer MR24 named timer $000E $000F $0010 $0011 $0012 $0013 $0014 $0015 $0016 $0017 $0018 $0019 $001A $001B $001C $001D $001E Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer Status Control Register (TASC) Counter Register High (TACNTH) Counter Register (TACNTL) Modulo Register High (TAMODH) Modulo Register (TAMODL) Channel Status Control Register Channel Register High (TACH0H) Channel Register (TACH0L) Channel Status Control Register Channel Register High (TACH1H) Channel Register (TACH1L) Channel Status Control Register Channel Register High (TACH2H) Channel Register (TACH2L) Channel Status Control Register Channel Register High (TACH3H) Channel Register (TACH3L) (TASCO) Freescale Semiconductor, Inc. (TASC1) (TASC2) (TASC3) 2-Channel Timer Interface Module NOTE: 2-channel timer MR24 named timer $0051 $0052 $0053 $0054 $0055 $0056 $0057 $0058 $0059 $005A $005B Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer Status Control Register (TBSC) Counter Register High (TBCNTH) Counter Register (TBCNTL) Modulo Register High (TBMODH) Modulo Register (TBMODL) Channel Status Control Register (TBSCO) Channel Register High (TBCH0H) Channel Register (TBCH0L) Channel Status Control Register (TBSC1) Channel Register High (TBCH1H) Channel Register (TBCH1L) $003F $0040 Status Control Register (ISCR) Status control Register (ADSCR) NOTE: analog-to-digital converter MR24 been changed 10-bit module. Changes data register clock register discussed later. AN1792 Rev. More Information This Product, www.freescale.com MOTOROLA Application Note Address Changes $0044 $0045 $0046 Control Register (SPCR) Status Control Register (SPSCR) Data Register (SPDR) $005C $005D $005E Control Register (PCTL) Bandwidth Control Register (PBWC) Programming Register (PPG) NOTE: Freescale Semiconductor, Inc. following registers MR24 have changed their addresses and/or bits within registers changed. registers also have been added. Refer MR24's general release specification more detailed information. 8-bit MP16 been replaced with registers, ADRH ADRL, support 8-bit 10-bit conversions. $0041 $0042 $0043 Data Register (ADRH) Data Register (ADRL) Clock Register (ADCLK) Three bits have been added MR24 positions 1-3. MODE1 (bit MODE0 (bit allow user choose conversion's data results justification analog-to-digital converter. will used future products. FLASH $FE07 Reserved Test Register (FLTCR) FLTCR used only production testing. Accessing this register have unpredictable effects normal operation. $FE08 Flash Control Register (FLCR) FLCR takes place EPROM control register MP16. $FF80 Flash Block Protect Register (FLBPR) When BPRX bits set, range addresses protected from being programmed erased. AN1792 Rev. MOTOROLA More Information This Product, www.freescale.com Freescale Semiconductor, Inc. Application Note $FE0F Status Control Register (LVISCR) trip selection (TPRSEL). user select between percent percent tolerance when monitoring Vdc-VCC power supply. default percent. Vector Addresses vectors timer timer MP16 have been renamed MR24. rest vectors remain same between devices. Freescale Semiconductor, Inc. Include Files MC68HC908MR24 Definitions MR24 These with COSMIC Software, Inc.'s MC68HC08 compiler. user should aware that different compilers require slight syntactical changes. PORTS @tiny volatile @tiny volatile @tiny volatile @tiny volatile @tiny volatile @tiny volatile @tiny @tiny @tiny @tiny @tiny @tiny TIMER @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny volatile volatile volatile volatile volatile volatile volatile volatile char char char char char char TASC TACNT TACNTH TACNTL TAMOD TAMODH TAMODL TASC0 @0x0e; @0x0f; @0x0f; @0x10; @0x11; @0x11; @0x12; @0x13; timer timer timer timer timer timer timer timer status/ctrl register counter register counter high counter modulo register modulo high modulo channel status/ctrl AN1792 Rev. More Information This Product, www.freescale.com MOTOROLA char char char char char char char char char char char char PORTA PORTB PORTC PORTD PORTE PORTF DDRA DDRB DDRC DDRD DDRE DDRF @0x00; @0x01; @0x02; @0x03; @0x08; @0x09; @0x04; @0x05; @0x06; @0x07; @0x0c; @0x0d; port port port port port port data data data data data data direction direction direction direction direction direction port port port port port port Application Note Include Files MC68HC908MR24 Freescale Semiconductor, Inc. @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny volatile volatile char volatile char volatile char volatile volatile char volatile char volatile char volatile volatile char volatile char volatile char volatile volatile char volatile char OPTION REGISTER char char char char char char char char char char char char char char char char char char char char char TACH0 TACH0H TACH0L TASC1 TACH1 TACH1H TACH1L TASC2 TACH2 TACH2H TACH2L TASC3 TACH3 TACH3H TACH3L @0x14; @0x14; @0x15; @0x16; @0x17; @0x17; @0x18; @0x19; @0x1a; @0x1a; @0x1b; @0x1c; @0x1d; @0x1d; @0x1e; timer timer timer timer timer timer timer timer timer timer timer timer timer timer timer channel channel channel channel channel channel channel channel channel channel channel channel channel channel channel register high status/ctrl register high status/ctrl register high status/ctrl register high @0x1f; Mask Option Write-Once Register PCTL1 PCTL2 FTACK PWMOUT PCNT PCNTH PCNTL PMOD PMODH PMODL PVAL1 PVAL1H PVAL1L PVAL2 PVAL2H PVAL2L PVAL3 PVAL3H PVAL3L PVAL4 PVAL4H PVAL4L PVAL5 PVAL5H PVAL5L PVAL6 @0x20; @0x21; @0x22; @0x23; @0x24; @0x25; @0x26; @0x26; @0x27; @0x28; @0x28; @0x29; @0x2a; @0x2a; @0x2b; @0x2c; @0x2c; @0x2d; @0x2e; @0x2e; @0x2f; @0x30; @0x30; @0x31; @0x32; @0x32; @0x33; @0x34; control register control register Fault control register Fault Status register Fault acknowledge register output control register counter register counter register high counter register counter Modulo register counter Modulo register high counter Modulo register value register value register high value register value register value register high value register value register value register high value register value register value register high value register value register value register high value register value register @tiny @tiny volatile @tiny volatile @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile AN1792 Rev. MOTOROLA More Information This Product, www.freescale.com Freescale Semiconductor, Inc. Application Note @tiny volatile @tiny volatile @tiny volatile @tiny volatile char char char char PVAL6H PVAL6L DEADDISMAP @0x34; @0x35; @0x36; @0x37; value register high value register Dead Time Write-once register Disable Mapping Write-once reg.*/ section char char char char char char char SCC1 SCC2 SCC3 SCS1 SCS2 SCDR SCBR @0x38; @0x39; @0x3a; @0x3b; @0x3c; @0x3d; @0x3e; control register control register control register status register status register data register baud rate Freescale Semiconductor, Inc. @tiny @tiny @tiny @tiny volatile @tiny volatile @tiny volatile @tiny INTERRUPT @tiny volatile @tiny @tiny @tiny @tiny @tiny volatile volatile volatile volatile char ISCR @0x3F; control/status register char char char char ADSCR ADRH ADRL ADCLK @0x40; @0x41; @0x41; @0x42; @0x43; status control register data register data register HIGH data register clock register char char char SPCR SPSCR SPDR @0x44; @0x45; @0x46; control register control/status register data register @tiny @tiny volatile @tiny volatile @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny @tiny TIMER volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile volatile char char char char char char char char char char char TBSC TBCNT TBCNTH TBCNTL TBMOD TBMODH TBMODL TBSC0 TBCH0 TBCH0H TBCH0L TBSC1 TBCH1 TBCH1H TBCH1L @0x51; @0x52; @0x52; @0x53; @0x54; @0x54; @0x55; @0x56; @0x57; @0x57; @0x58; @0x59; @0x5a; @0x5a; @0x5b; timer timer timer timer timer timer timer timer timer timer timer timer timer timer timer status/ctrl register counter register counter high counter modulo register modulo high modulo channel status/ctrl channel register channel high channel channel status/ctrl channel register channel high channel AN1792 Rev. More Information This Product, www.freescale.com MOTOROLA Application Note Include Files MC68HC908MR24 char char char PCTL PBWC @0x5c; @0x5d; @0x5e; control register bandwidth register programming register @tiny volatile @tiny volatile @tiny @near @near @near @near @near @near @near volatile volatile Freescale Semiconductor, Inc. volatile volatile char char char char char char char SBSR SRSR SBFCR FLCR LVISCR FLBPR COPCTL @0xfe00; @0xfe01; @0xfe03; @0xfe08; @0xfe0f; @0xff80; @0xffff; break status register reset status register break control register FLASH control register status register control FLASH BLOCK PROTECT register control register Assembler Include File MR24 Definitions MC68HC908MR24 PORTA PORTB PORTC PORTD PORTE PORTF DDRA DDRB DDRC DDRD DDRF TASC TACNT TACNTH TACNTL TAMOD TAMODH TAMODL TASC0 TACH0 TACH0H TACH0L TASC1 TACH1 TACH1H AN1792 Rev. MOTOROLA More Information This Product, www.freescale.com TIMER $0e; $0f; $0f; $10; $11; $11; $12; $13; $14; $14; $15; $16; $17; $17; timer timer timer timer timer timer timer timer timer timer timer timer timer timer status/ctrl register counter register counter high counter modulo register modulo high modulo channel status/ctrl channel register channel high channel channel status/ctrl channel register channel high $00; $01; $02; $03; $08; $09; $04; $05; $06; $07; $0d; port port port port port port data data data data data direction direction direction direction direction port port port port port Freescale Semiconductor, Inc. Application Note TACH1L TASC2 TACH2 TACH2H TACH2L TASC3 TACH3 TACH3H TACH3L OPTION REGISTER $20; $21; $22; $23; $24; $25; $26; $26; $27; $28; $28; $29; $2a; $2a; $2b; $2c; $2c; $2d; $2e; $2e; $2f; $30; $30; $31; $32; $32; $33; $34; $34; $35; $36; $37; control register control register Fault control register Fault Status register Fault acknowledge register output control register counter register counter register high counter register counter Modulo register counter Modulo register high counter Modulo register value register value register high value register value register value register high value register value register value register high value register value register value register high value register value register value register high value register value register value register high value register Dead Time Write-once register Disable Mapping Write-once reg. AN1792 Rev. More Information This Product, www.freescale.com MOTOROLA $1f; Mask Option Write-Once Register $18; $19; $1a; $1a; $1b; $1c; $1d; $1d; $1e; timer timer timer timer timer timer timer timer timer channel channel channel channel channel channel channel channel channel status/ctrl register high status/ctrl register high Freescale Semiconductor, Inc. PCTL1 PCTL2 FTACK PWMOUT PCNT PCNTH PCNTL PMOD PMODH PMODL PVAL1 PVAL1H PVAL1L PVAL2 PVAL2H PVAL2L PVAL3 PVAL3H PVAL3L PVAL4H PVAL4L PVAL5 PVAL5H PVAL5L PVAL6 PVAL6H PVAL6L DEADDISMAP Application Note Include Files MC68HC908MR24 SCC1 SCC2 SCC3 SCS1 SCS2 SCDR SCBR section INTERRUPT TIMER $5c; $5d; $5e; control register bandwidth register programming register $51; $52; $52; $53; $54; $54; $55; $56; $57; $57; $58; $59; $5a; $5a; $5b; timer timer timer timer timer timer timer timer timer timer timer timer timer timer timer status/ctrl register counter register counter high counter modulo register modulo high modulo channel status/ctrl channel register channel high channel channel status/ctrl channel register channel high channel $44; $45; $46; control register control/status register data register $40; $41; $41; $42; $43; status control register data register data register HIGH data register clock register $3f; control/status register $38; $39; $3a; $3b; $3c; $3d; $3e; control register control register control register status register status register data register baud rate Freescale Semiconductor, Inc. ISCR ADSCR ADRH ADRL ADCLK SPCR SPDR TBSC TBCNT TBCNTH TBCNTL TBMOD TBMODH TBMODL TBSC0 TBCH0 TBCH0H TBCH0L TBSC1 TBCH1 TBCH1H TBCH1L PCTL PBWC AN1792 Rev. MOTOROLA More Information This Product, www.freescale.com Freescale Semiconductor, Inc. Application Note SBSR SRSR SBFCR FLCR LVISCR FLBPR COPCTL $fe00; $fe01; $fe03; $fe08; $fe0f; $ff80; $ffff; break status register reset status register break control register FLASH control register status register control FLASH BLOCK PROTECT register control register Freescale Semiconductor, Inc. Conclusion MC68HC908MR24 designed used place MC68HC708MP16 with minimal hardware software changes. inclusion 10-bit analog-to-digital converter increased memory size over MP16 make this processor attractive alternative. block-protected FLASH memory facilitates easy in-circuit software upgrades. 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. reach USA/EUROPE/Locations Listed: Motorola Literature Distribution, P.O. 5405, Denver, Colorado 80217. 1-800-441-2447 1-303-675-2140. Customer Focus Center, 1-800-521-6274 JAPAN: Motorola Japan Ltd.: SPD, Strategic Planning Office, 141, 4-32-1 Nishi-Gotanda, Shinagawa-Ku, Tokyo, Japan, 03-5487-8488 ASIA/PACIFIC: Motorola Semiconductors H.K. Ltd., Silicon Harbour Centre, King Street, Industrial Estate, Territories, Hong Kong, 852-26629298 MfaxTM, Motorola Back System: RMFAX0@email.sps.mot.com; http://sps.motorola.com/mfax/; TOUCHTONE, 1-602-244-6609; Canada ONLY, 1-800-774-1848 HOME PAGE: http://motorola.com/sps/ Mfax trademark Motorola, Inc. Motorola, Inc., 2000 AN1792/D More Information This Product, www.freescale.com Other recent searchesWM9711L - WM9711L WM9711L Datasheet SN74AHCT374 - SN74AHCT374 SN74AHCT374 Datasheet SN54AHCT374 - SN54AHCT374 SN54AHCT374 Datasheet SED1520 - SED1520 SED1520 Datasheet SBAS161 - SBAS161 SBAS161 Datasheet MIC5219 - MIC5219 MIC5219 Datasheet MIC5209 - MIC5209 MIC5209 Datasheet MIC5237 - MIC5237 MIC5237 Datasheet FMBA56 - FMBA56 FMBA56 Datasheet CY7C1351 - CY7C1351 CY7C1351 Datasheet BCW31 - BCW31 BCW31 Datasheet
Privacy Policy | Disclaimer |