Interruption Timer

An area to discuss 16-bit PIC specific problems and examples

Moderator: Benj

Post Reply
Posts: 1
Joined: Fri Mar 02, 2018 9:29 am

Interruption Timer

Post by Irobot »


I am currently working on a project, involving the use of a TIMER, in order to make a motor turn and detect the battery level (Link here is the demo, the real one hast to count 1 day before activating the motor)

There are a lot of things I don't understand.

1) I stil do not understand how the Prescaler calculated

I am using a 32768Hz quartz

2) The second problem is that once I am in the main loop, the TIMER (using TIMER1)does not increase (+1). I had to use a MACRO for it. Is that normal? What should I change ?

3) Since I am new to programming do you have some tips to improve my program efficiency which is like a dynosaur currently xp ahah (I'd like to become a roboticist)

My program is in french so xP hope you won't mind
Carroussel Journalier Programme3 démoF.fcfx
(60.49 KiB) Downloaded 109 times

Post Reply