S3C2440 WINCE6 changes USB DEVICE to USB HOST and implements two USB HOSTs

Publisher:科技创造者Latest update time:2024-08-02 Source: cnblogsKeywords:S3C2440  WINCE6  USB  DEVICE  HOST Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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);


Keywords:S3C2440  WINCE6  USB  DEVICE  HOST Reference address:S3C2440 WINCE6 changes USB DEVICE to USB HOST and implements two USB HOSTs

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

【ARM bare board】S3C2440 clock setting and analysis
According to the clock tree analysis, the clock source is connected to MPLL (Main PLL) and UPLL (USB PLL) through the selector. FCLK is obtained through MPLL and provided to CPU FCLK is divided by HDIVN and PDIVN to obtain HCLK and PCLK respectively. HCLK is connected to the AHB bus, and then to various high-speed d
[Microcontroller]
【ARM bare board】S3C2440 clock setting and analysis
S3c2440 bare metal program [1] Marquee
From the JZ2440v2 schematic diagram, we can see that: nLED1--- GPF4,nLED2--- GPF5,nLED3--- GPF6 S3C2440 chip manual about IO port configuration: code: #define GPFCON (*(volatile unsigned long *)0x56000050) #define GPFDAT (*(volatile unsigned long *)0x56000054) #define Led1_On      ~(1 4) #define Led1_Off   
[Microcontroller]
S3c2440 bare metal program [1] Marquee
S3C2440 development environment setup (Ubuntu)
My operating system is Ubuntu 1404. You can use the following command to view the system version cat /etc/issue Install, configure, and start the ftp service sudo apt-get install vsftpd Modify the vsftpd configuration file /etc/vsftpd.conf and remove the “#” in front of the following lines. #local_enable=YES #writ
[Microcontroller]
U-boot porting on mini2440-S3C2440 (1) - Development environment setup - Cross-compilation toolchain installation
When compiling U-boot for mini2440, to compile an executable file -bin that can be used on the ARM platform, you must first install the cross-compilation tool chain in Ubuntu. Because I use the development board of Friendly Arm, I use the tool chain that has been made. Of course, you can also make your own tool chain:
[Microcontroller]
U-boot porting on mini2440-S3C2440 (1) - Development environment setup - Cross-compilation toolchain installation
Burn the kernel + burn the file system (JZ2440-S3C2440)
(I) Use DNW to burn the kernel 1. Set the development board to NOR boot, connect the USB-serial cable (USBcom1 port on the development board --- USB port on the PC), Use another USB cable to connect the PC and the development board's USB port (USB port on the development board --- USB port on the PC). Power on, use S
[Microcontroller]
Burn the kernel + burn the file system (JZ2440-S3C2440)
Qinheng 8-bit USB device microcontroller: CH552 overview
Overview The CH552 chip is an enhanced E8051 core microcontroller compatible with the MCS51 instruction set. 79% of its instructions are single-byte single-cycle instructions, and the average instruction speed is 8 to 15 times faster than the standard MCS51. CH552 supports the highest system frequency of 24MHz, buil
[Microcontroller]
Qinheng 8-bit USB device microcontroller: CH552 overview
Engineers modify AirPods Pro and change Lightning port to USB-C port
In order to improve the repairability of Apple AirPods Pro, hardware prototyping consultant Ken Pillonel switched the Lightning charging port to a USB-C port by 3D printing the charging box shell. The foreign repair team iFixit gave Apple AirPods Pro a repairability score of 0 (out of 10, the higher the score, the e
[Mobile phone portable]
Engineers modify AirPods Pro and change Lightning port to USB-C port
[Supplement] Detailed analysis of the s3c2440 startup process
The 2440 startup process is a difficult point and not easy to understand. The understanding of the 2440 startup process affects the subsequent analysis of the bare metal code execution process, thus showing the importance of the 2440 startup process. 2440 startup mode and startup mode selection Search for map in the
[Microcontroller]
[Supplement] Detailed analysis of the s3c2440 startup process
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号