Motore di ricerca datesheet componenti elettronici |
|
HT82K94E Scheda tecnica(PDF) 22 Page - Holtek Semiconductor Inc |
|
HT82K94E Scheda tecnica(HTML) 22 Page - Holtek Semiconductor Inc |
22 / 43 page HT82K94E/HT82K94A Rev. 2.40 22 November 5, 2014 USB/PS2 Status and Control Register The register is used to indicate there are USB suspend, USB resume and USB reset signal in USB bus. Also user can output a high pulse in RMWK bit to wake-up the PC for USB remote function. Bit No. Label R/W Function 0 SUSP R Read only, USB suspend indication. When this bit is set to ²1² (set by SIE), it indi- cates the USB bus enters suspend mode. The USB interrupt is also triggered on any changes of this bit. 1 RMWK R/W USB remote wake-up command. It is set by MCU to force the USB host leaving the suspend mode. When this bit is set to ²1²,2ms delay for clearing this bit to ²0² is needed to insure the RMWK command is accepted by SIE. 2 URST R/W USB reset indication. This bit is set/cleared by USB SIE. This bit is used to detect which bus (PS2 or USB) is attached. When the URST is set to ²1², this indicates that a USB reset has occurred (the attached bus is USB) and a USB interrupt will be ini- tialized. 3 RESUME R USB resume indication. When the USB leaves the suspend mode, this bit is set to ²1² (set by SIE). This bit will appear 20ms waiting for the MCU to detect. When the RESUME is set by the SIE, an interrupt will be generated to wake-up the MCU. In or- der to detect the suspend state, the MCU should set the USBCKEN and clear SUSP2 (in SCC register) to enable the SIE detecting function. The RESUME will be cleared while the SUSP is going ²0². When the MCU is detecting the SUSP, the RE- SUME (wakes-up the MCU ) should be remembered and taken into consideration. 4 PS2DAI R Read only, USBD-/DATA input 5 PS2CKI R Read only, USBD+/CLK input 6 PS2DAO W Data for driving the USBD-/DATA pin (Default= ²1²) 7 PS2CKO W Data for driving the USBD+/CLK pin (Default= ²1²) USC (1CH) Register USB Endpoint Interrupt Status Register The register is used to indicate which endpoint is accessed or has external interrupt PA4/EXT is activated and to select the serial bus (PS2 or USB). The endpoint request flags (EP0IF, EP1IF, EP2IF, EP3IF and EXTIF) are used to indicate which endpoints are accessed. If an endpoint is accessed, the related endpoint request flag will be set to ²1² and the USB interrupt will occur (if the USB interrupt is enabled and the stack is not full). When the active endpoint request flag is served, the endpoint request flag has to be cleared to ²0². Where USB_flag bit is only a bit for firmware to store the USB-mode data. This bit only clear to zero after power-on reset. Bit No. Label R/W Function 0 EP0IF R/W When this bit is set to ²1² (set by the SIE), it indicates the endpoint 0 is accessed and a USB interrupt will occur. When the interrupt has been served, this bit should be cleared by firmware. 1 EP1IF R/W When this bit is set to ²1² (set by the SIE), it indicates the endpoint 1 is accessed and a USB interrupt will occur. When the interrupt has been served, this bit should be cleared by firmware. 2 EP2IF R/W When this bit is set to ²1² (set by the SIE), it indicates the endpoint 2 is accessed and a USB interrupt will occur. When the interrupt has been served, this bit should be cleared by firmware. 3 EP3IF R/W When set to ²1², indicated endpoint 3 interrupt event . Must wait MCU to process in- terrupt event, then clear this bit by firmware. This bit must be 0, then next interrupt event will be process. Default value is 0. 4 SPS2 R/W The PS2 function is selected when this bit is set to ²1². (Default=²0²) 5 SUSB R/W The USB function is selected when this bit is set to ²1². (Default=²0²) 6 ¾¾ Undefined, should be cleared to ²0² 7 USB_flag R/W This flag is used to show the MCU is in USB mode. (Bit=1) This bit is R/W by FW and will be cleared to ²0² after power-on reset. (Default=²0²) USR (1DH) Register |
Codice articolo simile - HT82K94E_14 |
|
Descrizione simile - HT82K94E_14 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEETIT.COM |
Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | scambio Link | Ricerca produttore 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 |