Testing For Timer??

General discussion on mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Fritzables
Posts: 61
Joined: 07 Jun 2008 13:20
Location: Brisbane AUSTRALIA

Testing For Timer??

#1 Post by Fritzables » 18 Jul 2008 12:24

Is it possible to test to see if the Timer is running?

For example, can I use something like: If TMR1 = ???? Then... ??

Fritzables.

bt
Posts: 217
Joined: 10 Nov 2005 23:08
Location: Oregon, USA
Contact:

#2 Post by bt » 18 Jul 2008 16:16

The answer is "yes", you can test several ways; check the flag, display a timer count value... but, the mot important thing is to understand how times work.

Read mE's free online book and/or go to Microchip and look at DS51682A (you can search thier documentation database for it). It's at good timer tutorial (there are two parts, so locate both of them). Although it's writen for 8-bit pic's 99% applies to dsPic.

bt

Fritzables
Posts: 61
Joined: 07 Jun 2008 13:20
Location: Brisbane AUSTRALIA

#3 Post by Fritzables » 19 Jul 2008 08:33

G'Day bt,

Thanks for the advice.

Fritzables.

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 General”