12.07.2015 Views

EK-6 - 320Volt

EK-6 - 320Volt

EK-6 - 320Volt

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

038039040041042043044045046047048049050051052053054055056057058059060061062063064065066067068069070071072073074075076077seg79;Pattern 9 set adrseg7a;Pattern A set adrseg7b;Pattern B set adrendcra1 equ h'01' ;RA1 port designationra2 equ h'02' ;RA2 port designationra3 equ h'03' ;RA3 port designationra5 equ h'05' ;RA5 port designationccp1 equ h'02' ;CCP1(RC2) designationseg7_0 equ b'01000000' ;-gfedcba Pattern 0seg7_1 equ b'01111001' ; Pattern 1seg7_2 equ b'00100100' ; Pattern 2seg7_3 equ b'00110000' ; Pattern 3seg7_4 equ b'00011001' ; Pattern 4seg7_5 equ b'00010010' ; Pattern 5seg7_6 equ b'00000010' ; Pattern 6seg7_7 equ b'01111000' ; Pattern 7seg7_8 equ b'00000000' ; Pattern 8seg7_9 equ b'00010000' ; Pattern 9seg7_a equ b'01111111' ; Detect errorseg7_b equ b'00100011' ; Illegal int;**************** Program Start ***********************org 0 ;Reset Vectorgoto initorg 4 ;Interrupt Vectorgoto int;**************** Initial Process *********************init;*** Port initializationbsf status,rp0 ;Change to Bank1movlw b'00000001' ;AN0 to input modemovwf trisa ;Set TRISA registerclrf trisb ;RB port to output modemovlw b'00000100' ;RC2/CCP1 to input mode66

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!