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 support@ccsinfo.com

PIC18F87J50 pin J7

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



Joined: 08 Sep 2006
Posts: 182

View user's profile Send private message Send e-mail

PIC18F87J50 pin J7
PostPosted: Mon Sep 23, 2013 4:42 am     Reply with quote

Hello,
I want to use the pin J7 as a digital output.
But I think is is acting as /UB.
But in the CCS compiler I can't find the #FUSES to use this pin as digital output.
I see in the datasheet that is is possible...... but do I have to do something different??

Regards,
Jody
Ttelmah



Joined: 11 Mar 2010
Posts: 19224

View user's profile Send private message

PostPosted: Mon Sep 23, 2013 8:00 am     Reply with quote

That's the 'mode'. Microcontroller/Extended microcontroller.
Look in the table 'fuses.txt' that comes with the complier.
MCU

also add:

setup_external_memory(EXTMEM_DISABLE);

to the code.

When 'extended mode' is selected, the external memory bus is always enabled (EMCU, or any of the other variants of this). With MCU, is becomes controllable by the EBDIS bit, which the setup_external_memory function controls.

Best Wishes
Jody



Joined: 08 Sep 2006
Posts: 182

View user's profile Send private message Send e-mail

PostPosted: Tue Sep 24, 2013 3:30 am     Reply with quote

Thanks I got it working now!!
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