Jump to content
Sign in to follow this  
mityeltu

Pic18F24J11 Probramming Error?

Recommended Posts

mityeltu    0

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?

PIC18F24J11.h.txt

18F24J11-3_3V.cpp

Share this post


Link to post
Share on other sites
joli    0

try this out instead of your #pragma's:

// FUSES
#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

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum 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...
Sign in to follow this  

×