Please anyone can guide me using DOS(BIOS) to do interfacing with my uC via USB? I'm using AT89C52 microcontroller. It just a simple testing application for turn ON/OFF LED control by DOS program but is using USB interface. I wish to write a C/C++ program to control it.
I had the same task some months before - never finished it.
I can share the following: You have allready the DOS program and you send it via USB - that means that you can control USB via DOS or you use windows for controlling the port?
One other option is to build USB-to-RS-232 bridge based on the CP2102 (≈U$5) ..
Here is it's data sheet: **broken link removed**
including COMxx and USBxx drivers (WIN for sure, DOS - ???) ..
To start with, don't worry about the following control pins:
suspend, suspend\, RTS, CTS, DTR, DSR, RI and DOD ..
Connect TxD and RxD directly to 89S52 and .. off you go ..
I can share the following: You have allready the DOS program and you send it via USB - that means that you can control USB via DOS or you use windows for controlling the port?
Sorry, I don't have the DOS program yet. So, try to search for it. But i'm not sure DOS/DIOS can running USB not!! Did you have this experience before?
I have no software or routine for this, but I think that you can easily find something if you google !
As I told you I haven't created such an application. I did some search though. I can suggest the following:
- Output from RS232 of the PC using the DOS.
- make a RS232 to USB application ( this is easy).
- Create the reverce application on the other side. Input RS232 to your uC and wright the source code for the rest of the application.
I think this way you will demonstrate full knowledge of RS232-USB-RS232 conversion with hardware and programming at the same time.