Problem solved.
Well, well. That was a lot of effort for one small error: I had the wrong PIC selected in MicroCode Studio. I remember selecting it before but maybe it got unselected somehow. The...
Type: Posts; User: jgjgjg; Keyword(s):
Problem solved.
Well, well. That was a lot of effort for one small error: I had the wrong PIC selected in MicroCode Studio. I remember selecting it before but maybe it got unselected somehow. The...
When I installed PBP3, I did not installed MPLAB since it was already installed. It just occurred to me that perhaps MPASMWIN was not working because it might be an old version. So I uninstalled...
Hello,
I cannot get this to compile with PBP3:
#config
__CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF &...
Thank you for the explanation. Now I understand. From the 16F88 datasheet: "If the global interrupt is enabled, the program will branch to the interrupt vector (0004h)."
For reference, here is the solution. The LED is toggled once every second by monitoring the TMR1 interrupt flag. 16F88.
Jonathan.
define OSC 20
' SET UP PORTS
TRISB = 101111 ' PORTB.4...
After a few more hours of sifting through forums, I found the answer in this very forum, in Bruce's post (#2): http://www.picbasic.co.uk/forum/showthread.php?t=6943&p=42824#post42824
I'm not...
Hello all. I cannot persuade TMR1 interrupt to toggle an LED. I tried the "ON INTERRUPT...." method and that works fine, toggling the LED 3 or 4 times a second. But I cannot work out how to do this...