Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

DOS -> USB -> Microcontroller

Status
Not open for further replies.

Help

Advanced Member level 2
Advanced Member level 2
Joined
Feb 15, 2005
Messages
617
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Activity points
7,065
Hi,

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.

Is it possible to do that?

Thank you.
 

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?

On the other side, you cna take the USB output, change it into RS232 - check this: www.ortodoxism.ro/datasheets/SGSThomsonMicroelectronics/mXytxzy.pdf - then you know the routine for the uC.

I have no software or routine for this, but I think that you can easily find something if you google !

D.
 

    Help

    Points: 2
    Helpful Answer Positive Rating
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 ..

Regards,
IanP
 

    Help

    Points: 2
    Helpful Answer Positive Rating
Hi,
dkace
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 !
May i know which software/routine you don't have?

Thank for your good information. I try to search google also hope can get some info and sources...

IanP
This IC is cheap and easy to use... Thank you very much for your adviced. I will try it.

Hope I can doin a small application for DOS testing.
 

Help,

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.

D.
 

    Help

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top