OK so I just got my Botrics board which runs a PIC 16F877A.
I ran their test program that makes the LEDs flash back and forth.
But now I wanted to write my own test for it. The idea is to have both LEDs out till you press one of the buttons.
After you press one of the buttons, the corresponding light should go on. *BUT* nothing happens.
Here is my .ASM
LIST P=16f877, R=DEC
ScratchPad EQU 0x20
;literal constants defined for cerebellum
board_button1 EQU 4
board_button2 EQU 5
board_LED1 EQU 0
board_LED2 EQU 2
bsf STATUS, RP0
bcf OPTION_REG, 7
bcf STATUS, RP0
btfsc PORTB, board_button1
bsf PORTB, board_LED1
btfsc PORTB, board_button2
bsf PORTB, board_LED2
and here is my .HEX
SO....am I not setting up the Linker correctly in MP-LAB or am i not programing the pic correctly with regards to the input and output from PORTB
and how do you code interupts BTW? I'm kinda flying by the seat of my pants here, so sorry for the request for massive amounts of info here.
Reference to Cerebellum site http://www.botrics.com/support/cereb/manual/chapter3/3-7-user-devs.html