Timers for pic32

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
engahmed
Posts: 92
Joined: 14 May 2013 19:13

Timers for pic32

#1 Post by engahmed » 02 Oct 2018 22:14

I need to use 4 timer in pic 32mx460512l I will used timer calculator program m
My issue is
I will write long function with delays in each timer like rtos ?
Is that possible?if not how can start rtos for pic32

Thanks

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Timers for pic32

#2 Post by filip » 12 Oct 2018 08:42

Hi,

You can use implement long delays using timer interrupt as a base.
Declare a counter variable that will increment on every second (for example) and then you set longer periods, like minutes.

Regards,
Filip.

Post Reply

Return to “mikroC PRO for PIC32 General”