English
Language : 

K60P100M100SF2RM Datasheet, PDF (1297/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Chapter 46 USB Device Charger Detection Module (USBDCD)
Note that the TUNITCON register field will stop incrementing when it reaches its maximum
value so it will not rollover to zero and start counting up again.
46.5.2 Interrupts and Events
The USBDCD module has an interrupt to alert system software of certain events, which
are listed in the following table. All events except the Phase Complete event for the Data
Pin Detection phase can trigger an interrupt.
Table 46-18. Events Triggering an Interrupt by Sequence Phase
Sequence
Phase
Data Pin
Detection
Charging Port
Detection
Charger Type
Detection
Sequence
Timeout
Event
Phase
Complete
Phase
Complete
Error
Phase
Complete
Error
Event Description
STATUS Fields1
The module has detected data pin contact. ERR = 0
No interrupt occurs: CONTROL[IF] = 0.
SEQ_STAT = 01
SEQ_RES = 00
TO = 0
The module has completed the process of
ERR = 0
identifying if the USB port is a charging port or
not.
SEQ_STAT = 10
SEQ_RES = 01 or 10
TO = 0
The module cannot identify the type of port
because the D- line is above the USB's VLGC
threshold.
ERR = 1
SEQ_STAT = 10
SEQ_RES = 00
TO = 0
The module has completed the process of
identifying the charger type detection.
Note: The ERR flag always reads as zero
because no known error conditions
are checked during this phase.
ERR = 0
SEQ_STAT = 11
SEQ_RES = 11 or 10
TO = 0
The timeout interval from the time the USB
device attaches to a USB port until it connects
has elapsed
ERR = 1
SEQ_STAT = last value2
SEQ_RES = last value2
TO = 1
Phase
Description
VBUS Contact
Detection
Charging Port
Detection
Error in Charging
Port Detection
Charger Type
Detection
Charger
Detection
Sequence
Timeout.
1. See the description of the Status Register for register information.
2. The SEQ_STAT and SEQ_RES fields retain the values held at the time of the timeout error.
46.5.2.1 Interrupt Handling
Software can read which event caused the interrupt from the STATUS register during the
interrupt service routine.
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
1297