Jump to content

Got It To Compile.... Need Additional Help Please!


Recommended Posts

Okay so i solved the problem getting my code to compile. I am using MPLAB v7.50 with a PICSTART Plus programmer.

 

Here is my code:

 

#include <system.h>
#pragma CLOCK_FREQ 1000000;


main()
{
osccon=0x41;
trisc=0x00;

while (1)
{
	portc=0x01;		
}	
}

 

I set my clock as internal with Fosc/4 on RC6. I can check RC6 and I am getting the correct clock.

 

When I check RC0 i am not getting any voltage.

Anyone see something I am doing wrong?

Link to post
Share on other sites
On the 16F913 port c is dual purpose with the LCD

 

have a look at page 103 of the data sheet, though LCDEN is disabled on power up VLCDEN is enabled. Clearing this should release portc.

 

Sorry I forgot.  :)  It is the PIC16F913.

 

Thanks

Yep you were right!

 

Thank you guys!

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...