How to generate square wave with the serial port in Win XP?

Status
Not open for further replies.

amtalan

Junior Member level 3
Joined
Jul 24, 2001
Messages
31
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
176
Win XP & serial port

I need to generate a stable square wave (max frequency 5K) with the serial port.

With a simple program in basic I see an irregular square wave, I think due to the interrupt management.

A solution should be to use DOS but, is possible to do the same task in XP?

Regards

A.
 

Re: Win XP & serial port


Under Windows it is only possible, if you using as output, serial port data bit, enable serial port FIFO, and manipulate with serial data pattern (RS232 data always have start and stop bits) and speed.
 

Re: Win XP & serial port

YOU CAN'T USE DOS ROUTINES IN XP.
TO MAKE A WAVE IS BETTER USE A 555 AND FF.
BYE
 

Re: Win XP & serial port

Hi, I've done a lot of serial communication stuff under DOS and Windows, my personal oppinion is: Forget It!
Even with my DOS real time kernel I'm not able to produce a stable response time for serial communication. The time varries a "little" bit, up to some 10 -50µS!!! But the real time system tells you this.
Take a small micro, and connect this micro via RS232 to your computer. Then the computer will give a short command and say: "Give me 5kHz!" and the micro will produce... If you are fimilar with µ's you can do this in 2 hours. This would be MY way...
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…