PDA

View Full Version : Discussion Changing Pic OTP device for a FLASH one


FelippeRocco
Sep 30, 2008, 07:35 PM
Hello Guys, I'm building a decoder for model railroad locomotives and I'm in doubt if can I simply change the pic12CE519 for a pic12F519 doing this:

change this:
LIST P=12CE519, R=DEC
INCLUDE <P12CE519.INC>
__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_OFF & _IntRC_OSC

for this:
LIST P=12F519, R=DEC
INCLUDE <P12F519.INC>
__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_OFF & _IntRC_OSC

and let the the same for the rest of the program

It works when you do with pic12C509 to pic12F509, but I don't know if the CE family have some differences for the C or if its just diferent names for the same family (cause it uses the same datasheet)

Thanks

Chippie
Oct 01, 2008, 04:55 AM
Changing to a flash device has the advantage that if it doesnt work then at least you know it doesnt and havent lost anything...as the pic is reprogammmable as opposed to the otp device...

Try it, you got nowt to to lose

Acetronics
Oct 01, 2008, 07:26 AM
Hi,

Does that sounds something to you ... ???

http://forum.microchip.com/tm.aspx?m=371062

Answer is "RTFM" ... Will you "Read Those F... Datasheets" !!!

Alain

FelippeRocco
Oct 02, 2008, 01:23 AM
Alain,
Crocco on microchip forum is ME...if you read the thread on that forum you'll notice that I'm not a good programmer, so I probably won't notice the need of that kind of changes in the main program.
Here's a modeling forum and I'm not asking for help in programming, I just ask if i can do simple changes and if it will work like in other lines of Microcontrolers of the same brand.
Try to be more polite in yours replies.

Acetronics
Oct 02, 2008, 03:46 AM
Hi, Rocco

AS we do not have your work under the eyes ...

HOW do you want us to see which internal resources of the PIC you have used ... that have to be modified.

SO, the ONLY answer can be " READ THE DATASHEETS " !!!

is this polite enough for you ????????????????????????????

Have a nice day.

Alain