Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/18/11 10:01
Read: times


 
#181607 - dsPIC
Responding to: ???'s previous message
The dsPIC is a quite good chip if you know all the bugs in it.
What is your baud rate and your crystal frequency?
if you use a crystal of 7.3728MHz you get 0 errors in baud rate and serial port should work fine. Otherwise you need to make small delay after you transmit each byte so that the stop bit doesn't get shorter and you get framing error.
I designed 7 clocks for a customer few yeas ago, they communicate through serial port via RS-485. The clocks kept working for 2 years then suddenly they stopped working. I tested the transmitter board and it wasn't sending the data correctly. I replaced all components on it including the PIC and it refused to work. With same code I got it working by adding 1msec delay after each byte was sent. I wonder why?
Mahmood


List of 9 messages in thread
TopicAuthorDate
Inconsistency in serial data output            01/01/70 00:00      
   check the SILabs f12x/f13x            01/01/70 00:00      
      will check it out            01/01/70 00:00      
   A what?            01/01/70 00:00      
      Right here:            01/01/70 00:00      
   dsPIC            01/01/70 00:00      
      Crystal of 11.0592MHz            01/01/70 00:00      
      Stop bits            01/01/70 00:00      
         Yes            01/01/70 00:00      

Back to Subject List