 |
 |
| View previous topic :: View next topic |
| Author |
Message |
object01
Joined: 13 May 2004 Posts: 90 Location: Nashville, TN
|
|
Posted: Thu Nov 11, 2004 10:22 am |
|
|
FYI, I observed that PCH reports TRISC as 0b11111111 during execution, so I added the following instruction,
early in the program to account for the TX pin needing to be 0, per the 2620 errata. The Peripherals tab reports TRISC as equal to this value for the life of the program, but there's no change in the data corruption.
--
Jeff S. |
|
 |
object01
Joined: 13 May 2004 Posts: 90 Location: Nashville, TN
|
|
Posted: Mon Nov 15, 2004 10:16 am |
|
|
We've finally discovered that the 2620s we were using were from a prototype lot. Something is wrong with the silicon. We've tried on a new 2620 with the latest fixes, and it works fine.
Thanks for everybody's help!
--
Jeff S. |
|
 |
Tut Guest
|
|
Posted: Mon Nov 15, 2004 10:59 am |
|
|
I don't know if this is related, but I found a UART problem with the PIC18F4620 where when sending strings, the second and subsequent characters were garbage.
The solution: With the new processor (PIC18F4620), before I set TXEN, I must test to be sure it is not already set (1) or it will corrupt the data currently being transmitted out the UART.
Good luck,
Tut |
|
 |
Guest
|
| new ESCI feature ? |
Posted: Tue Nov 16, 2004 12:29 pm |
|
|
| Tut wrote: | I don't know if this is related, but I found a UART problem with the PIC18F4620 where when sending strings, the second and subsequent characters were garbage.
The solution: With the new processor (PIC18F4620), before I set TXEN, I must test to be sure it is not already set (1) or it will corrupt the data currently being transmitted out the UART.
Good luck,
Tut |
My story: 18F4620 + PCWH 3.212, simple code #use rs232(baud, xmit, rcv) and printf("hello world") worked for F452 but refuse to work with 4620
Workaround: Tools -> Device Editor -> 18F4620 -> UART -> ESCI -> choose False !
I don't know what's good with ESCI, all I need is simple SCI, so, that's it.
BTW, I have to remove the #zero_ram to make my LCD happy. I don't know why, it is just a quick workaround.
Best wishs |
|
 |
Guest
|
| Re: new ESCI feature ? |
Posted: Tue Oct 11, 2005 5:14 am |
|
|
| Anonymous wrote: | | Tut wrote: | I don't know if this is related, but I found a UART problem with the PIC18F4620 where when sending strings, the second and subsequent characters were garbage.
The solution: With the new processor (PIC18F4620), before I set TXEN, I must test to be sure it is not already set (1) or it will corrupt the data currently being transmitted out the UART.
Good luck,
Tut |
My story: 18F4620 + PCWH 3.212, simple code #use rs232(baud, xmit, rcv) and printf("hello world") worked for F452 but refuse to work with 4620
Workaround: Tools -> Device Editor -> 18F4620 -> UART -> ESCI -> choose False !
I don't know what's good with ESCI, all I need is simple SCI, so, that's it.
BTW, I have to remove the #zero_ram to make my LCD happy. I don't know why, it is just a quick workaround.
Best wishs |
|
|
 |
|
|
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
|