MCF52211 - Possibility of USB OTG Function to work without connection to PC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCF52211 - Possibility of USB OTG Function to work without connection to PC

647 Views
elizabethjacob
Contributor I

Hi,

I understand that MCF52211 microcontroller has the USB OTG feature which I can use to interface USB peripherals. 

I have a USB Touch Screen Display module which I have to integrate to a PCB to generate the touch inputs as RS232 data. USB to Serial Drivers and cables will not work as we will not be connecting the microcontroller to any PC. This RS232 data will be given to external module specific to work in RS232 mode only..

My query is:

a) Can I use MCF52211 to connect the touch screen to the USB port of this chip.

b) is it necessary that the MCF52211 be connected to PC for the USB OTG functionaity to work

b) Will the HNP and SRP protocol be taken care of without using any driver software for USB OTG 

c) Do we have to write any API Calls or USB OTG related configuration for the IC.

Please note that once the IC is programmed, the PCB will no longer be connected to the PC and only the RS232 data output of the PCB will be taken as input to a different module.

 

Kindly advice.

Regards,

Elizabeth

1 Reply

492 Views
TomE
Specialist II

> a) Can I use MCF52211 to connect the touch screen to the USB port of this chip.

Yes.

> b) is it necessary that the MCF52211 be connected to PC for the USB OTG functionaity to work

No.

> b) Will the HNP and SRP protocol be taken care of without using any driver software for USB OTG 

I don't know. Do you want the port to be able to dynamically switch between Device and Host Mode? It would be simpler to hard-code it to be host-only, or to perform the host/device switch by some external control.

c) Do we have to write any API Calls or USB OTG related configuration for the IC.

I don't know. What API are you using? If you have an API then that implies you're not running "Bare Metal", but are using an OS with drivers that have some defined API. If that is the case then you should be asking questions in a forum specific to that OS. If you're running "Bare Metal" then you need a lot of code to do Host Mode to anything.

Are you using an OS that already supports USB Host Mode? We are using an MCF5235 without an OS and had to buy a USB Stack for it in order to support transferring data to and from memory sticks. We bought the stack from SMX, and it amounted to about 17,000 lines of code without the FAT File System code. That added another 47,000 lines.

Other alternatives that show up on NXP's Support Page for this chip are MQX and FreeRTOS, but the latter doesn't mention USB at all.

Threadx (rtos.com) also have a USB stack that may be worth looking at.

Do you have to use that chip? NXP supplies a "Freescale Bare Metal USB Stack (V5.0)", but it only supports Kinetics/ARM chips. You might be able to convert it to run on MCF with a great deal of work, or find an equivalent. You may be better off using a more modern chip that has a USB port that is supported "out of the box". That may be more important than the chip or even the manufacturer.

Tom