EasyManuals Logo

Holtek HT66F004 User Manual

Default Icon
144 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #128 background imageLoading...
Page #128 background image
Rev. 1.71 128 April 11, 2017 Rev. 1.71 129 April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
CPLA [m]
ComplementDataMemorywithresultinACC
Description EachbitofthespeciedDataMemoryislogicallycomplemented(1′scomplement).Bitswhich
previouslycontaineda1arechangedto0andviceversa.Thecomplementedresultisstoredin
theAccumulatorandthecontentsoftheDataMemoryremainunchanged.
Operation ACC←[m]
Affectedag(s) Z
DAA [m]
Decimal-AdjustACCforadditionwithresultinDataMemory
Description ConvertthecontentsoftheAccumulatorvaluetoaBCD(BinaryCodedDecimal)value
resultingfromthepreviousadditionoftwoBCDvariables.Ifthelownibbleisgreaterthan9
orifACagisset,thenavalueof6willbeaddedtothelownibble.Otherwisethelownibble
remainsunchanged.Ifthehighnibbleisgreaterthan9oriftheCagisset,thenavalueof6
willbeaddedtothehighnibble.Essentially,thedecimalconversionisperformedbyadding
00H,06H,60Hor66HdependingontheAccumulatorandagconditions.OnlytheCag
maybeaffectedbythisinstructionwhichindicatesthatiftheoriginalBCDsumisgreaterthan
100,itallowsmultipleprecisiondecimaladdition.
Operation [m]←ACC+00Hor
[m]←ACC+06Hor
[m]←ACC+60Hor
[m]←ACC+66H
Affectedag(s) C
DEC [m]
DecrementDataMemory
Description DatainthespeciedDataMemoryisdecrementedby1.
Operation [m]←[m]−1
Affectedag(s) Z
DECA[m] DecrementDataMemorywithresultinACC
Description DatainthespeciedDataMemoryisdecrementedby1.Theresultisstoredinthe
Accumulator.ThecontentsoftheDataMemoryremainunchanged.
Operation ACC←[m]−1
Affectedag(s) Z
HALT
Enterpowerdownmode
Description Thisinstructionstopstheprogramexecutionandturnsoffthesystemclock.Thecontentsof
theDataMemoryandregistersareretained.TheWDTandprescalerarecleared.Thepower
downagPDFissetandtheWDTtime-outagTOiscleared.
Operation TO←0
PDF←1
Affectedag(s) TO,PDF
INC [m]
IncrementDataMemory
Description DatainthespeciedDataMemoryisincrementedby1.
Operation [m]←[m]+1
Affectedag(s) Z
INCA [m]
IncrementDataMemorywithresultinACC
Description DatainthespeciedDataMemoryisincrementedby1.TheresultisstoredintheAccumulator.
ThecontentsoftheDataMemoryremainunchanged.
Operation ACC←[m]+1
Affectedag(s) Z

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Holtek HT66F004 and is the answer not in the manual?

Holtek HT66F004 Specifications

General IconGeneral
BrandHoltek
ModelHT66F004
CategoryControl Unit
LanguageEnglish

Related product manuals