serial port oscillator

Status
Not open for further replies.

david90

Advanced Member level 1
Joined
May 5, 2004
Messages
423
Helped
9
Reputation
18
Reaction score
4
Trophy points
1,298
Activity points
3,611
is it possible to use the serial port as a clock source and controlling the freq with a program?

What would be the max frequency?
 

If you are referring to an ordinary UART serial port, I suppose you could configure it as 8-bit, no parity, one stop, and then transmit a continuous stream of 'U' characters. That would produce a square wave at frequency baudrate/2. The possible frequencies would depend on your serial port's available baud rates. Beware that your software must never allow the transmitter to become empty, or your clock will suffer gaps. This doesn't sound like a great idea.
 

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