Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 14th October 2004, 02:48 PM   (permalink)
Default TMR0 interrupt with 12C508A?

does it worth with this chip?

Thanks...
SnM is offline  
Old 14th October 2004, 02:53 PM   (permalink)
Default Re: TMR0 interrupt with 12C508A?

Quote:
Originally Posted by SnM
does it worth with this chip?

Thanks...
The 12 bit core (low end) PIC's don't have interrupt capability, if you need an 8 pin chip try the more modern 12F675 series, which are 14 bit core (mid-range) devices.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 14th October 2004, 03:09 PM   (permalink)
Default

In most of the cases a simple 12c508 application can get away by manually polling the tmr0 flag. What does your application have to do?
Exo is offline  
Old 14th October 2004, 03:10 PM   (permalink)
Default

thanks for the help again (you have helped me in the past)

I was just playing with my 12C508A code to see if I could get it to work... I only have a few of these chips left, and I'll be moving onto a PIC12F629
soon.

I currently have a long timer running, and I am polling the inputs at the same time. Figured it would be easier to code if I used the TMR0 interrupt. My program works fine, so I'll just go that route when I start using the new chip. Thanks!

BTW, how do you tell what type of core each chip has?

Steve
SnM is offline  
Old 14th October 2004, 03:21 PM   (permalink)
Default

In most of the cases
a pic12 uses a 12 bit core
a pic16 uses a 14 bit core and
a pic18 uses a 16 bit core...

however there are some exceptions (like always).
To check for a particular pic download the datasheet and look at the 'block diagram' (somewhere in the top of the datasheet)
You'll see the memory somewhere and the program bus connected to it, the width of the program bus tells you what core it runs on.
Exo is offline  
Old 14th October 2004, 03:55 PM   (permalink)
Default

Quote:
Originally Posted by Exo
In most of the cases
a pic12 uses a 12 bit core
a pic16 uses a 14 bit core and
a pic18 uses a 16 bit core...

however there are some exceptions (like always).
Yes, the 12F series are 14 bit :?

Makes you wonder why they didn't call them 12, 14 and 16 doesn't it?

Rather like the memory type, 'C' is EPROM (except for the 16C84, which was EEPROM), 'F' is FLASH (except for most of them, which are EEPROM). 'A' on the end signifies a 'later silicon revision', although on some processors (like the 16F877A) it also signifies a move from EEPROM to FLASH (but the 628A is still EEPROM, even though it's later than the 877A).

You've probably all heard the theory that a number of monkeys banging away on typewriters would eventually turn out the complete works of Shakespere - perhaps MicroChip employ the same method for their designations?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 04:02 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker