Eight-way sequence controller Listp=16f877
Standard Recovery Stud Diode are mainly used for rectifying and switching
It has positive pressure reduction (0.4v -- 1.0v), short reverse recovery time (2-10ns nanosecond), large reverse leakage current, low pressure resistance, generally lower than 150V, and is used in low voltage situations.
Diodes are electronic devices that have two electrodes that allow only a single current to flow in a single direction.Varicap bond (bond) is an electronic adjustable capacitor.Most diodes have a current orientation that we call reading "rectifier".The most common function of a diode is to allow only the current to pass in one direction (called forward bias) and to block in the opposite direction (called reverse bias).
Standard Recovery Stud Diode,Standard Recovery Diode,400V Standard Recovery Diode,Stud Diode YANGZHOU POSITIONING TECH CO., LTD. , https://www.yzpst.com
Include "p16F877.inc"
;------------------------------------------------- -----------
Deyhequ0x23; used by the delay subroutine.
Deylequ0x24
;------------------------------------------------- ------------
;************************************************* ************
Org0x000
Nop
Start
banksel PORTB
clrf PORTB
banksel TRISB
clrf TRISB; Set port B as output.
Main
banksel PORTB; Light B0 bit, displayed in sequence.
bsf PORTB, 0
Call delay
banksel PORTB; Light up B1.
bsf PORTB, 1
Call delay
banksel PORTB; Light up B2.
bsf PORTB, 2
Call delay
banksel PORTB; Light up B3.
bsf PORTB, 3
Call delay
banksel PORTB; Light up B4.
bsf PORTB, 4
Call delay
banksel PORTB; Light up B5.
bsf PORTB, 5
Call delay
banksel PORTB; Light up B6.
bsf PORTB, 6
Call delay
banksel PORTB; Light up B7.
bsf PORTB, 7
Call delay
Call delay
;MOVlw 0x00
;MOVwf PORTB
clrf PORTB
Call delay
banksel PORTB; Light B7 bit, reverse order display.
bsf PORTB, 7
Call delay
banksel PORTB; Light up B6.
bsf PORTB, 6
Call delay
banksel PORTB; Light up B5.
bsf PORTB, 5
Call delay
banksel PORTB; Light up B4.
bsf PORTB, 4
Call delay
banksel PORTB; Light up B3.
bsf PORTB, 3
Call delay
banksel PORTB; Light up B2.
bsf PORTB, 2
Call delay
banksel PORTB; Light up B1.
bsf PORTB, 1
Call delay
banksel PORTB; Light up B0 bit.
bsf PORTB, 0
clrf PORTB
Call delay
Call delay
Goto Main
delay MOVlw 0xff
MOVwf deyh
delay_loop MOVlw 0xff
MOVwf deyl
Delay_loop1 nop
Decfsz deyl
Goto delay_loop1
Decfsz deyh
Goto delay_loop
Return
End