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

18F8620 Port J and ICD-U

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



Joined: 14 Apr 2004
Posts: 12
Location: UK

View user's profile Send private message

18F8620 Port J and ICD-U
PostPosted: Mon Aug 15, 2005 6:56 am     Reply with quote

I am trying to contol bits 6 amd 7 of this port.
What ever I try has no effect on the TRIS or Port
Can you drive this port individually or is some other setting stopping me controlling this port
I am running the latest version of the compiler.
Trying any other port works OK
Look forward to any ideas
Jerry
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Aug 15, 2005 12:49 pm     Reply with quote

Port J can be used for the External Memory Interface, instead of i/o.
The port configuration is affected by the mode that you're running
the PIC in -- microprocessor mode, microcontroller mode, etc.
It can also be affected by the EBDIS bit in the MEMCON register.

The PIC's mode of operation is controlled by these fuse settings:
MCU
CPU
CPU_BB
EMCU
These fuse settings control the settings of the PM1:PM0 bits in
Config register 3L. See the data sheet in Section 23.1 for more
information. CCS uses MCU mode (microcontroller mode) by default
if the mode fuse is not specified. In that case, Port J will operate as an
i/o port.

So, what mode are you running the PIC in ? Answering this will
probably tell how to fix the Port J problem.


This thread has some info on the EBDIS bit.
http://www.ccsinfo.com/forum/viewtopic.php?t=23622
Jerry712731



Joined: 14 Apr 2004
Posts: 12
Location: UK

View user's profile Send private message

PostPosted: Tue Aug 16, 2005 1:14 am     Reply with quote

The problem seems to that the ICDU debugger is showing the wrong memory location for the portj port, looking at the ram shows that it is all OK, and now checking on the hardware it is OK
I am running in MCU mode
Thanks
JJ
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