Search found 4 matches

by cclinus
13 Aug 2012 07:18
Forum: mikroC General
Topic: 18f4550 Get 48mhz from 20mhz external crystal
Replies: 4
Views: 2668

Re: 18f4550 Get 48mhz from 20mhz external crystal

4550.jpg
4550.jpg (52.61 KiB) Viewed 2622 times
by cclinus
02 Aug 2012 16:35
Forum: Timer Calculator
Topic: Timer Calculator Application Released!
Replies: 82
Views: 984781

Re: Timer Calculator Application Released!

Hi, Below is the code generate by Timer Calculator. I wonder why PR2 is 248 but not 249. //Timer2 //Prescaler 1:4; Postscaler 1:12; TMR2 Preload = 248; Actual Interrupt Time : 1 ms //Place/Copy this part in declaration section void InitTimer2(){ T2CON = 0x5D; TMR2IE_bit = 1; PR2 = 248; INTCON = 0xC0...
by cclinus
12 Jul 2012 15:34
Forum: mikroC General
Topic: reentracy trick
Replies: 13
Views: 21750

Re: reentracy trick

Hi, Thanks for posting this trick. I found that this trick can be further simplified. void LED_ON(int c){ RD0_bit=1; } #pragma funcall interrupt void interrupt(){ void(*pFun)(int c); pFun=&LED_ON; pFun(1); } void main() { void(*pFun)(int c); pFun=&LED_ON; TRISD=0; PORTD=0; pFun(1); while(1); } Teste...
by cclinus
09 Jul 2012 05:33
Forum: mikroC PRO for PIC General
Topic: ART PIC-TO-PIC
Replies: 13
Views: 3893

Re: ART PIC-TO-PIC

Check this:
4580.jpg
4580.jpg (143.27 KiB) Viewed 3791 times

Go to advanced search