| 전자부품 데이터시트 검색엔진 |
|
HT82B42R 데이터시트(PDF) 57 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT82B42R 데이터시트(HTML) 57 Page - Holtek Semiconductor Inc |
|
57 / 86 page ![]() Rev. 1.00 56 October 27, 2011 Rev. 1.00 57 October 27, 2011 HT82B42R/HT82B42RE I/O MCU with USB Interface Serial Interface – SPI TheSPIinterfaceisoftenusedtocommunicatewithexternalperipheraldevicessuchassensors, FlashorEEPROMmemorydevicesetc..OriginallydevelopedbyMotorola,thefourlineSPI interfaceisasynchronousserialdatainterfacethathasarelativelysimplecommunicationprotocol simplifyingtheprogrammingrequirementswhencommunicatingwithexternalhardwaredevices. Thecommunicationisfullduplexandoperatesasaslave/mastertype,wherethedevicecanbe eithermasterorslave.AlthoughtheSPIinterfacespecificationcancontrolmultipleslavedevices fromasinglemaster,howeverthisdeviceisprovidedwithonlyoneSCSpin.Ifthemasterneedsto controlmultipleslavedevicesfromasinglemaster,themastercanuseI/Opinstoselecttheslave devices. SPI Interface Operation TheSPIinterfaceisafullduplexsynchronousserialdatalink.Itisafourlineinterfacewithpin namesSDI,SDO,SCKandSCS.PinsSDIandSDOaretheSerialDataInputandSerialData Outputlines,SCKistheSerialClocklineandSCSistheSlaveSelectline.AstheSPIinterfacepins arepin-sharedwithnormalI/Opins,theSPIinterfacemustfirstbeenabledbysettingthecorrect bitsintheSBCRandSPIRregisters.TheSPIcanbedisabledorenabledusingtheSPI_ENbitin theSPIRregister.CommunicationbetweendevicesconnectedtotheSPIinterfaceiscarriedoutin aslave/mastermodewithalldatatransferinitiationsbeingimplementedbythemaster.TheMaster alsocontrolstheclocksignal.AsthedeviceonlycontainsasingleSCSpinonlyoneslavedevice canbeutilized. TheSCSpiniscontrolledbytheapplicationprogram,settheCSENbitto“1”toenabletheSCSpin functionandcleartheCSENbitto“0”toplacetheSCSpinintoafloatingstate. SP I M ast er SP I Sl ave SC K SD O SD I SC S SC K SD I SD O SC S SPI Master/Slave Connection Da ta B us SD I P in SD O Pi n SB DR Tx /R x Sh i ft R egi st er Bu sy St at us TR F Fl ag WC OL F la g Cl oc k E dge/ Po la ri ty Co nt ro l Cl oc k So ur ce S el ec t f SY S SC K Pi n SC S Pi n So ft wa re Op ti on CS E N bi t SPI _C SE N SPI _M OD E b it SP I_ CP OL b it SPI Block Diagram |
|
링크 URL |
| 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 |