| Electronic Components Datasheet Search |
|
HT66F0176 Datasheet(PDF) 97 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F0176 Datasheet(HTML) 97 Page - Holtek Semiconductor Inc |
|
97 / 165 page ![]() Rev. 1.20 96 ����st 2�� 201� Rev. 1.20 9� ����st 2�� 201� HT66F0176 A/D Flash MCU with EEPROM HT66F0176 A/D Flash MCU with EEPROM TherearealsotwocontrolregistersfortheSPIinterface,SIMC0andSIMC2.NotethattheSIMC2 registeralsohasthenameSIMAwhichisusedbytheI2Cfunction.TheSIMC1registerisnotused bytheSPIfunction,onlybytheI2Cfunction.RegisterSIMC0isusedtocontroltheenable/disable functionandtosetthedatatransmissionclockfrequency.RegisterSIMC2isusedforothercontrol functionssuchasLSB/MSBselection,writecollisionflag,etc. • SIMC0 Register Bit 7 6 5 4 3 2 1 0 Name SIM2 SIM1 SIM0 — SIMDBNC1 SIMDBNC0 SIMEN SIMICF R/W R/W R/W R/W — R/W R/W R/W R/W POR 1 1 1 — 0 0 0 0 Bit7~5 SIM2~SIM0:SIMOperatingModeControl 000:SPImastermode;SPIclockisfSYS/4 001:SPImastermode;SPIclockisfSYS/16 010:SPImastermode;SPIclockisfSYS/64 011:SPImastermode;SPIclockisfTBC 100:SPImastermode;SPIclockisTM1CCRPmatchfrequency/2 101:SPIslavemode 110:I2Cslavemode 111:NonSIMfunction ThesebitssetuptheoveralloperatingmodeoftheSIMfunction.Aswellasselecting iftheI2CorSPIfunction,theyareusedtocontroltheSPIMaster/Slaveselectionand theSPIMasterclockfrequency.TheSPIclockisafunctionofthesystemclockbut canalsobechosentobesourcedfromTM1orfTBC.IftheSPISlaveModeisselected thentheclockwillbesuppliedbyanexternalMasterdevice. Bit4 Unimplemented,readas"0" Bit3~2 SIMDBNC1~SIMDBNC0:I2CDebounceTimeSelection 00:Nodebounce 01:2systemclockdebounce 1x:4systemclockdebounce Bit1 SIMEN:SIMEnableControl 0:Disable 1:Enable Thebitistheoverallon/offcontrolfortheSIMinterface.WhentheSIMENbitis clearedtozerotodisabletheSIMinterface,theSDI,SDO,SCKandSCS,orSDAand SCLlineswilllosetheirSPIorI2CfunctionandtheSIMoperatingcurrentwillbe reducedtoaminimumvalue.WhenthebitishightheSIMinterfaceisenabled.The SIMconfigurationoptionmusthavefirstenabledtheSIMinterfaceforthisbittobe effective.IftheSIMisconfiguredtooperateasanSPIinterfaceviatheSIM2~SIM0 bits,thecontentsoftheSPIcontrolregisterswillremainattheprevioussettingswhen theSIMENbitchangesfromlowtohighandshouldthereforebefirstinitialisedby theapplicationprogram.IftheSIMisconfiguredtooperateasanI2Cinterfaceviathe SIM2~SIM0bitsandtheSIMENbitchangesfromlowtohigh,thecontentsoftheI2C controlbitssuchasHTXandTXAKwillremainattheprevioussettingsandshould thereforebefirstinitialisedbytheapplicationprogramwhiletherelevantI2Cflags suchasHCF,HAAS,HBB,SRWandRXAKwillbesettotheirdefaultstates. Bit0 SIMICF:SIMIncompleteFlag 0:SIMincompleteconditionnotoccurred 1:SIMincompleteconditionoccured ThisbitisonlyavailablewhentheSIMisconfiguredtooperateinanSPIslavemode. IftheSPIoperatesintheslavemodewiththeSIMENandCSENbitsbothbeingset to1buttheSCSlineispulledhighbytheexternalmasterdevicebeforetheSPIdata transferiscompletelyfinished,theSIMICFbitwillbesetto1togetherwiththeTRF bit.Whenthisconditionoccurs,thecorrespondinginterruptwilloccuriftheinterrupt functionisenabled.However,theTRFbitwillnotbesetto1iftheSIMICFbitisset to1bysoftwareapplicationprogram. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |