Datasheet
PIC18F/LF1XK50
DS41350E-page 274 Preliminary 2010 Microchip Technology Inc.
22.7 Oscillator
The USB module has specific clock requirements. For
full-speed operation, the clock source must be 48 MHz.
Even so, the microcontroller core and other peripherals
are not required to run at that clock speed. Available
clocking options are described in detail in Section 2.11
“USB Operation”.
22.8 Interrupt-On-Change for D+/D-
pins
The PIC18F/LF1XK50 has interrupt-on-change func-
tionality on both D+ and D- data pins. This feature
allows the device to detect voltage level changes
when first connected to a USB host/hub.
The USB host/hub has 15K pull-down resistors on the D+
and D- pins. When the PIC18F/LF1XK50 attaches to the
bus the D+ and D- pins can detect voltage changes.
External resistors are needed for each pin to maintain a
high state on the pins when detached.
The USB module must be disable (USBEN = 0) for the
interrupt-on-change to function. Enabling the USB
module (USBEN = 1) will automatically disable the
interrupt-on-change for D+ and D- pins. Refer to
Section 7.11 “PORTA and PORTB Inter-
rupt-on-Change” for mode detail.
22.9 USB Firmware and Drivers
Microchip provides a number of application-specific
resources, such as USB firmware and driver support.
Refer to www.microchip.com for the latest firmware and
driver support.
TABLE 22-4: REGISTERS ASSOCIATED WITH USB MODULE OPERATION
(1)
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Details on
Page:
INTCON GIE/GIEH PEIE/GIEL
TMR0IE INT0IE RABIE TMR0IF INT0IF RABIF 70
IPR2
OSCFIP C1IP C2IP EEIP BCL1IP USBIP TMR3IP —78
PIR2
OSCFIF C1IF C2IF EEIF BCL1IF USBIF TMR3IF —74
PIE2
OSCFIE C1IE C2IE EEIE BCL1IE USBIE TMR3IE —76
UCON
— PPBRST SE0 PKTDIS USBEN RESUME SUSPND — 252
UCFG UTEYE
— — UPUEN — FSEN PPB1 PPB0 254
USTAT
— ENDP3 ENDP2 ENDP1 ENDP0 DIR PPBI — 256
UADDR
— ADDR6 ADDR5 ADDR4 ADDR3 ADDR2 ADDR1 ADDR0 258
UFRML FRM7 FRM6 FRM5 FRM4 FRM3 FRM2 FRM1 FRM0 252
UFRMH
— — — — — FRM10 FRM9 FRM8 252
UIR
— SOFIF STALLIF IDLEIF TRNIF ACTVIF UERRIF URSTIF 266
UIE
— SOFIE STALLIE IDLEIE TRNIE ACTVIE UERRIE URSTIE 268
UEIR BTSEF
— — BTOEF DFN8EF CRC16EF CRC5EF PIDEF 269
UEIE BTSEE
— — BTOEE DFN8EE CRC16EE CRC5EE PIDEE 270
UEP0
— — — EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL 257
UEP1
— — — EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL 257
UEP2
— — — EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL 257
UEP3
— — — EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL 257
UEP4
— — — EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL 257
UEP5
— — — EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL 257
UEP6
— — — EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL 257
UEP7
— — — EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL 257
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used by the USB module.
Note 1: This table includes only those hardware mapped SFRs located in Bank 15 of the data memory space. The Buffer
Descriptor registers, which are mapped into Bank 4 and are not true SFRs, are listed separately in Table 22-3.