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

Oddities with RS232 and EEPROM

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jharkins
Guest







Oddities with RS232 and EEPROM
PostPosted: Tue Dec 31, 2002 9:34 am     Reply with quote

First, I'm new to the PIC. I've got the PCWH compiler, an ICD-S box, and an IOSoft ER21 platform (18F452 based). When running from the ICD, all reads from the EEPROM return 0xff. When I enter a number (like an IP of 10.2.2.20) it echos the ascii equivalent, coubling the periods (31302e2e322e2e32w3w33230 in this case). There is no code to do this echoing. Finally, when running the RS232 spits out a bunch of numbers and letters that seem meaningless. It's not complete garbage, it's all valid alphanumeric. But again, there is nothing in the code to print this stuff.

Now the odd part. If I download the code into the PIC and disconnect the ICD, then all works fine. My EEPROM has it's valid data, my RS232 does what I expect, etc.

So, ahhh, what do I look for?

jim

___________________________
This message was ported from CCS's old forum
Original Post ID: 10355
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: Oddities with RS232 and EEPROM
PostPosted: Tue Dec 31, 2002 5:22 pm     Reply with quote

:=First, I'm new to the PIC. I've got the PCWH compiler, an ICD-S box, and an IOSoft ER21 platform (18F452 based). When running from the ICD, all reads from the EEPROM return 0xff. When I enter a number (like an IP of 10.2.2.20) it echos the ascii equivalent, coubling the periods (31302e2e322e2e32w3w33230 in this case). There is no code to do this echoing. Finally, when running the RS232 spits out a bunch of numbers and letters that seem meaningless. It's not complete garbage, it's all valid alphanumeric. But again, there is nothing in the code to print this stuff.
:=
:=Now the odd part. If I download the code into the PIC and disconnect the ICD, then all works fine. My EEPROM has it's valid data, my RS232 does what I expect, etc.
:=
-------------------------------------------------------------
I don't have your development environment, so I can't help
too much. But I'd try to find out what line of code is
causing the problem. You could put a while(1); statement
near the start of your program, and re-compile. Then see
if you still get the garbage out. If not, then move it
down a few lines and try again. Eventually, you should be
able to find the exact line that's causing the problem.

This may or may not help. It might turn out to be some ICD
related problem. But it should get you some more information.
___________________________
This message was ported from CCS's old forum
Original Post ID: 10373
jharkins
Guest







Re: Oddities with RS232 and EEPROM
PostPosted: Sat Jan 04, 2003 6:09 pm     Reply with quote

I got this figured out. First, debugging with the ICD clears out the internal EEPROM. As for the RS232 issue, turned out the pins were shared with the 802.11b card. Taking out the card made RS232 work much better.
___________________________
This message was ported from CCS's old forum
Original Post ID: 10419
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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