Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Quick question on PIC

Status
Not open for further replies.

bigal_scorpio

Active Member
Hello to all,

Just built a circuit that uses the PIC16F628, and then realised that the one I have is a 628A.

Is the code from the older chip ok to use on the "A" version and do I need to use an "A" include file as opposed to the original one?

I am led to believe that the pins are exact on each version so I think the migration should work circuit wise at least?

Thanks.......Al :confused:
 
Use the A version of the include file. A means it's a silicon revision, but it's the same chip. So the software should still work (like you said the pinouts are the same). But the internal memory mapping might be different from the silicon revision, so use the A version of the include file.
 
Includes

dknguyen said:
Use the A version of the include file. A means it's a silicon revision, but it's the same chip. So the software should still work (like you said the pinouts are the same). But the internal memory mapping might be different from the silicon revision, so use the A version of the include file.

Hi dknguyen,

Thanks for the swift reply, one more question though, since I am just beginning with PICs, where do these elusive Include files come from?

Thanks again........Al :)
 
I thought the A version had comparators while the older version didn't.

You might want to check how the ports are initialised if this is the case.
 
picbits said:
I thought the A version had comparators while the older version didn't.

You might want to check how the ports are initialised if this is the case.
I think the non A version has comparators too for 628.
87x family has no comparator for non A version.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top