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.

can I use a PIC12F510 instead of 12f629 to make the RGB led mood light driver???

Status
Not open for further replies.

mquintero

New Member
Hi...

I need to know if I can use a PIC12F510 instead of 12f629 to make the RGB led mood light driver??? This is because I have some of them.

Is this PIC compatible with this project ???
 
Yes the PIC12f510 will do the job. Just don't expect to drop the program from the 12f629 into the 12f510, they are two very different microcontrollers. If the program is a high level language like C or Basic then minimal changes might be possible?
 
If the software uses Timer1 then the answer is no as the 510 doesn't have it.

Mike.
 
This same question was emailed direct to me and I assumed he was referring to one of my projects RGB LED mood light driver

Since the 12F510 uses the 12 bit instruction set it's short of a couple of instruction from the 14-bit instruction set, ADDLW and SUBLW come to mind along with RETURN; you can only use RETLW which means you can't return a result in the W-register.

It only has a two level deep stack

There is no PCLATH register so the table lookup code would need rewriting

And finally, no interrupts.
 
Whoops, didn't realise it was a 12 bit part. I really wonder why Microchip started naming 14 bit parts starting with 12.

Mike.
 
Whoops, didn't realise it was a 12 bit part. I really wonder why Microchip started naming 14 bit parts starting with 12.


I know, it's bizzare, must have been someone important who came up with that decision, otherwise it would never have seen the light of day.

Just for good measure there is the 10F range which are also 12-bit and now they have the 8 pin 12F1822 enhanced 14-bit part which joins all the other 14-bit 16F parts :)
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top