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: December 7, 2012 ;
- ; Version: V1.10 ;
- ;---------------------------------------------------;
- ;---------------------------------------------------;
- ; WEBSITE: www.dysfunctionaltechnologies.com ;
- ; EMAIL: tscarlson@gmail.com ;
- ; ;
- ; You are welcome to use this code as you see fit, ;
- ; however - not to be used in for-profit products ;
- ; unless we have come to a monetary agreement. ;
- ; ;
- ; If this code is used, credit given is appreciated ;
- ;---------------------------------------------------;
- ;---------------------------------------------------;
- ; Description: Common defines, equates, and macros ;
- ; used in all modules ;
- ;---------------------------------------------------;
- ; Code is specific to the PIC12F1840! ;
- ;---------------------------------------------------;
- ;---------------------------------------------------;
- ;---------------------------------------------------;
- LIST P=PIC12F1840 ;
- #INCLUDE <P12F1840.INC> ;
- ;---------------------------------------------------;
- ;---------------------------------------------------;
- ; Configuration ;
- ;---;-----------------------------------------------;
- ; 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 ;
- ;-----------------------------------------------;
- #IFDEF _MAIN_MODULE_ ;
- ;-----------------------------------------------;
- ; Set Configuration Bits ;
- ;-----------------------------------------------;
- __CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF
- __CONFIG _CONFIG2, _WRT_OFF & _PLLEN_OFF & _STVREN_ON & _BORV_LO & _LVP_OFF
- __IDLOCS H'0104' ;
- ;-----------------------------------------------;
- #ENDIF ;_MAIN_MODULE_ ;
- ;---------------------------------------------------;
- ;---------------------------------------------------;
- ; Macros ;
- ;---------------------------------------------------;
- ;---------------------------------------------------;
- ;---------------------------------------------------;
- ; Defines ;
- ;---------------------------------------------------;
- #DEFINE MSB 7 ;
- #DEFINE LSB 0 ;
- #DEFINE MEMORY 0 ;
- #DEFINE FALSE 0 ;
- #DEFINE TRUE -1 ;
- ;---------------------------------------------------;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement