Jump to content

Recommended Posts

I have been trying for the last couple of days to program the 18f24j11. I know there are some problems with the header file included in boostc, but I think I have fixed them. Section of header file is attached.


However, fixing the header file doesn't fix the chip. I still have no life. Program is primitive, but I am just trying to get anything to work. I am using pickit2 to program the chip. No errors when programming.


Is there anything you guys see that is wrong with the code/header? Is there some wierd way to program the chip that is different from other 18f chips? I am using 3.3v power supply, so I know that is not the issue.


Any thoughts on this?



Link to post
Share on other sites
  • 3 weeks later...

try this out instead of your #pragma's:

#pragma config OSC = INTOSCPLL      // Internal osc PLL can be enable/disable
#pragma config CP0 = OFF            // Program memory is unprotected
#pragma config FCMEN = ON           // Enable osc monitor
#pragma config WDTEN = OFF          // Watchdog OFF
#pragma config WDTPS = 512          // 1:512
#pragma config XINST = OFF          // Disable extended instruction set (mandatory)
#pragma config IOL1WAY = OFF        // works either way

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.

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.

  • Create New...