preethin
Newbie level 5
- Joined
- May 21, 2013
- Messages
- 10
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,344
how to load the values in timer1 and also how to reload it for every 500ms
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 //Timer1 //Prescaler 1:2; TMR1 Preload = 25535; Actual Interrupt Time : 10 ms //Place/Copy this part in declaration section void InitTimer1(){ T1CON = 0x11; TMR1IF_bit = 0; TMR1H = 0x63; TMR1L = 0xBF; TMR1IE_bit = 1; INTCON = 0xC0; } void Interrupt(){ if (TMR1IF_bit){ TMR1IF_bit = 0; TMR1H = 0x63; TMR1L = 0xBF; //Enter your code here } }
how to load the values in timer1 and also how to reload it for every 500ms
Yes. I think you are right Golden Electronics. But I am getting 0x0BDB and not 0x0BDC for timer values.