Search found 4 matches
- 11 Nov 2010 10:40
- Forum: mikroC General
- Topic: PIC-16F648A how to use Timer0 ??
- Replies: 0
- Views: 1295
PIC-16F648A how to use Timer0 ??
Hi, Can anyone show me how to initialize and use Timer0 on PIC-16F648A I tried something and It wont work? And is it possible to check if specific PIN on PORTA is active? For example I have some stuff sended from RA1,RA3 and I want to check if RA4/T0CKI(I guess thats the timer) is getting logical 1....
- 27 Aug 2010 03:33
- Forum: mikroC General
- Topic: Need help with Interrupts PIC-16F648A
- Replies: 3
- Views: 1924
Re: Need help with Interrupts PIC-16F648A
I also tried with this simple schematic: http://a.imageshack.us/img827/6324/problem2n.png And this code: void main() { INTCON.GIE = 1; //Ukljuci sve Interrupte INTCON.INTE = 1; //Ukljuci RB0/INT interrupt OPTION_REG.INTEDG = 1; //interrupt on rising edge of RB0/INT pin. TRISA = 0xFF; PORTA = 0x00; P...
- 27 Aug 2010 02:54
- Forum: mikroC General
- Topic: Need help with Interrupts PIC-16F648A
- Replies: 3
- Views: 1924
- 26 Aug 2010 21:35
- Forum: mikroC General
- Topic: Need help with Interrupts PIC-16F648A
- Replies: 3
- Views: 1924
Need help with Interrupts PIC-16F648A
Hi, I need help with interrupts, I know that they pause the executing of main program and execute the code under the interrupt function. I was trying to flash a led on PORTB = 0x80 the RB7 bit. And it didn't work here's the code: void main() { INTCON.GIE = 1; //Ukljuci sve Interrupte INTCON.INTE = 1...