CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

UART problems on 2620
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
object01



Joined: 13 May 2004
Posts: 90
Location: Nashville, TN

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Nov 11, 2004 10:22 am     Reply with quote

FYI, I observed that PCH reports TRISC as 0b11111111 during execution, so I added the following instruction,

Code:
*0xf94=0b10111111;


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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Nov 15, 2004 10:16 am     Reply with quote

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







PostPosted: Mon Nov 15, 2004 10:59 am     Reply with quote

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 ?
PostPosted: Tue Nov 16, 2004 12:29 pm     Reply with quote

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 ! Shocked Laughing

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 ?
PostPosted: Tue Oct 11, 2005 5:14 am     Reply with quote

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 ! Shocked Laughing

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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