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.

PIC16 to PIC18, using PIC18F2455 for my current project

Status
Not open for further replies.

johnnykhor

Member level 1
Joined
Dec 2, 2009
Messages
40
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Malaysia
Activity points
1,542
previously i was using PIC16 family.
now, i am trying to switch to PIC18, and i am using PIC18F2455 for my current project.

can anyone help me in the header?
i mean how to start.


eg: in PIC16F877, i put this in the top part of the program

LIST P=16F877A
#include "p16f877a.inc"


__CONFIG _CP_OFF & _WDT_OFF & _HS_OSC & _PWRTE_ON & _LVP_OFF


so, my question is, can i do it in PIC18 too?


LIST P=18F2455
#include "p18f2455.inc"


__CONFIG _CP_OFF & _WDT_OFF & _HS_OSC & _PWRTE_ON & _LVP_OFF


thx in advance for helping.
 

Re: help, i am new in PIC18

You absolutely MUST do that or all the register addresses will be wrong. The '.inc' file holds the cross references of register and pin names to their real numeric values. They are completely different between the two devices.

Brian.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top