The default configuration of S3C2440 is generally one USB DEVICE and one USB HOST, that is, one master port and one slave port. Let's first take a look at the knowledge related to USB Device and USB Host.
USB Host:
The bottom layer is the USB Host controller, and the upper layer is the USB Host Controller Driver, which is responsible for communicating with the hardware to transmit data. In WinCE, it supports UHCI, OHCI, and EHCI. The Host Core Driver & Hub Driver is a USB protocol stack independent of the hardware, supporting the USB Host protocol and USB Hub functions. The top layer is the USB Host Class driver, which is the application protocol of the USB Host. Currently, in WinCE, it supports four applications: RNDIS, Print, Mass Storage, and HID.
USB Device:
The bottom layer is the USB Device controller, and the upper layer is the USB Device Driver responsible for communicating with the hardware. The Device Core Driver is the protocol stack of the USB Device. The top layer is the application layer of the USB Device, which currently supports three applications in WinCE: RNDIS, Serial, and Mass Storage.
In the Catalog Items View,
USB Function Driver: used to support USB Device driver.
USB Host Support: used to support USB Host controller driver.
To change a USB Device to a USB Host, both the hardware and software need to be modified.
As for the hardware, you can refer to the schematic diagram, it seems that two resistors need to be changed;
Software: First, remove the USB Function driver. This can be done by setting BSP_NOUSBFN=1. Then modify the MISCCR register value, MISCCR [3]SEL_USBPAD:USB1 Host/Device select register. 0=Use USB1 as Device, 1=USE USB1 as Host. That is, change the third bit of MISCCR to 1. This is modified in the initialization function. Add a line of code s2440IOP->MISCCR |= (1<<3);
Previous article:[Embedded] Use Qt to add a software keyboard to ARM9 (mini2440) and add a dynamic link library
Next article:WINCE6 boot progress bar
Recommended ReadingLatest update time:2024-11-16 09:50
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Recommendations for pad and steel mesh design of asymmetric packaged power chips
- Meixin Award Live Broadcast: Supporting Integrated Digital IO Technology for Industrial Systems Registration Open
- MSP430F249 external interrupt P1.3 port
- Cumulative error analysis and clock frequency optimization for UART communication in MSP430FR2311
- Learn 3D visualization from scratch: Exploded diagram
- 1000m WIFI amplifier ~ Anyone interested?
- FilterSolutions User's Guide The simulated filter that has been practiced is pretty good
- What is the definition of these so-called self-organizing networks?
- dsp6657 serial port learning
- Try the data visualization tool of visionseed in Ubuntu