PDA

View Full Version : 9600 8 n 1 in 9600 7 e 1 out



Peter1960
- 16th June 2005, 04:36
Has anyone tried to convert the data stream above?
ie;
9600 Baud
8 Bits
N o Parity
1 Stop Bit

to

9600 Baud
7 Bits
E ven Parity or O dd Parity
1 Stop Bit

thks

Peter

Melanie
- 16th June 2005, 08:11
Easiest, chose a PIC with a USART... Bits and Parity can be set independantly for the Tx and the Rx and this solution has the best reliability and least software overhead for the job. Once initialised, all you need to do is pick up a byte from the Receive register when it arrives, and drop it into the Transmit register - not exactly a code intensive task! OK... so you need a little routine in the middle to strip-out Bit 8 and replace it with a parity bit, but hey, that's not rocket science either.

Peter1960
- 16th June 2005, 22:51
Thanks Melanie.

I shall experiment!

ps. Have seen the L'amour clip, have lots of money invested in lottery!

pps. Still have problems with RS232 ON & OFF, No problems with any other command, ie Sweep, even ON 1 1 works. Using Internal Osc. Will try with resonator, but curious.

regards

(Hope to be rich soon!)
Peter

Melanie
- 16th June 2005, 23:06
Then you'll have loads of women chasing you... isn't this forum great? Relationship councillors charge money for this... and here you get great advice for free!