Author Topic: EUSART  (Read 1099 times)

0 Members and 1 Guest are viewing this topic.

Offline ribnarkTopic starter

  • Newbie
  • Posts: 4
  • Country: in
EUSART
« on: December 14, 2016, 12:33:07 pm »
Hi,

I am working on a project which requires to setup Asynchronous EUSART communication (Full Duplex) between two micro-controllers (Both PIC16F886). Everything works fine until I  unplug the cable connecting both EUSARTs and then re-plug it. After re-plugging nothing works till I reset anyone of the two micro-controllers. please help me to overcome this issue.

Thanks 
 

Offline Wilksey

  • Super Contributor
  • ***
  • Posts: 1329
Re: EUSART
« Reply #1 on: December 14, 2016, 01:16:49 pm »
Without posting any code or schematics it's hard to determine!

However, are you checking for overflow and framing errors in your UART code?  When unplugging and replugging serial it can cause spurious data on the line.

I assume (hope) you are using a buffer and/or state machine for your comms?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf