 |
 |
| View previous topic :: View next topic |
| Author |
Message |
RLScott
Joined: 10 Jul 2007 Posts: 465
|
|
Posted: Tue Apr 08, 2008 2:43 pm |
|
|
When you look at the TX output on the scope, are you able to confirm that spot where the stop bit is supposed to be really is the beginning of the long pulse? For the purposes of this test, it might be useful to send the same character over and over - something like ']' = 0xD5 = 0b11010101. With this bit pattern, the end of the data (bits 6 and 7) will stick out like a sore thumb after all those alternating 0s and 1s. Then you can focus on what comes immediately after bit 7.
Robert Scott
Real-Time Specialties |
|
 |
dbroker
Joined: 27 Mar 2008 Posts: 8 Location: San Diego CA
|
|
Posted: Tue Apr 08, 2008 3:54 pm |
|
|
| RLScott wrote: | When you look at the TX output on the scope, are you able to confirm that spot where the stop bit is supposed to be really is the beginning of the long pulse? For the purposes of this test, it might be useful to send the same character over and over - something like ']' = 0xD5 = 0b11010101. With this bit pattern, the end of the data (bits 6 and 7) will stick out like a sore thumb after all those alternating 0s and 1s. Then you can focus on what comes immediately after bit 7.
Robert Scott
Real-Time Specialties |
Yes, I can see all of the bits properly within the byte, start, 8 data bits and stop. The problem is after the stop bit, which is always a logic high, the TX line instead of staying high until the next start bit comes along some 5ms later, goes to whatever the LS data bit was in the last byte. Obviously when that next byte does come along the TX line in in the wrong idle state(low instead of high) for the start bit to generate a low going edge. But after that start bit time the bits of that next byte are correct, until the idle time following the stop..... |
|
 |
Matro Guest
|
|
Posted: Wed Apr 09, 2008 1:26 am |
|
|
Did you try the code I posted in my last post and did you try Ttelmah's advice?
Matro. |
|
 |
dbroker
Joined: 27 Mar 2008 Posts: 8 Location: San Diego CA
|
|
Posted: Wed Apr 09, 2008 6:48 pm |
|
|
| Sorry I did not get back to you all quicker, jury duty for a day here. Thanks piripic for running that sim, I do suspect hardware rather than software. Matro, yes, I tried your code as is and numerous other variations, no change, still fails. I even coded up an ASM program to do the same thing, i.e. no library calls, still fails same way. ttelmah's recollection of bum chips, subsequent replacement by microchip and never a mention in errata makes a lot of sense, these chips are all out a batch that is several years old, though we have hundreds of them, most in products that thankfully don't use serial ports at all. But of course the app I am working on does....I have engaged our distributors FAE to help chase microchip support as I have not gotten an answer from them directly yet. I will post a follow up as soon as I hear or come up with anything. In the mean time, THANKS to all for help. |
|
 |
Matro Guest
|
|
Posted: Thu Apr 10, 2008 1:26 am |
|
|
At now, you can just purchase a PIC from a distributor and test with this new one.
You can see if it works better.
Matro |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|