IBM EM78M611E manual Extra Control Register, USB Application FIFOs

Page 25

EM78M611E

Universal Serial Bus Series Microcontroller

8.2.3.9 IOCF (Interrupt Mask Register) Default Value (0B_0000_0000)

Bit 7

 

Bit 6

 

Bit 5

 

Bit 4

 

Bit 3

 

Bit 2

 

Bit 1

 

Bit 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

USB Host

 

 

 

 

 

Port7 state

 

USB

 

USB

 

 

 

 

Resume_I

 

SE2_IE

 

SE1_IE

 

 

 

 

EP0_IE

 

TCC_IE

 

 

 

change_1E

 

Reset_IE

 

Suspend_IE

 

 

E

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IOCF [0~7] TCC / EP0 / USB Suspend / USB Reset / Port 7 State Change / SE1_IE /

 

 

SE2_IE / USB Host Resume interrupt enable bits. These eight bits control

 

 

the TCC interrupt function, EP0 interrupt, USBJSuspend interrupt, USB

 

 

Reset interrupt, Port 7 State Change interrupt and USB Host Resume

 

 

interrupt respectively. Individual interrupt is enabled by setting its

 

 

associated control bit in the IOCF to "1."

 

 

 

 

 

 

0 : Disable Interrupt

1 : Enable Interrupt

Only when the global interrupt is enabled by the ENI instruction will the individual interrupt 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 in Dual clock mode. This is because when the MCU is in sleep mode, it will be automatically woken up by the UDC Resume signal.

8.3 Extra Control Register

Five extra control registers are available to control some special functions. The five registers are ERA (AD Control register), ERB (AD_LSB), ERC (AD_MSB), ERD (AD_Rate), and ERE (PWM Control register)

Remember to set IOCA[3] before accessing these five registers. The operating method is the same as with other control registers.

8.4 USB Application FIFOs

For USB Application, EM78M611E 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.

Product Specification (V1.11) 04.20.2007

21

(This specification is subject to change without further notice)

Image 25
Contents EM78M611E Trademark Acknowledgments 2.1 Appendix Product Specification V1.1General Description FeaturesUniversal Serial Bus Series Microcontroller Product Specification V1.1 Application Type DefinitionOriginal With Both VNN Pin AssignmentEM78M611EXBP/BM/DM 20-Pin DIP/SOP/SSOP Pin Description Symbol FunctionALU ACC Data & Control BUS Block DiagramProgram Memory Function DescriptionSpecial Purpose Register Data Memory2.3 R2 Program Counter & Stack Default Value 0B00000000 2.2 R1 Timer / Clock Counter Default Value 0B00000000Operation Registers R3 0 Carry/Borrow Flag 2.4 R3 Status Register Default Value0B00011XXXBit Program Memory Page Address Condition2.5 R4 RAM Select Register Default Value 0B00XXXXXX EP0Busy Stall RF Interrupt Status Register Default Value 0B00000000Accumulator Control RegistersTCC Rate WDT Rate Control Register Default Value 0B00111111PS/2 Operation ModeBit P96 P95 P94 P93 P92 P91 P90 DualFrq.1 DualFrq.0 FrequencyPH95 PH93 PU8 PU6 PU5 USB Application FIFOs Extra Control RegisterUSB Device Controller USB ApplicationSaving Power Mode ResetInterrupt Dual Clock ModeFunction Description Pattern Detect Application PDASampling Rate and Debounce Length Control RegisterSR.2 SR.1 SR.0 Sampling Rate DB.2 DB.1 DB.0 Debounce TimePulse Width Modulation PWM Erepwm Control Register Default Value 0B00000001Duty Cycle R10 PWM1 Duty Cycle RegisterAnalog-To-Digital Converter ADC ERA AD Channel Select Register Default Value 0B00011111Clock Hz Period/255 s Channel Port ERB AD LSB Data Register Default Value 0B00000000ERD AD Control Register Default Value 0B00000000 ERC AD MSB Data Register Default Value 0B00000000Command Value Action Execution Time Symbol Min Max Unit DC Electrical CharacteristicSymbol Parameter Condition Min Type Max Unit Absolute Maximum RatingsUSB Interface Application Circuit Special Register Map Address Name Bit Bit1 Default ValueOperation Registers Extra Register IOCA3 = Address Name Bit Default ValueBinary Instruction Hex Mnemonic Operation Status Affected Instruction SetThis instruction is not recommended for RE, RF operation Address Code Option Register11 16ms Bits 4~12 User ID Address EM78M611E