Pumpkin, Inc.

Pumpkin User Forums

Timer

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

Timer

Postby helge » Mon Nov 10, 2003 4:23 am

I am using salvo on a PIC 18F452 and I need to use timer0 for external clock input.

I am wondering if it is a hard task to reconfigure Salvo to use an other timer than timer0 as system timer?

helge
 
Posts: 3
Joined: Mon Nov 10, 2003 12:00 am

Re: Timer

Postby aek » Mon Nov 10, 2003 5:08 am

quote:
I am wondering if it is a hard task to reconfigure Salvo to use an other timer than timer0 as system timer?
Absolutely.

Salvo's system timer is not tied to any particular hardware timer -- you can call OSTimer() from anywhere. We use Timer0 in the various examples because it's common to PIC16 and PIC18, and present in nearly every PIC. You can use Timer1 or Timer2 if you prefer ...

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 2 guests

cron