Assembler PIC16F88 - LED, Button

Discussion in 'Programmer's Corner' started by PERH, Mar 10, 2011.

  1. PERH

    Thread Starter New Member

    Jan 27, 2011
    Hey I am new to this completely and i am having some difficulty in getting my code to work and cant seem to understand where i have gone wrong.

    This is my code and is simply just using a switch to turn on an LED plus a reset button and LED to turn it off, my led is connected to line Ra3 my button is connected to Rb3, Rb4 goes to the rest button and Rb5 goes to the Reset LED

    start call settest
    call buttontest
    goto start

    Any help and advise would be much appreciative.
    Many thanks
    Last edited: Mar 10, 2011
  2. debjit625

    Well-Known Member

    Apr 17, 2010
    Thats not the code its just a call to assembly sub routine ,post the code for the sub routine "buttontest" then we may help.......

    Good luck and welcome to AAC