| 전자부품 데이터시트 검색엔진 |
|
HT82B42R 데이터시트(PDF) 48 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT82B42R 데이터시트(HTML) 48 Page - Holtek Semiconductor Inc |
|
48 / 86 page ![]() Rev. 1.00 48 October 27, 2011 Rev. 1.00 49 October 27, 2011 HT82B42R/HT82B42RE I/O MCU with USB Interface To Configure as PS2 Device ThedevicescanalsobeconfiguredasaUSBinterfaceorPS2interfacedevice,byconfiguring MODE_CTRL0(bit4oftheUSRregister)andMODE_CTRL1(bit5oftheUSRregister).If MODE_CTRL0=1,andMODE_CTRL1=0,thedevicewillbeconfiguredasaPS2interface,pin UDNisconfiguredasaPS2DatapinandUDPisconfiguredasaPS2Clkpin.Theusercanreador writetothePS2DataorPS2ClkpinbyaccessingthecorrespondingbitPS2_DAI(bit4oftheUSC register),PS2_CKI(bit5oftheUSCregister),PS2_DAO(bit6oftheUSCregister)andPS2_CKO (bit7oftheUSCregister)respectively. Theusershouldmakesurethatinordertoreadthedataproperly,thecorrespondingoutputbitmust besetto“1”.Forexample,ifitisdesiredtoreadthePS2DatabyreadingPS2_DAI,thenPS2_DAO shouldsetto“1”.Otherwiseitisalwaysreadas“0”. IfMODE_CTRL0=0,andMODE_CTRL1=1,thedeviceisconfiguredasaUSBinterface.Boththe UDNandUDParedrivenbytheSIEofthedevices.TheusercanonlywriteorreadtheUSBdata throughthecorrespondingFIFO.BoththeMODE_CTRL0andMODE_CTRL1defaultis“0”. USB Control Registers TherearetwelveregistersusedfortheUSBfunction.TheAWRregistercontainsthecurrentaddress andaremotewakeupfunctioncontrolbit.TheinitialvalueofAWRis"00H".Theaddressvalue extractedfromtheUSBcommandisnottobeloadedintothisregisteruntiltheSETUPstageis completed. AWR Register Bit 7 6 5 4 3 2 1 0 Name AD6 AD5 AD4 AD3 AD2 AD1 AD0 WKEN R/W R/W R/W R/W R/W R/W R/W R/W R/W POR 0 0 0 0 0 0 0 0 Bit7~1 AD6~AD0:USBdeviceaddress Bit0 WKEN:USBremote-wake-upcontrolbit 0:disable 1:enable TheAWRregistercontainsthecurrentaddressandaremotewakeupfunctioncontrolbit.Theinitial valueofAWRis“00H”.TheaddressvalueextractedfromtheUSBcommandhasnottobeloaded intothisregisteruntiltheSETUPstagehasfinished. WDTS Register Bit 7 6 5 4 3 2 1 0 Name WS7 ― ― ― WS3 WS2 WS1 WS0 R/W R/W ― ― ― R/W R/W R/W R/W POR 1 0 0 0 0 1 1 1 Bit7 WS7:USBresetenablecontrolbit 0:USBresetsignalcannotresetMCU 1:USBresetsignalcanresetMCUandsetURST_FLAG(bit2oftheUSCregister) (defaultonatMCUreset) Bit6~4 unimplemented,readas“0” Bit3 WS3:D+,andD-havea300K±50%ohmpull-highcontrolbit 0:Non-pull-high(Default) 1:Pull-high Bit2~0 WS2,WS1,WS0:WDTTime-outperiodselection Describedelsewhere |
|
링크 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 |