| 전자부품 데이터시트 검색엔진 |
|
HT82B42R 데이터시트(PDF) 65 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT82B42R 데이터시트(HTML) 65 Page - Holtek Semiconductor Inc |
|
65 / 86 page ![]() Rev. 1.00 64 October 27, 2011 Rev. 1.00 65 October 27, 2011 HT82B42R/HT82B42RE I/O MCU with USB Interface Slave Mode: • Step1 TheCKSbithasa“don’tcare”valueintheslavemode. • Step2 SetuptheM0andM1bitsintheSBCRcontrolregisterto11toselecttheSlaveMode.TheCKS bitisdon’tcare. • Step3 SetuptheCSENbitandsetuptheMLSbittochooseifthedataisMSBorLSBfirst,thismustbe sameastheMasterdevice. • Step4 SetuptheSBENbitintheSBCRcontrolregistertoenabletheSPIinterface. • Step5 Forwriteoperations:writethedatatotheSBDRregister,whichwillactuallyplacethedatainto theTXRXbuffer.ThenwaitforthemasterclockSCKandSCSsignal.Afterthisgotostep6. Forreadoperations:thedatatransferredinontheSDIlinewillbestoredintheTXRXbufferuntil allthedatahasbeenreceivedatwhichpointitwillbelatchedintotheSBDRregister. • Step6 ChecktheWCOLbitifsethighthenacollisionerrorhasoccurredsoreturntostep5.Ifequalto zerothengotothefollowingstep. • Step7 ChecktheTRFbitorwaitforaSPIserialbusinterrupt. • Step8 ReaddatafromtheSBDRregister. • Step9 ClearTRF. • Step10 Gotostep5. Error Detection TheWCOLbitintheSBCRregisterisprovidedtoindicateerrorsduringdatatransfer.Thebitis setbytheSPIserialInterfacebutmustbeclearedbytheapplicationprogram.Thisbitindicatesa datacollisionhasoccurredwhichhappensifawritetotheSBDRregistertakesplaceduringadata transferoperationandwillpreventthewriteoperationfromcontinuing. |
|
링크 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 |