Hi all, I am trying to create a very basic delay using a TMR0 (timer) function as part of a rotating sequence for 4 LED’s with the option to reverse direction. I know I’m almost there but I could do with a little guidance to be honest. I’m using PIC16F84 and datasheet can be downloaded from...
It's okay I've managed to solve it now, but thanks for your help! It should say CALL delay not CALL wait. Also in the subroutine, it should say GOTO down not reset, so that it can keep going back and decrements to create the delay loop
This for microchip PIC 16F84 mid-range 8 bit processor. If u download data sheet all instruction sets are on pg 56. BTFSS means 'bit test, skip if set', so 0 means carry out next instruction and 1 means skip it. DECFSZ means contents of register is decremented by one, and if 0 then skip next...
Hi guys, apparently I've got both a linear and a subroutine programming error in the code below from lines 20-35? Could someone point me in the right direction. I think one might be the 'CALL wait' instruction, which should be 'CALL delay'? Not really sure as new to this, any help would be much...
Hi all, am studying microprocessors as part of an engineering course (level 3). I've found this site useful a few times and maybe I can return the favour!