English
Language : 

MC68HC908JW32_09 Datasheet, PDF (160/232 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers
USB 2.0 FS Module
SIZE[1:0] — Buffer size Selection bits
This read/write bits select the buffer size for the corresponding endpoint. When USBEN is set, these
bits has no effect.
Table 11-4. Buffer Size Selection Table
SIZE[1:0]
00
01
10
11
Buffer Size
8 Bytes
16 Bytes
32 Bytes
64 Bytes
TFRCIE — Transfer Complete Interrupt Enable
This read/write bit enables the CPU interrupt associated with the TFRC flag.
1 = TFRC flag interrupt is enabled
0 = TFRC flag interrupt is disabled
DIR — Endpoint Direction Bit
Setting this bit enables the endpoint to become IN endpoint. Clearing this bit enables the endpoint to
become OUT endpoint. Writing to this bit will have no effect when USBEN is set.
1 = IN endpoint is enabled
0 = OUT endpoint is enabled
STALL — Forced STALL Handshake Enable
This read/write bit causes endpoint 0 to return a STALL handshake when polled by either an IN or OUT
token by the USB host. If the bit is set by software, when a data packet addressed to that endpoint is
detected, this STALL status will be latched to the module, the bit is cleared automatically and the
packet will be responded by STALL. Once the STALL status is latched, it can only be cleared by
CLEAR_FEATURE command from the host. Software cannot clear this status. If there is no packet
addressed to the endpoint after the bit is set, it can still be cleared by writing zero. Reset clears this bit.
1 = Send STALL handshake
0 = Do not response STALL handshaking
NOTE
When USB RESET is detected, explicitly writing zero to the STALL bit is
recommended to ensure all unlatched STALL status is cleared.
MODE[1:0] — Endpoint Type selection
This bit selects the type of the endpoint. When USBEN is set, this bit has no effect.
Table 11-5. Mode selection for Endpoint type
MODE[1:0]
00
01
10
11
Endpoint Type
Endpoint Disable
—
Bulk
Interrupt
MC68HC908JW32 Data Sheet, Rev. 6
160
Freescale Semiconductor