Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

From pic16f877 to pic18f452 in MIKROC

Status
Not open for further replies.

Alex-gat

Newbie level 6
Joined
Jun 14, 2010
Messages
13
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,293
Location
south africa
Activity points
1,361
hi there. I wrote a program in Mikroc for the pic16f877. Now I would like to implement the same application for the pic18f452. Having had a look at the program, I dont see a lot of changes to make, but it still won't compile. Would anyone out there please tell me what I should change or modify before I switch to the other PIC?
 

Have you checked you are initialising the hardware correctly - the two chips
will have different setup procedures I expect.

Your actual application is unlikely to be an issue if you are using the same chip
features and are talking to the new chip correctly.

As malik said you need to post your code to get any real help.

jack
 

you wrote the code and you don't know what the errors are for?

wow!
 

If your intention is only change the PIC & not the code,just change the PIC from the edit box in the project setup window. The error may be due to the uneven bank selection of variables you have used.Just try to reduce the number of variables you are using & it may reduce your errors.
Regards,
Jerin. :)
 

If your intention is only change the PIC & not the code,just change the PIC from the edit box in the project setup window. The error may be due to the uneven bank selection of variables you have used.Just try to reduce the number of variables you are using & it may reduce your errors.
Regards,
Jerin. :)

u think its the variables? I will try and reduce them and play, hopefully it will solve the issue. Just to know, y wud that be a problem, coz the 2d pic is more powerful, i thought that it could handle all the variables
 

Its not the matter of POWER but is the matter of space allocation inside the controller. Uneven allocation of banks may result in truncation of variables used.
Regards,
Jerin. :)
 
i also tried your code for 877 but the same error!!!!!!!!!!!! explicit memory
i think you should check you functions.
 

Its not the matter of POWER but is the matter of space allocation inside the controller. Uneven allocation of banks may result in truncation of variables used.
Regards,
Jerin. :)

Thanx for helping me see the problem from another angle! I managed to figure out what the issue was! With the files that had been created previously when I was still using the 877, I couldnt just change the name of the PIC on the side, I had to make a totally different project file and recompile it with the new settings! Now it's a hundred percent!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top