參數(shù)資料
型號: AN1218
廠商: 飛思卡爾半導(dǎo)體(中國)有限公司
英文描述: HC05 to HC08 Optimization
中文描述: 以HC08的優(yōu)化HC05
文件頁數(shù): 36/56頁
文件大小: 417K
代理商: AN1218
Application Note
AN1218 Rev. 2
36
*********************************
* HC05 code *
* CPU05 has to address the table in a section-like
* fashion. Section 0 is between $400 and $4FF.
* Section 1 is between $500 and $5FF.
* The 16-bit address is stored in RAM location TBL_A.
* This is the offset to the table starting
* at $400, TBL_ST0.
* Example: Address is $520 = $400 + $120
* TBL_A = $01
* TBL_A+1 = $20
START LDX TBL_A+1 ;3,2 X
(TBL_A+1)
LDA TBL_A ;3,2 A
(TBL_A)
BEQ TBL0 ;3,2 branch to section 0 if 0
LDA TBL_ST1,X ;5,3 A
(X+TBL_ST1)
BRA NEXT ;3,2 branch when done to
; the CPU08 example
TBL0 LDA TBL_ST0,X ;5,3 A
(X+TBL_ST0)
* Total # CPU05 cycles = 17 (max)
* Total # bytes = 11 (max)
*********************************
*********************************
* HC08 code *
* CPU08 has full 16-bit indexed addressing so the
* table address is loaded from TBL_A in RAM. No
* memory table sectioning is needed.
NEXT LDHX TBL_A ;4,2 H:X
(TBL_A)
LDA TBL_ST0,X ;4,3 A
(X+TBL_ST0)
* Total # CPU08 cycles = 8
* Total # bytes = 5
*********************************
DONE NOP
BRA DONE
***** Initialize the reset vector
ORG $FFFE
DW START
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關(guān)PDF資料
PDF描述
AN1746 Migrating from the MC68HC705K1 to the MC68HC705KJ1
AN2635 On-Chip FLASH Programming Routines
AN4009 ALARM IC SAMPLE APPLICATIONS
ARP2805D/SF 1-OUTPUT 150 W DC-DC REG PWR SUPPLY MODULE
AS1977-T nPower Single Comp. Open-Drain; Package Type: SOT23-5
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AN122677 制造商:AN# - MILITARY 功能描述:
AN122683 制造商:AN# - MILITARY 功能描述:
AN122694 制造商:AN# - MILITARY 功能描述:
AN122717 制造商:AN# - MILITARY 功能描述:
AN122718 制造商:AN# - MILITARY 功能描述: