I have made a script to Power up 2 7 segment displays (common anode)
with
Port A to control the common anode part using a 2N3906 pnp BJT.
Port B power up the cathode part of the 7 seg.
Is this script correct? Its my first time programming one, and none of the lights light up. I am having a headache now. lolz.
;*******************************;
; Pressure Sensor Program ;
; Oretega 6/4/2008 ;
;*******************************;
list p=16F877A
#include p16F877A.inc
; The start of the main program
Main:
__CONFIG _CP_OFF & _WDT_OFF & _HS_OSC & _LVP_OFF & _BODEN_OFF
org 0
PORTA equ 00h
PORTB equ FFh
END
with
Port A to control the common anode part using a 2N3906 pnp BJT.
Port B power up the cathode part of the 7 seg.
Is this script correct? Its my first time programming one, and none of the lights light up. I am having a headache now. lolz.
;*******************************;
; Pressure Sensor Program ;
; Oretega 6/4/2008 ;
;*******************************;
list p=16F877A
#include p16F877A.inc
; The start of the main program
Main:
__CONFIG _CP_OFF & _WDT_OFF & _HS_OSC & _LVP_OFF & _BODEN_OFF
org 0
PORTA equ 00h
PORTB equ FFh
END