ghead
Member level 2
Hi all I've written a volt meter program (in .asm) for use in my car using PIC16F506 (this is first time using '506)
when i run the following code CH0-1 of PORTB and PORTC don't latch at all. I've attached whole program as well as i'm not 100% on my layout.
Cheers for any help
when i run the following code CH0-1 of PORTB and PORTC don't latch at all. I've attached whole program as well as i'm not 100% on my layout.
Code ASM - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 MAIN ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; movlw 0xFF movwf PORTC movlw 0xFF movwf PORTB call del_3 ;RC0-1 AND RB0-1 DON'T GO HI HERE????? call del_3 ;ALL BUT RB2-3 SHOULD OUTPUT A HI........ call del_3 call del_3 clrf PORTC clrf PORTB SUB call ADREAD call CONADR call CONDISP call DISPLAY GOTO SUB
Cheers for any help