Guest User

Untitled

a guest
Apr 14th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 3.11 KB | None | 0 0
  1. ;*************************************************************************************************
  2. ;**                                                                                             **
  3. ;**                             Header Information                                              **
  4. ;**                                                                                             **
  5. ;*************************************************************************************************
  6.  
  7.                 list            p=16F628A, r=dec, w=-302
  8.                 include         <P16F628A.INC>
  9.                 __config        _LVP_OFF & _BOREN_OFF & _PWRTE_ON & _WDT_OFF & _INTRC_OSC_NOCLKOUT
  10.  
  11. ;Processor Type: 16F628A
  12. ;Default Radix: Decimal
  13. ;Error Level: Suppress Error 302
  14.  
  15. ;Code Protection Off
  16. ;Data Code Protection Off
  17. ;Low Voltage Programming Off
  18. ;Brown Out Reset Off
  19. ;RA5 is MCLRE
  20. ;Power Up Timer On
  21. ;Watchdog Timer Off
  22. ;High Speed Oscillator
  23.  
  24. ;Fosc = 16MHz
  25.  
  26. ;*************************************************************************************************
  27. ;**                                                                                             **
  28. ;**                             Variable Declarations                                           **
  29. ;**                                                                                             **
  30. ;*************************************************************************************************
  31.  
  32.                 cblock          0x70
  33.                                 W_TEMP              ;interrupt context save for W
  34.                                 STATUS_TEMP         ;interrupt context save for STATUS
  35.                                 PCLATH_TEMP         ;interrupt context save for PCLATH
  36.                                 COUNT1              ;delay counter 1
  37.                                 COUNT2              ;delay counter 2
  38.                                 COUNT3              ;delay counter 3
  39.                 endc
  40.  
  41. ;*************************************************************************************************
  42. ;**                                                                                             **
  43. ;**                             I/O Pin Definitions                                             **
  44. ;**                                                                                             **
  45. ;*************************************************************************************************
  46.  
  47. #define         SDO             PORTA,0         ;SPI bit bang Serial Data Out
  48. #define         SCK             PORTA,1         ;SPI bit bang Serial Clock
  49. #define         LAT             PORTA,2         ;latch strobe for 74HC595
  50. #define         COMMON          PORTB,0         ;common side of button switches
  51. #define         CHANNEL         PORTB,4         ;Vss drive for channel select button
  52. #define         SOLO            PORTB,5         ;Vss drive for solo boost select button
  53. #define         FX              PORTB,6         ;Vss drive for fx loop select button
  54. #define         LEARN           PORTB,7         ;Vss drive for learn mode button
Add Comment
Please, Sign In to add comment