Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;---------------------------------------------------;
- ; Name: COMMON.INC ;
- ; Use: Common Usage Include File ;
- ;---------------------------------------------------;
- ; Copyright: (C) 2012 DTI ;
- ; Dysfunctional Technologies, Inc. ;
- ; All Rights Reserved ;
- ;---------------------------------------------------;
- ; Author: Timothy S. Carlson ;
- ; Dysfunctional Technologies, Inc. ;
- ; Date: March 19, 2012 ;
- ; Version: V1.04 ;
- ;---------------------------------------------------;
- ; Description: Common defines, equates, and macros ;
- ; used in all modules ;
- ;---------------------------------------------------;
- ; Code is specific to the PIC12F629! ;
- ;---------------------------------------------------;
- LIST P=12F629 ;
- #INCLUDE <P12F629.INC> ;
- ;
- ;-----------------------------------------------;
- ; Set default radix to DECIMAL (Was HEX) ;
- ;-----------------------------------------------;
- RADIX DEC ;
- ;-----------------------------------------------;
- ; Suppress message 207 from list file ;
- ; (Found label after column 1) ;
- ;-----------------------------------------------;
- ; ERRORLEVEL -207 ;
- ;-----------------------------------------------;
- ; Suppress message 302 from list file ;
- ; (Register in operand not in bank 0) ;
- ;-----------------------------------------------;
- ERRORLEVEL -302 ;
- ;-----------------------------------------------;
- ; Set configuration registers ;
- ;-----------------------------------------------;
- __CONFIG _CPD_OFF & _CP_OFF & _BODEN_OFF & _MCLRE_OFF & _PWRTE_ON & _WDT_OFF & _INTRC_OSC_NOCLKOUT
- ;---------------------------------------------------;
- ;---------------------------------------------------;
- ; Macros ;
- ;---------------------------------------------------;
- ;---------------------------------------------------;
- ;---------------------------------------------------;
- ; Defines ;
- ;---------------------------------------------------;
- #DEFINE MSB 7 ;
- #DEFINE LSB 0 ;
- #DEFINE MEMORY 0 ;
- ;---------------------------------------------------;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement