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.

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.
 

dainis

Advanced Member level 4
Joined
May 15, 2001
Messages
1,126
Helped
53
Reputation
106
Reaction score
9
Trophy points
1,318
Activity points
9,268
Re: Win XP & serial port

amtalan said:
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.

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.
 

tlp71@hotmail.com

Full Member level 4
Joined
May 14, 2002
Messages
220
Helped
6
Reputation
12
Reaction score
2
Trophy points
1,298
Activity points
1,596
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
 

Mr_Programmer

Full Member level 3
Joined
Feb 21, 2002
Messages
153
Helped
9
Reputation
18
Reaction score
5
Trophy points
1,298
Activity points
1,424
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top