EasyManuals Logo

Holtek HT66F30 User Manual

Default Icon
294 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 #185 background imageLoading...
Page #185 background image
Rev. 2.50 184 June 22, 2017 Rev. 2.50 185 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
Serial Interface Module – SIM
ThesedevicescontainaSerialInterfaceModule,whichincludesboththefourlineSPIinterfaceor
thetwolineI
2
Cinterfacetypes,toallowaneasymethodofcommunicationwithexternalperipheral
hardware.Havingrelativelysimplecommunicationprotocols,theseserialinterfacetypesallowthe
microcontrollertointerfacetoexternalSPIorI
2
Cbasedhardwaresuchassensors,FlashorEEPROM
memory,etc.TheSIMinterfacepinsarepin-sharedwithotherI/OpinsthereforetheSIMinterface
functionmustrstbeselectedusingacongurationoption.Asbothinterfacetypessharethesame
pinsandregisters,thechoiceofwhethertheSPIorI
2
CtypeisusedismadeusingtheSIMoperating
modecontrolbits,namedSIM2~SIM0,intheSIMC0register.Thesepull-highresistorsoftheSIM
pin-sharedI/Oareselectedusingpull-highcontrolregisters,andalsoiftheSIMfunctionisenabled.
SPI Interface
TheSPIinterfaceisoftenusedtocommunicatewithexternalperipheraldevicessuchassensors,
FlashorEEPROMmemorydevicesetc.OriginallydevelopedbyMotorola,thefourlineSPI
interfaceisasynchronousserialdatainterfacethathasarelativelysimplecommunicationprotocol
simplifyingtheprogrammingrequirementswhencommunicatingwithexternalhardwaredevices.
Thecommunicationisfullduplexandoperatesasaslave/mastertype,wherethedevicecanbe
eithermasterorslave.AlthoughtheSPIinterfacespecicationcancontrolmultipleslavedevices
fromasinglemaster,butthisdeviceprovidedonlyoneSCSpin.Ifthemasterneedstocontrol
multipleslavedevicesfromasinglemaster,themastercanuseI/Opintoselecttheslavedevices.
SPI Interface Operation
TheSPIinterfaceisafullduplexsynchronousserialdatalink.Itisafourlineinterfacewithpin
namesSDI,SDO,SCKandSCS.PinsSDIandSDOaretheSerialDataInputandSerialDataOutput
lines,SCKistheSerialClocklineandSCSistheSlaveSelectline.AstheSPIinterfacepinsarepin-
sharedwithnormalI/OpinsandwiththeI
2
Cfunctionpins,theSPIinterfacemustrstbeenabledby
selectingtheSIMenablecongurationoptionandsettingthecorrectbitsintheSIMC0andSIMC2
registers.AftertheSPIcongurationoptionhasbeencongureditcanalsobeadditionallydisabled
orenabledusingtheSIMENbitintheSIMC0register.Communicationbetweendevicesconnected
totheSPIinterfaceiscarriedoutinaslave/mastermodewithalldatatransferinitiationsbeing
implementedbythemaster.TheMasteralsocontrolstheclocksignal.Asthedeviceonlycontains
asingleSCSpinonlyoneslavedevicecanbeutilized.TheSCSpiniscontrolledbysoftware,set
CSENbitto1toenableSCSpinfunction,setCSENbitto0theSCSpinwillbeoatingstate.
TheSPIfunctioninthisdeviceoffersthefollowingfeatures:
• Fullduplexsynchronousdatatransfer
• BothMasterandSlavemodes
• LSBrstorMSBrstdatatransmissionmodes
• Transmissioncompleteag
• Risingorfallingactiveclockedge
• WCOLandCSENbitenabledordisableselect

Table of Contents

Other manuals for Holtek HT66F30

Questions and Answers:

Question and Answer IconNeed help?

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

Holtek HT66F30 Specifications

General IconGeneral
BrandHoltek
ModelHT66F30
CategoryComputer Hardware
LanguageEnglish

Related product manuals