| 数据搜索系统,热门电子元器件搜索 |
|
HT66F4530 数据表(PDF) 134 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F4530 数据表(HTML) 134 Page - Holtek Semiconductor Inc |
|
134 / 224 page ![]() Rev. 1.00 134 De�e��e� �1� �01� Rev. 1.00 135 De�e��e� �1� �01� HT66F4530/HT66F4540/HT66F4550 A/D Flash MCU with Dual Operational Amplifiers HT66F4530/HT66F4540/HT66F4550 A/D Flash MCU with Dual Operational Amplifiers SPI Control Registers TherearealsotwocontrolregistersfortheSPIinterface,SIMC0andSIMC2.NotethattheSIMC2 registeralsohasthenameSIMAwhichisusedbytheI2Cfunction.TheSIMC0registerisusedto controltheenable/disablefunctionandtosetthedatatransmissionclockfrequency.TheSIMC2 registerisusedforothercontrolfunctionssuchasLSB/MSBselection,writecollisionflagetc. • SIMC0 Register Bit 7 6 5 4 3 2 1 0 Na�e SIM� SIM1 SIM0 — SIMDEB1 SIMDEB0 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;SPIclockisfSUB 100:SPImastermode;SPIclockisPTM0CCRPmatchfrequency/2 101:SPIslavemode 110:I2Cslavemode 111:Unusedmode ThesebitssetuptheoveralloperatingmodeoftheSIMfunction.Aswellasselecting iftheI2CorSPIfunction,theyareusedtocontroltheSPIMaster/Slaveselection andtheSPIMasterclockfrequency.TheSPIclockisafunctionofthesystemclock butcanalsobechosentobesourcedfromPTM0andfSUB.IftheSPISlaveModeis selectedthentheclockwillbesuppliedbyanexternalMasterdevice. Bit4 Unimplemented,readas"0" Bit3~2 SIMDEB1~SIMDEB0:I2CDebounceTimeSelection TheSIMDEB1~SIMDEB0bitsareonlyusedintheI2Cmodeandthedetailed definitionisdescribedintheI2Csection. Bit1 SIMEN:SIMEnableControl 0:Disable 1:Enable Thebitistheoverallon/offcontrolfortheSIMinterface.WhentheSIMENbitis clearedtozerotodisabletheSIMinterface,theSDI,SDO,SCKandSCS,orSDAand SCLlineswilllosetheirSPIorI2CfunctionandtheSIMoperatingcurrentwillbe reducedtoaminimumvalue.WhenthebitishightheSIMinterfaceisenabled.Ifthe SIMisconfiguredtooperateasanSPIinterfaceviatheSIM2~SIM0bits,thecontents oftheSPIcontrolregisterswillremainattheprevioussettingswhentheSIMENbit changesfromlowtohighandshouldthereforebefirstinitialisedbytheapplication program.IftheSIMisconfiguredtooperateasanI2CinterfaceviatheSIM2~SIM0 bitsandtheSIMENbitchangesfromlowtohigh,thecontentsoftheI2Ccontrolbits suchasHTXandTXAKwillremainattheprevioussettingsandshouldthereforebe firstinitialisedbytheapplicationprogramwhiletherelevantI2CflagssuchasHCF, HAAS,HBB,SRWandRXAKwillbesettotheirdefaultstates. Bit0 SIMICF:SIMSPIIncompleteFlag 0:SIMSPIincompleteconditionisnotoccurred 1:SIMSPIincompleteconditionisoccurred ThisbitisonlyavailablewhentheSIMisconfiguredtooperateinanSPIslavemode. IftheSPIoperatesintheslavemodewiththeSIMENandCSENbitsbothbeingset to1buttheSCSlineispulledhighbytheexternalmasterdevicebeforetheSPIdata transferiscompletelyfinished,theSIMICFbitwillbesetto1togetherwiththeTRF bit.Whenthisconditionoccurs,thecorrespondinginterruptwilloccuriftheinterrupt functionisenabled.However,theTRFbitwillnotbesetto1iftheSIMICFbitisset to1bysoftwareapplicationprogram. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |