;********************************************************************** ; * ; Filename: edgedetect.asm * ; Date: 11-February-2010 * ; File Version: A * ; * ; Author: Pete Griffiths * ; Company: http://picprojects.org.uk * ; * ; * ;********************************************************************** ; * ; Files Required: P16F628A.INC * ; * ;********************************************************************** ; * ; Notes: * ; * ;********************************************************************** list p=16f628A ; list directive to define processor #include ; processor specific variable definitions errorlevel -302 ; suppress message 302 from list file __CONFIG _CP_OFF & _DATA_CP_OFF & _LVP_OFF & _BOREN_OFF & _MCLRE_ON & _WDT_OFF & _PWRTE_ON & _INTOSC_OSC_NOCLKOUT ; '__CONFIG' directive is used to embed configuration word within .asm file. ; The lables following the directive are located in the respective .inc file. ; See data sheet for additional information on configuration word settings. ;***** VARIABLE DEFINITIONS cblock 0x20 inputs.this_time inputs.last_time edge.detected endc ;********************************************************************** ORG 0x000 ; processor reset vector init movlw 1<