| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT45F5Q bảng dữ liệu(PDF) 20 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F5Q bảng dữ liệu(HTML) 20 Page - Holtek Semiconductor Inc |
|
20 / 114 page ![]() Rev. 1.10 �0 De�e��e� 1�� �01� Rev. 1.10 �1 De�e��e� 1�� �01� HT45F5Q Charger Flash MCU HT45F5Q Charger Flash MCU Re gi st er T BL H Us er S el ec te d Re gi st er Hi gh B yt eL ow B yt e PC H ig h By te TB LP R eg is te r Da ta 14bi ts Pr og ra m Me mo ry Las t p age o r pr es en t pag e PC 10 ~P C8 Table Program Example Thefollowingexampleshowshowthetablepointerandtabledataisdefinedandretrievedfromthe microcontroller.ThisexampleusesrawtabledatalocatedintheProgramMemorywhichisstored thereusingtheORGstatement.ThevalueatthisORGstatementis“700H”whichreferstothestart addressofthelastpagewithinthe2KwordsProgramMemoryofthedevice.Thetablepointerissetup heretohaveaninitialvalueof“06H”.Thiswillensurethatthefirstdatareadfromthedatatablewill beattheProgramMemoryaddress“706H”or6locationsafterthestartofthelastpage.Notethatthe valueforthetablepointerisreferencedtothefirstaddressofthepresentpageifthe“TABRDC[m]” instructionisbeingused.Thehighbyteofthetabledatawhichinthiscaseisequaltozerowillbe transferredtotheTBLHregisterautomaticallywhenthe“TABRDC[m]”instructionisexecuted. BecausetheTBLHregisterisaread-onlyregisterandcannotberestored,careshouldbetaken toensureitsprotectionifboththemainroutineandInterruptServiceRoutineusetableread instructions.Ifusingthetablereadinstructions,theInterruptServiceRoutinesmaychangethe valueoftheTBLHandsubsequentlycauseerrorsifusedagainbythemainroutine.Asaruleitis recommendedthatsimultaneoususeofthetablereadinstructionsshouldbeavoided.However,in situationswheresimultaneoususecannotbeavoided,theinterruptsshouldbedisabledpriortothe executionofanymainroutinetable-readinstructions.Notethatalltablerelatedinstructionsrequire twoinstructioncyclestocompletetheiroperation. Table Read Program Example tempreg1 db ? ; temporary register #1 tempreg2 db ? ; temporary register #2 : : mov a,06h ; initialise low table pointer - note that this address ; is referenced to the last page or present page mov tblp,a : : tabrdc tempreg1 ; transfers value in table referenced by table pointer data at program ; memory address “706H” transferred to tempreg1 and TBLH dec tblp ; reduce value of table pointer by one tabrdc tempreg2 ; transfers value in table referenced by table pointer data at program ; memory address “705H” transferred to tempreg2 and TBLH in this ; example the data “1AH” is transferred to tempreg1 and data “0FH” to ; register tempreg2 : : org 700h ; sets initial address of program memory dc 00Ah, 00Bh, 00Ch, 00Dh, 00Eh, 00Fh, 01Ah, 01Bh : : |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |