Advertisement
Guest User

Common.INC V1.10

a guest
Dec 20th, 2012
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. ;---------------------------------------------------;
  2. ;---------------------------------------------------;
  3. ; Name: COMMON.INC ;
  4. ; Use: Common Usage Include File ;
  5. ;---------------------------------------------------;
  6. ; Copyright: (C) 2012 DTI ;
  7. ; Dysfunctional Technologies, Inc. ;
  8. ; All Rights Reserved ;
  9. ;---------------------------------------------------;
  10. ; Author: Timothy S. Carlson ;
  11. ; Dysfunctional Technologies, Inc. ;
  12. ; Date: December 7, 2012 ;
  13. ; Version: V1.10 ;
  14. ;---------------------------------------------------;
  15. ;---------------------------------------------------;
  16. ; WEBSITE: www.dysfunctionaltechnologies.com ;
  17. ; EMAIL: tscarlson@gmail.com ;
  18. ; ;
  19. ; You are welcome to use this code as you see fit, ;
  20. ; however - not to be used in for-profit products ;
  21. ; unless we have come to a monetary agreement. ;
  22. ; ;
  23. ; If this code is used, credit given is appreciated ;
  24. ;---------------------------------------------------;
  25. ;---------------------------------------------------;
  26. ; Description: Common defines, equates, and macros ;
  27. ; used in all modules ;
  28. ;---------------------------------------------------;
  29. ; Code is specific to the PIC12F1840! ;
  30. ;---------------------------------------------------;
  31. ;---------------------------------------------------;
  32.  
  33. ;---------------------------------------------------;
  34. LIST P=PIC12F1840 ;
  35. #INCLUDE <P12F1840.INC> ;
  36. ;---------------------------------------------------;
  37.  
  38. ;---------------------------------------------------;
  39. ; Configuration ;
  40. ;---;-----------------------------------------------;
  41. ; Set default radix to DECIMAL (Was HEX) ;
  42. ;-----------------------------------------------;
  43. RADIX DEC ;
  44. ;-----------------------------------------------;
  45. ; Suppress message 207 from list file ;
  46. ; (Found label after column 1) ;
  47. ;-----------------------------------------------;
  48. ; ERRORLEVEL -207 ;
  49. ;-----------------------------------------------;
  50. ; Suppress message 302 from list file ;
  51. ; (Register in operand not in bank 0) ;
  52. ;-----------------------------------------------;
  53. ERRORLEVEL -302 ;
  54. ;-----------------------------------------------;
  55. #IFDEF _MAIN_MODULE_ ;
  56. ;-----------------------------------------------;
  57. ; Set Configuration Bits ;
  58. ;-----------------------------------------------;
  59. __CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF
  60. __CONFIG _CONFIG2, _WRT_OFF & _PLLEN_OFF & _STVREN_ON & _BORV_LO & _LVP_OFF
  61. __IDLOCS H'0104' ;
  62. ;-----------------------------------------------;
  63. #ENDIF ;_MAIN_MODULE_ ;
  64. ;---------------------------------------------------;
  65.  
  66. ;---------------------------------------------------;
  67. ; Macros ;
  68. ;---------------------------------------------------;
  69. ;---------------------------------------------------;
  70.  
  71. ;---------------------------------------------------;
  72. ; Defines ;
  73. ;---------------------------------------------------;
  74. #DEFINE MSB 7 ;
  75. #DEFINE LSB 0 ;
  76. #DEFINE MEMORY 0 ;
  77. #DEFINE FALSE 0 ;
  78. #DEFINE TRUE -1 ;
  79. ;---------------------------------------------------;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement