Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

help! RS232 and serin signal corrupted

Status
Not open for further replies.

huanyong

New Member
i am using VB to send data such as $#23#89#89 to PIC through rs232. unfortunately sometime my signal is corrupted.... is there any solution to solve this problem?
 
What results are you getting.....? What side is the corrupt data showing and how can you tell that?

How are you connections....????

We need more info... same baud rate? Voltage level shifter? , 8N1? PIC Code?

Ivancho
 
Here are some notes from the PIC16F87X datasheet to be aware of:

If bit OERR is set, transfers from the RSR register to the RCREG register are inhibited, so it is essential to clear error bit OERR if it is set.
Also,
Overrun error bit (OERR bit) has to be cleared in software. This is done by resetting the receive logic (CREN is cleared and then set).
If your receiver stops receiving data, you should check bit OERR in the RSR register if the receiver has been overrun and clear the error by resetting the CREN bit and re-enabling it after purging the FIFO.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top