Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 10th November 2003, 03:52 PM   (permalink)
Default help! RS232 and serin signal corrupted

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?
huanyong is offline  
Old 10th November 2003, 04:08 PM   (permalink)
Default

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
ivancho is offline  
Old 10th November 2003, 05:38 PM   (permalink)
Default

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

Quote:
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,
Quote:
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.
__________________
"Having to do with Motion Control"
motion is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 03:45 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker