| поискавой системы для электроныых деталей |
|
HT45F0060 датащи(PDF) 21 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F0060 датащи(HTML) 21 Page - Holtek Semiconductor Inc |
|
21 / 95 page ![]() Rev. 1.00 20 July 19, 2017 Rev. 1.00 21 July 19, 2017 HT45F0060 RGB Dimming LED Flash MCU HT45F0060 RGB Dimming LED Flash MCU Special Function Register Description MostoftheSpecialFunctionRegisterdetailswillbedescribedintherelevantfunctionalsection, howeverseveralregistersrequireaseparatedescriptioninthissection. Indirect Addressing Registers – IAR0, IAR1 TheIndirectAddressingRegisters,IAR0andIAR1,althoughhavingtheirlocationsinnormalRAM registerspace,donotactuallyphysicallyexistasnormalregisters.Themethodofindirectaddressing forRAMdatamanipulationusestheseIndirectAddressingRegistersandMemoryPointers,in contrasttodirectmemoryaddressing,wheretheactualmemoryaddressisspecified.Actionsonthe IAR0andIAR1registerswillresultinnoactualreadorwriteoperationtotheseregistersbutrather tothememorylocationspecifiedbytheircorrespondingMemoryPointers,MP0orMP1.Actingasa pair,IAR0andMP0cantogetheraccessdatafromBank0whiletheIAR1registertogetherwiththe MP1registercanaccessdatafromanyDataMemoryBank.AstheIndirectAddressingRegistersare notphysicallyimplemented,readingtheIndirectAddressingRegisterswillreturnaresultof"00H" andwritingtotheregisterswillresultinnooperation. Memory Pointers – MP0, MP1 TwoMemoryPointers,knownasMP0andMP1areprovided.TheseMemoryPointersare physicallyimplementedintheDataMemoryandcanbemanipulatedinthesamewayasnormal registersprovidingaconvenientwaywithwhichtoaddressandtrackdata.Whenanyoperationto therelevantIndirectAddressingRegistersiscarriedout,theactualaddressthatthemicrocontroller isdirectedtoistheaddressspecifiedbytherelatedMemoryPointer.MP0,togetherwithIndirect AddressingRegister,IAR0,areusedtoaccessdatafromBank0,whileMP1togetherwithIAR1are usedtoaccessdatafromallbanks. ThefollowingexampleshowshowtoclearasectionoffourDataMemorylocationsalreadydefined aslocationsadres1toadres4. Indirect Addressing Program Example data .section ´data´ adres1 db ? adres2 db ? adres3 db ? adres4 db ? block db ? code .section at 0 ´code´ org 00h start: mov a,04h ; setup size of block mov block,a mova,offsetadres1;AccumulatorloadedwithfirstRAMaddress movmp0,a ;setupmemorypointerwithfirstRAMaddress loop: clrIAR0 ;clearthedataataddressdefinedbymp0 inc mp0 ; increment memory pointer sdz block ; check if last memory location has been cleared jmp loop continue: Theimportantpointtonotehereisthatintheexampleshownabove,noreferenceismadetospecific DataMemoryaddresses. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |