IBM EM78M611E manual USB Application, USB Device Controller

Page 26

EM78M611E

Universal Serial Bus Series Microcontroller

 

 

 

 

 

 

 

 

 

 

 

Address

 

 

 

 

 

 

 

 

 

 

(RD)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0X10

Data Byte Pointer of EP0

 

 

 

 

 

 

 

 

 

0X11

Data Byte Pointer of EP1

 

 

 

 

 

 

 

 

 

0X12

Data Byte Pointer of EP2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Counter

Pointer

 

Counter

Pointer

 

Counter

Pointer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0X00

EP0's FIFO

 

 

 

 

 

 

 

 

 

0X01

EP1's FIFO

 

 

 

 

 

 

 

 

 

0X02

EP1's FIFO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

0

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

2

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

3

 

3

 

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

 

4

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

5

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

 

6

 

6

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

7

 

7

 

 

 

 

 

 

 

 

 

 

 

 

 

Bi-directional

 

Uni-directional

 

Bi-directional

 

 

 

 

 

 

 

 

 

 

 

8.5 USB Application

EM78M611E is designed specially for USB device application and has many powerful functions that support the firmware to free itself from complex situation in various aspects of USB application.

8.5.1 USB Device Controller

The EM78M611E built-in USB Device Controller (UDC) can interpret the USB Standard Command and respond automatically without involving firmware. The embedded Series Interface Engine (SIE) handles the serialization and de-serialization of actual USB transmission. Thus, a developer can concentrate his efforts more in perfecting the device actual functions and spend less energy in dealing with USB transaction.

The UDC handles and decodes most Standard USB commands defined in the USB Specification Rev1.1. If the UDC receives an unsupported command, it will set a flag to notify the MCU of the receipt of such command. The Standard Commands that the EM78M611E supports includes; Clear Feature, Get Configuration, Get Interface,

Get Status, Set Address, Set Configuration, Set Feature, and Set Interface.

Each time the UDC receives a USB command, it writes the command into the EP0’s FIFO. Only when it receives unsupported command will the UDC notify the MCU through interrupt.

Hence, the EM78M611E is very flexible under USB application since the developer can freely choose the method of decoding the USB command as dictated by different situation.

22

Product Specification (V1.1) 11.22.2006

(This specification is subject to change without further notice)

Image 26
Contents EM78M611E Trademark Acknowledgments 2.1 Product Specification V1.1 AppendixUniversal Serial Bus Series Microcontroller FeaturesGeneral Description Product Specification V1.1 Original With Both Type DefinitionApplication Pin Assignment VNNEM78M611EXBP/BM/DM 20-Pin DIP/SOP/SSOP Symbol Function Pin DescriptionBlock Diagram ALU ACC Data & Control BUSFunction Description Program MemoryData Memory Special Purpose RegisterOperation Registers 2.2 R1 Timer / Clock Counter Default Value 0B000000002.3 R2 Program Counter & Stack Default Value 0B00000000 Bit 2.4 R3 Status Register Default Value0B00011XXXR3 0 Carry/Borrow Flag Condition Program Memory Page Address2.5 R4 RAM Select Register Default Value 0B00XXXXXX EP0Busy Stall Default Value 0B00000000 RF Interrupt Status RegisterControl Registers AccumulatorControl Register Default Value 0B00111111 TCC Rate WDT RateOperation Mode PS/2PH95 PH93 DualFrq.1 DualFrq.0 FrequencyBit P96 P95 P94 P93 P92 P91 P90 PU8 PU6 PU5 Extra Control Register USB Application FIFOsUSB Application USB Device ControllerReset Saving Power ModeDual Clock Mode InterruptPattern Detect Application PDA Function DescriptionControl Register Sampling Rate and Debounce LengthDB.2 DB.1 DB.0 Debounce Time SR.2 SR.1 SR.0 Sampling RateDuty Cycle Erepwm Control Register Default Value 0B00000001Pulse Width Modulation PWM R10 PWM1 Duty Cycle RegisterClock Hz Period/255 s ERA AD Channel Select Register Default Value 0B00011111Analog-To-Digital Converter ADC ERB AD LSB Data Register Default Value 0B00000000 Channel PortCommand Value Action Execution Time ERC AD MSB Data Register Default Value 0B00000000ERD AD Control Register Default Value 0B00000000 Symbol Parameter Condition Min Type Max Unit DC Electrical CharacteristicSymbol Min Max Unit Absolute Maximum RatingsUSB Interface Application Circuit Operation Registers Address Name Bit Bit1 Default ValueSpecial Register Map Address Name Bit Default Value Extra Register IOCA3 =Instruction Set Binary Instruction Hex Mnemonic Operation Status AffectedThis instruction is not recommended for RE, RF operation 11 16ms Bits 4~12 User ID Address Code Option RegisterAddress EM78M611E