欢迎访问ic37.com |
会员登录 免费注册
发布采购

HT45F12 参数 Datasheet PDF下载

HT45F12图片预览
型号: HT45F12
PDF下载: 下载PDF文件 查看货源
内容描述: 8位闪存微控制器与运算放大器和比较器 [8-Bit Flash MCU with Op Amps & Comparators]
分类和应用: 闪存比较器微控制器运算放大器
文件页数/大小: 104 页 / 4764 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT45F12的Datasheet PDF文件第27页浏览型号HT45F12的Datasheet PDF文件第28页浏览型号HT45F12的Datasheet PDF文件第29页浏览型号HT45F12的Datasheet PDF文件第30页浏览型号HT45F12的Datasheet PDF文件第32页浏览型号HT45F12的Datasheet PDF文件第33页浏览型号HT45F12的Datasheet PDF文件第34页浏览型号HT45F12的Datasheet PDF文件第35页  
HT45F12  
8-Bit Flash MCU with Op Amps & Comparators  
Reading Data from the EEPROM  
ToreadꢀdataꢀfromꢀtheꢀEEPROM,ꢀtheꢀreadꢀenableꢀbit,ꢀRDEN,ꢀinꢀtheꢀEECTRLꢀregisterꢀmustꢀfirstꢀ  
beꢀsetꢀhighꢀtoꢀenableꢀtheꢀreadꢀfunction.ꢀTheꢀEEPROMꢀaddressꢀofꢀtheꢀdataꢀtoꢀbeꢀreadꢀmustꢀthenꢀbeꢀ  
placedꢀinꢀtheꢀEEADDRꢀregister.ꢀIfꢀtheꢀRDꢀbitꢀinꢀtheꢀEECTRLꢀregisterꢀisꢀnowꢀsetꢀhigh,ꢀaꢀreadꢀcycleꢀ  
willꢀbeꢀinitiated.ꢀSettingꢀtheꢀRDꢀbitꢀhighꢀwillꢀnotꢀinitiateꢀaꢀreadꢀoperationꢀifꢀtheꢀRDENꢀbitꢀhasꢀnotꢀ  
beenꢀset.ꢀWhenꢀtheꢀreadꢀcycleꢀterminates,ꢀtheꢀRDꢀbitꢀwillꢀbeꢀautomaticallyꢀclearedꢀtoꢀzero,ꢀafterꢀ  
whichꢀtheꢀdataꢀcanꢀbeꢀreadꢀfromꢀtheꢀEEDATAregister.ꢀTheꢀdataꢀwillꢀremainꢀinꢀtheꢀEEDATAregisterꢀ  
untilꢀanotherꢀreadꢀorꢀwriteꢀoperationꢀisꢀexecuted.ꢀTheꢀapplicationꢀprogramꢀcanꢀpollꢀtheꢀRDꢀbitꢀtoꢀ  
determineꢀwhenꢀtheꢀdataꢀisꢀvalidꢀforꢀreading.  
Writing Data to the EEPROM  
TowriteꢀdataꢀtoꢀtheꢀEEPROM,ꢀtheꢀwriteꢀenableꢀbit,ꢀWTEN,ꢀinꢀtheꢀEECTRLꢀregisterꢀmustꢀfirstꢀbeꢀ  
setꢀhighꢀtoꢀenableꢀtheꢀwriteꢀfunction.ꢀTheꢀEEPROMꢀaddressꢀofꢀtheꢀdataꢀtoꢀbeꢀwrittenꢀmustꢀthenꢀbeꢀ  
placedꢀinꢀtheꢀEEADDRꢀregisterꢀandꢀtheꢀdataꢀplacedꢀinꢀtheꢀEEDATAregister.ꢀIfꢀtheꢀWTꢀbitꢀinꢀtheꢀ  
EECTRLꢀregisterꢀisꢀnowꢀsetꢀhigh,ꢀanꢀinternalꢀwriteꢀcycleꢀwillꢀthenꢀbeꢀinitiated.ꢀSettingꢀtheꢀWTꢀbitꢀ  
highꢀwillꢀnotꢀinitiateꢀaꢀwriteꢀcycleꢀifꢀtheꢀWTENꢀbitꢀhasꢀnotꢀbeenꢀset.ꢀAsꢀtheꢀEEPROMꢀwriteꢀcycleꢀ  
isꢀcontrolledꢀusingꢀanꢀinternalꢀtimerꢀwhoseꢀoperationꢀisꢀasynchronousꢀtoꢀmicrocontrollerꢀsystemꢀ  
clock,ꢀaꢀcertainꢀtimeꢀwillꢀelapseꢀbeforeꢀtheꢀdataꢀwillꢀhaveꢀbeenꢀwrittenꢀintoꢀtheꢀEEPROM.ꢀDetectingꢀ  
whenꢀtheꢀwriteꢀcycleꢀhasꢀfinishedꢀcanꢀbeꢀimplementedꢀeitherꢀbyꢀpollingꢀtheꢀWTꢀbitꢀinꢀtheꢀEECTRLꢀ  
registerꢀorꢀbyꢀusingꢀtheꢀEEPROMꢀinterrupt.ꢀWhenꢀtheꢀwriteꢀcycleꢀterminates,ꢀtheꢀWTꢀbitꢀwillꢀbeꢀ  
automaticallyꢀclearedꢀtoꢀzeroꢀbyꢀtheꢀmicrocontroller,ꢀinformingꢀtheꢀuserꢀthatꢀtheꢀdataꢀhasꢀbeenꢀ  
writtenꢀtoꢀtheꢀEEPROM.ꢀTheꢀapplicationꢀprogramꢀcanꢀthereforeꢀpollꢀtheꢀWTꢀbitꢀtoꢀdetermineꢀwhenꢀ  
theꢀwriteꢀcycleꢀhasꢀended.  
Write Protection  
Protectionꢀagainstꢀinadvertentꢀwriteꢀoperationꢀisꢀprovidedꢀinꢀseveralꢀways.ꢀAfterꢀtheꢀdeviceꢀisꢀ  
powered-onꢀtheꢀWriteꢀEnableꢀbitꢀinꢀtheꢀcontrolꢀregisterꢀwillꢀbeꢀclearedꢀpreventingꢀanyꢀwriteꢀ  
operations.ꢀAlsoꢀatꢀpower-onꢀtheꢀBankꢀPointer,ꢀBP,ꢀwillꢀbeꢀresetꢀtoꢀzero,ꢀwhichꢀmeansꢀthatꢀDataꢀ  
MemoryꢀBankꢀ0ꢀwillꢀbeꢀselected.ꢀAsꢀtheꢀEEPROMꢀcontrolꢀregisterꢀisꢀlocatedꢀinꢀBankꢀ1,ꢀthisꢀaddsꢀaꢀ  
furtherꢀmeasureꢀofꢀprotectionꢀagainstꢀspuriousꢀwriteꢀoperations.ꢀDuringꢀnormalꢀprogramꢀoperation,ꢀ  
ensuringꢀthatꢀtheꢀWriteꢀEnableꢀbitꢀinꢀtheꢀcontrolꢀregisterꢀisꢀclearedꢀwillꢀsafeguardꢀagainstꢀincorrectꢀ  
writeꢀoperations.  
EEPROM Interrupt  
TheꢀEEPROMꢀwriteꢀorꢀreadꢀinterruptꢀisꢀgeneratedꢀwhenꢀanꢀEEPROMꢀwriteꢀorꢀreadꢀcycleꢀhasꢀended.ꢀ  
TheꢀEEPROMꢀinterruptꢀmustꢀfirstꢀbeꢀenabledꢀbyꢀsettingꢀtheꢀE2Iꢀbitꢀinꢀtheꢀrelevantꢀinterruptꢀregister.ꢀ  
HoweverꢀasꢀtheꢀEEPROMꢀisꢀcontainedꢀwithinꢀaꢀMulti-functionꢀInterrupt,ꢀtheꢀassociatedꢀmulti-  
functionꢀinterruptꢀenableꢀbitꢀmustꢀalsoꢀbeꢀset.ꢀWhenꢀanꢀEEPROMꢀwriteꢀcycleꢀends,ꢀtheꢀE2Fꢀrequestꢀ  
flagꢀandꢀitsꢀassociatedꢀmulti-functionꢀinterruptꢀrequestꢀflagꢀwillꢀbothꢀbeꢀset.ꢀIfꢀtheꢀglobal,ꢀEEPROMꢀ  
andꢀMulti-functionꢀinterruptsꢀareꢀenabledꢀandꢀtheꢀstackꢀisꢀnotꢀfull,ꢀaꢀjumpꢀtoꢀtheꢀassociatedꢀMulti-  
functionꢀInterruptꢀvectorꢀwillꢀtakeꢀplace.ꢀWhenꢀtheꢀinterruptꢀisꢀservicedꢀonlyꢀtheꢀMulti-functionꢀ  
interruptꢀflagꢀwillꢀbeꢀautomaticallyꢀreset,ꢀtheꢀEEPROMꢀinterruptꢀflagꢀmustꢀbeꢀmanuallyꢀresetꢀbyꢀtheꢀ  
applicationꢀprogram.ꢀMoreꢀdetailsꢀcanꢀbeꢀobtainedꢀinꢀtheꢀInterruptꢀsection.  
Rev. 0.00  
31  
�eꢀteꢁꢂeꢃ ꢄꢅꢆ ꢄ01ꢄ