Hello Robert,
When compiling the Blinky code I get these ASM errors, using PBP3 (MPLABX IDE) with PIC16f628. Any ideas on the errors?
![]()
Hello Robert,
When compiling the Blinky code I get these ASM errors, using PBP3 (MPLABX IDE) with PIC16f628. Any ideas on the errors?
![]()
as the error message suggests , add these lines to your code
wsave VAR BYTE $70 SYSTEM ' location for W if in bank0
wsave1 VAR BYTE $A0 SYSTEM ' location for W if in bank1
wsave2 VAR BYTE $120 SYSTEM ' location for W if in bank2
I've never used the Button command before but here's something simple to try.
You'll probably need to modify your readbutton routines so it returns to the Main loop after testing for button activity.
Code:x VAR BYTE main: High LED5 ' Turn on LED connected to PORTB.0 FOR x = 0 TO 250 ' Loop here for 1 second while monitoring PAUSE 4 GOSUB readbutton1 GOSUB readbutton2 NEXT x Low LED5 ' Turn off LED connected to PORTB.0 FOR x = 0 TO 250 ' Loop here for 1 second while monitoring PAUSE 4 GOSUB readbutton1 GOSUB readbutton2 NEXT x GOTO main readbutton1: Button bt1,0,40,0,B1,0,readbutton2 ' main instead of redabutton2? Toggle LED1 ' Toggle LED if pressed RETURN readbutton2: Button button2,0,40,0,B2,0,readbutton1 ' main instead of redabutton1? Toggle LED2 ' Toggle LED if pressed RETURN END
Louie
just read the "DT interrupts" file comments header....
explanation is there !
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks