User ManualTable of ContentsList of Sections5Table of Contents7List of Figures13List of Tables15Section 1. USB08 Quick Start171.1 Contents171.2 Introduction171.3 Required System Configuration171.4 Connecting the Demo Board to the PC181.5 Driver Installation191.6 Starting the Windows Demo Application24Section 2. Hardware Description272.1 Contents272.2 Introduction272.3 Technical Data282.3.1 MC68HC908JB8 Microcontroller282.3.2 USB08 Evaluation Board292.4 Circuit Description302.4.1 MCU Core Circuit and USB Interface312.4.2 Input/Output Functions322.4.3 Monitor Mode Interface332.4.4 User RS232 Port352.4.5 Power Supply362.5 Board Layout362.6 Jumpers and Bridges382.7 Connectors402.7.1 Expansion Connector X1402.7.2 Monitor Mode Connector X2402.7.3 User RS232 Connector X3412.8 Memory Map41Section 3. Software Module Descriptions433.1 Contents433.2 Introduction433.3 General Structure of the M68HC08 Firmware443.4 How to Build the Compiler Project453.5 Main Module U08MAIN.C483.6 Interrupt and Reset Vector Module VECJB8.C493.7 C Startup Module CRTSJB8.S503.8 Push Button Module U08KEY.C503.9 LED Control with U08LED.H523.10 Software ADC Module U08ADC.C523.11 RS232 Communication Module U08232.C543.12 USB Communication Module U08USB.C563.13 Compiler Specific Adjustments57Section 4. Universal Serial Bus (USB) Interface594.1 Contents594.2 Introduction594.3 Characteristics of the USB08 Reference Design604.4 USB Basics624.5 USB Implementation in the Reference Design654.5.1 Activation of the USB Module654.5.2 Endpoint Configuration654.5.3 USB Reset674.6 Device Management with Endpoint 0694.6.1 Enumeration694.6.2 Assignment of the Device Address694.6.3 Requesting Descriptors724.6.4 Device Configuration744.6.5 STALL Condition744.7 Data Communication via Endpoints EP1 and EP2754.7.1 Receiving Data764.7.2 Transmission of Data764.8 Host Interaction: Vendor ID and Product ID784.9 Windows Device Driver78Appendix A. Supported Standard Device Requests81Appendix B. USB08 Descriptors83B.1 Contents83B.2 Introduction83B.3 Device Descriptor84B.4 Configuration Descriptor84B.5 Interface Descriptor85B.6 Endpoint 1 Descriptor85B.7 Endpoint 2 Descriptor85B.8 String Descriptors86Appendix C. Source Code Files89C.1 Contents89HC908JB8.H90U08USB.H93U08232.H96U08LED.H96U08MAIN.C97U08DESC.C100U08USB.C104U08232.C113U08KEY.C116U08ADC.C117VECJB8.C119CRTSJB8.S120USB08.LKF121BUILD.BAT121USB08.MAP122USB08.S19125Appendix D. Bill of Materials and Schematic127Appendix E. Universal USB Device Driver (USBIO)131E.1 Contents132E.2 Introduction135E.3 Overview135E.3.1 Platforms136E.3.2 Features136E.4 Architecture138E.4.1 USBIO Object Model140E.4.1.1 USBIO Device Objects140E.4.1.2 USBIO Pipe Objects142E.4.2 Establishing a Connection to the Device144E.4.3 Power Management146E.4.4 Device State Change Notifications148E.5 Programming Interface149E.5.1 Programming Interface Overview149E.5.2 Control Requests150E.5.3 Data Transfer Requests182E.5.3.1 Bulk and Interrupt Transfers182E.5.3.2 Isochronous Transfers184E.5.4 Input and Output Structures185E.5.5 Enumeration Types214E.5.6 Error Codes218E.6 USBIO Class Library220E.6.1 CUsbIo Class220E.6.2 CUsbIoPipe Class221E.6.3 CUsbIoThread Class222E.6.4 CUsbIoReaderClass222E.6.5 CUsbIoWriter Class222E.6.6 CUsbIoBufClass223E.6.7 CUsbIoBufPool Class223E.7 USBIO Demo Application223E.7.1 Dialog Pages for Device Operations224E.7.1.1 Device224E.7.1.2 Descriptors224E.7.1.3 Configuration225E.7.1.4 Interface225E.7.1.5 Pipes225E.7.1.6 Class or Vendor Request226E.7.1.7 Feature226E.7.1.8 Other226E.7.1.9 Dialog Pages for Pipe Operations227E.7.1.10 Pipe227E.7.1.11 Buffers227E.7.1.12 Control228E.7.1.13 Read from Pipe to Output Window228E.7.1.14 Read from Pipe to File228E.7.1.15 Write from File to Pipe229E.8 Installation Issues229E.8.1 Automated Installation: The USBIO Installation Wizard229E.8.2 Manual Installation: The USBIO Setup Information File232E.8.3 Uninstalling USBIO236E.8.4 Building a Customized Driver Setup237E.9 Registry Entries239E.10 Related Documents241E.11 Light Version Limitations241Size: 1.77 MBPages: 244Language: EnglishOpen manual
User ManualTable of ContentsList of Sections5Table of Contents7List of Figures13List of Tables15Section 1. USB08 Quick Start171.1 Contents171.2 Introduction171.3 Required System Configuration171.4 Connecting the Demo Board to the PC181.5 Driver Installation191.6 Starting the Windows Demo Application24Section 2. Hardware Description272.1 Contents272.2 Introduction272.3 Technical Data282.3.1 MC68HC908JB8 Microcontroller282.3.2 USB08 Evaluation Board292.4 Circuit Description302.4.1 MCU Core Circuit and USB Interface312.4.2 Input/Output Functions322.4.3 Monitor Mode Interface332.4.4 User RS232 Port352.4.5 Power Supply362.5 Board Layout362.6 Jumpers and Bridges382.7 Connectors402.7.1 Expansion Connector X1402.7.2 Monitor Mode Connector X2402.7.3 User RS232 Connector X3412.8 Memory Map41Section 3. Software Module Descriptions433.1 Contents433.2 Introduction433.3 General Structure of the M68HC08 Firmware443.4 How to Build the Compiler Project453.5 Main Module U08MAIN.C483.6 Interrupt and Reset Vector Module VECJB8.C493.7 C Startup Module CRTSJB8.S503.8 Push Button Module U08KEY.C503.9 LED Control with U08LED.H523.10 Software ADC Module U08ADC.C523.11 RS232 Communication Module U08232.C543.12 USB Communication Module U08USB.C563.13 Compiler Specific Adjustments57Section 4. Universal Serial Bus (USB) Interface594.1 Contents594.2 Introduction594.3 Characteristics of the USB08 Reference Design604.4 USB Basics624.5 USB Implementation in the Reference Design654.5.1 Activation of the USB Module654.5.2 Endpoint Configuration654.5.3 USB Reset674.6 Device Management with Endpoint 0694.6.1 Enumeration694.6.2 Assignment of the Device Address694.6.3 Requesting Descriptors724.6.4 Device Configuration744.6.5 STALL Condition744.7 Data Communication via Endpoints EP1 and EP2754.7.1 Receiving Data764.7.2 Transmission of Data764.8 Host Interaction: Vendor ID and Product ID784.9 Windows Device Driver78Appendix A. Supported Standard Device Requests81Appendix B. USB08 Descriptors83B.1 Contents83B.2 Introduction83B.3 Device Descriptor84B.4 Configuration Descriptor84B.5 Interface Descriptor85B.6 Endpoint 1 Descriptor85B.7 Endpoint 2 Descriptor85B.8 String Descriptors86Appendix C. Source Code Files89C.1 Contents89HC908JB8.H90U08USB.H93U08232.H96U08LED.H96U08MAIN.C97U08DESC.C100U08USB.C104U08232.C113U08KEY.C116U08ADC.C117VECJB8.C119CRTSJB8.S120USB08.LKF121BUILD.BAT121USB08.MAP122USB08.S19125Appendix D. Bill of Materials and Schematic127Appendix E. Universal USB Device Driver (USBIO)131E.1 Contents132E.2 Introduction135E.3 Overview135E.3.1 Platforms136E.3.2 Features136E.4 Architecture138E.4.1 USBIO Object Model140E.4.1.1 USBIO Device Objects140E.4.1.2 USBIO Pipe Objects142E.4.2 Establishing a Connection to the Device144E.4.3 Power Management146E.4.4 Device State Change Notifications148E.5 Programming Interface149E.5.1 Programming Interface Overview149E.5.2 Control Requests150E.5.3 Data Transfer Requests182E.5.3.1 Bulk and Interrupt Transfers182E.5.3.2 Isochronous Transfers184E.5.4 Input and Output Structures185E.5.5 Enumeration Types214E.5.6 Error Codes218E.6 USBIO Class Library220E.6.1 CUsbIo Class220E.6.2 CUsbIoPipe Class221E.6.3 CUsbIoThread Class222E.6.4 CUsbIoReaderClass222E.6.5 CUsbIoWriter Class222E.6.6 CUsbIoBufClass223E.6.7 CUsbIoBufPool Class223E.7 USBIO Demo Application223E.7.1 Dialog Pages for Device Operations224E.7.1.1 Device224E.7.1.2 Descriptors224E.7.1.3 Configuration225E.7.1.4 Interface225E.7.1.5 Pipes225E.7.1.6 Class or Vendor Request226E.7.1.7 Feature226E.7.1.8 Other226E.7.1.9 Dialog Pages for Pipe Operations227E.7.1.10 Pipe227E.7.1.11 Buffers227E.7.1.12 Control228E.7.1.13 Read from Pipe to Output Window228E.7.1.14 Read from Pipe to File228E.7.1.15 Write from File to Pipe229E.8 Installation Issues229E.8.1 Automated Installation: The USBIO Installation Wizard229E.8.2 Manual Installation: The USBIO Setup Information File232E.8.3 Uninstalling USBIO236E.8.4 Building a Customized Driver Setup237E.9 Registry Entries239E.10 Related Documents241E.11 Light Version Limitations241Size: 1.77 MBPages: 244Language: EnglishOpen manual