2 usb application fifos – EMC EM78612 User Manual

Page 23

Advertising
background image

EM78612

Universal Serial Bus Microcontroller

Product Specification (V1.0) 03.22.2006

•••• 21

(This specification is subject to change without further notice)

IOCF (Interrupt Mask Register)

Default Value: (0B_0

0

00_0000)

7

6

5

4

3

2

1

0

-

-

Port 5 State

Change_IE

USB Host

Resume_1E

USB

Reset_IE

USB

Suspend_IE

EP0_IE TCC_IE

IOCF [0~5]

TCC / EP0 / USB Suspend / USB Reset / USB Host Resume / Port 5
State Change enable bits. These eight bits respectively control the
function of TCC interrupt, EP0 interrupt, USB Suspend interrupt, USB
Reset interrupt, USB Host Resume interrupt, Port5 State Change
interrupt, Individual interrupt is enabled by setting its associated control
bit in the IOCF to "1".

1: Enable Interrupt.

0: Disable Interrupt.

IOCF[6] Default value is zero and do not modify it.

Only when the global interrupt is enabled by the ENI instruction that the individual
interrupt will work. After DISI instruction, any interrupt will not work even if the
respective control bits of IOCF are set to 1.

The USB Host Resume Interrupt works only under Dual clock mode.

This is

because when the MCU is under sleep mode, it will be waked up by the UDC Resume
signal automatically.

7.2.2

USB Application FIFOs

For USB Application, EM78612 provides an 8-byte First-In-First-Out (FIFO) buffer for
each endpoint. The buffer cannot be accessed directly. However, a corresponding Data
Byte Pointer register for each endpoint is made available to address the individual byte
of the FIFO buffer. The content of the individual byte will map to a special register.

Advertising