вот код и схема
Код: Выделить всё
list p=16F84A ; list directive to define processor
#include <p16F84a.inc> ; processor specific variable definitions
__CONFIG _CP_OFF & _HS_OSC
dl equ 0x0D
dl1 equ 0x0E
org 0x0000 ; processor reset vector
bsf STATUS, RP0
movlw b'00000000'
movwf TRISA
movlw b'00000000'
movwf TRISB
bcf STATUS, RP0
start clrf PORTA
clrf PORTB
movlw b'11111111'
movwf PORTA
movlw b'11111111'
movwf PORTB
call delay
call delay
goto start
delay
movlw .250
ret movwf dl
nop
nop
nop
call rr
decfsz dl
goto ret
return
rr
movlw .250
ret1 movwf dl1
nop
nop
decfsz dl1
goto ret1
return
END - Вложения
-
- 2011-11-26_171244.jpg
- (121.89 КБ) 573 скачивания


