zhaniko93
New Member
And Why does the code
give Such waveform?
Code:
list p=16F628A ; list directive to define processor
#include <P16F628A.inc>
errorlevel -302 , -207
__config _CP_OFF & _LVP_OFF & _WDT_OFF & _INTOSC_OSC_NOCLKOUT & _MCLRE_OFF & _PWRTE_ON & _BOREN_OFF
Var equ 0x20
movlw 0x10
movwf Var
movlw 007
movwf CMCON
BANKSEL TRISA
movlw 0x00
movwf TRISA
movwf TRISB
BANKSEL PORTA
movlw 0b00111101
movwf T1CON
clrf PORTB
Start comf PORTB, 1
call Delay
goto Start
Delay Movfw TMR1H
sublw 0xFF
btfss STATUS, Z
goto Delay
clrf TMR1H
decfsz Var
goto Delay
movlw 0x10
movwf Var
retlw 0
end
give Such waveform?