EasyManua.ls Logo

Holtek BS66F340 - Page 218

Default Icon
242 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 1.60 218 August 20, 2019 Rev. 1.60 219 August 20, 2019
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
Mnemonic Description Cycles Flag Affected
Data Move
MOV A,[m] Move Data Memory to ACC 1 None
MOV [m],A Move ACC to Data Memory 1
Note
None
MOV A,x Move immediate data to ACC 1 None
Bit Operation
CLR [m].i Clear bit of Data Memory 1
Note
None
SET [m].i Set bit of Data Memory 1
Note
None
Branch Operation
JMP addr Jump unconditionally 2 None
SZ [m] Skip if Data Memory is zero 1
Note
None
SZA [m] Skip if Data Memory is zero with data movement to ACC 1
Note
None
SZ [m].i Skip if bit i of Data Memory is zero 1
Note
None
SNZ [m] Skip if Data Memory is not zero 1
Note
None
SNZ [m].i Skip if bit i of Data Memory is not zero 1
Note
None
SIZ [m] Skip if increment Data Memory is zero 1
Note
None
SDZ [m] Skip if decrement Data Memory is zero 1
Note
None
SIZA [m] Skip if increment Data Memory is zero with result in ACC 1
Note
None
SDZA [m] Skip if decrement Data Memory is zero with result in ACC 1
Note
None
CALL addr Subroutine call 2 None
RET Return from subroutine 2 None
RET A,x Return from subroutine and load immediate data to ACC 2 None
RETI Return from interrupt 2 None
Table Read Operation
TABRD [m] Read table (specic page) to TBLH and Data Memory 2
Note
None
TABRDL [m] Read table (last page) to TBLH and Data Memory 2
Note
None
ITABRD [m] Increment table pointer TBLP rst and Read table to TBLH and Data Memory 2
Note
None
ITABRDL [m]
Increment table pointer TBLP rst and Read table (last page) to TBLH and
Data Memory
2
Note
None
Miscellaneous
NOP No operation 1 None
CLR [m] Clear Data Memory 1
Note
None
SET [m] Set Data Memory 1
Note
None
CLR WDT Clear Watchdog Timer 1 TO, PDF
SWAP [m] Swap nibbles of Data Memory 1
Note
None
SWAPA [m] Swap nibbles of Data Memory with result in ACC 1 None
HALT Enter power down mode 1 TO, PDF
Note: 1. For skip instructions, if the result of the comparison involves a skip then up to three cycles are required, if
no skip takes place only one cycle is required.
2. Any instruction which changes the contents of the PCL will also require 2 cycles for execution.
3. For the “CLR WDT” instruction the TO and PDF ags may be affected by the execution status. The TO
and PDF ags are cleared after the “CLR WDT” instructions is executed. Otherwise the TO and PDF
ags remain unchanged.

Table of Contents

Related product manuals