Advertisement
Guest User

Common.INC

a guest
Dec 19th, 2012
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. ;---------------------------------------------------;
  2. ; Name: COMMON.INC ;
  3. ; Use: Common Usage Include File ;
  4. ;---------------------------------------------------;
  5. ; Copyright: (C) 2012 DTI ;
  6. ; Dysfunctional Technologies, Inc. ;
  7. ; All Rights Reserved ;
  8. ;---------------------------------------------------;
  9. ; Author: Timothy S. Carlson ;
  10. ; Dysfunctional Technologies, Inc. ;
  11. ; Date: December 7, 2012 ;
  12. ; Version: V1.10 ;
  13. ;---------------------------------------------------;
  14. ; Description: Common defines, equates, and macros ;
  15. ; used in all modules ;
  16. ;---------------------------------------------------;
  17. ; Code is specific to the PIC12F1840! ;
  18. ;---------------------------------------------------;
  19.  
  20. ;---------------------------------------------------;
  21. LIST P=PIC12F1840 ;
  22. #INCLUDE <P12F1840.INC> ;
  23. ;---------------------------------------------------;
  24.  
  25. ;---------------------------------------------------;
  26. ; Configuration ;
  27. ;---;-----------------------------------------------;
  28. ; Set default radix to DECIMAL (Was HEX) ;
  29. ;-----------------------------------------------;
  30. RADIX DEC ;
  31. ;-----------------------------------------------;
  32. ; Suppress message 207 from list file ;
  33. ; (Found label after column 1) ;
  34. ;-----------------------------------------------;
  35. ; ERRORLEVEL -207 ;
  36. ;-----------------------------------------------;
  37. ; Suppress message 302 from list file ;
  38. ; (Register in operand not in bank 0) ;
  39. ;-----------------------------------------------;
  40. ERRORLEVEL -302 ;
  41. ;-----------------------------------------------;
  42. #IFDEF _MAIN_MODULE_ ;
  43. ;-----------------------------------------------;
  44. ; Set Configuration Bits ;
  45. ;-----------------------------------------------;
  46. __CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF
  47. __CONFIG _CONFIG2, _WRT_OFF & _PLLEN_OFF & _STVREN_ON & _BORV_LO & _LVP_OFF
  48. __IDLOCS H'0104' ;
  49. ;-----------------------------------------------;
  50. #ENDIF ;_MAIN_MODULE_ ;
  51. ;---------------------------------------------------;
  52.  
  53. ;---------------------------------------------------;
  54. ; Macros ;
  55. ;---------------------------------------------------;
  56. ;---------------------------------------------------;
  57.  
  58. ;---------------------------------------------------;
  59. ; Defines ;
  60. ;---------------------------------------------------;
  61. #DEFINE MSB 7 ;
  62. #DEFINE LSB 0 ;
  63. #DEFINE MEMORY 0 ;
  64. ;---------------------------------------------------;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement