help with stopping dspic30f4013??

General discussion on mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
syscom1
Posts: 39
Joined: 06 Jan 2011 18:03

help with stopping dspic30f4013??

#1 Post by syscom1 » 11 Mar 2011 13:07

Hello everyone I'm having difficulties with the 30f4013 DSPIC ran the example of disruption that comes with the compiler that generates an interrupt every 1 second and functions normally. My doubt is how to set these times in DSPIC

* how do I start the timer for other values ​​of time?
for example to generate an interrupt every 1 millisecond in a pic 16F876 clocked at 4 MHz timer1 so I boot:

Code: Select all

 "TMR1L = lo (65535-1000) 'reinicialixa the counter value
 "TMR1H = HI (65535-1000)

 'INTCON =% 11000000
 "t1con =% 11001001 
 "pie1.0 = 1 
But with the 30f4013 DSPIC I can not do ese time how is this setting??
thanks

Post Reply

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