Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;*************************************************************************************************
- ;** **
- ;** Header Information **
- ;** **
- ;*************************************************************************************************
- list p=16F628A, r=dec, w=-302
- include <P16F628A.INC>
- __config _LVP_OFF & _BOREN_OFF & _PWRTE_ON & _WDT_OFF & _INTRC_OSC_NOCLKOUT
- ;Processor Type: 16F628A
- ;Default Radix: Decimal
- ;Error Level: Suppress Error 302
- ;Code Protection Off
- ;Data Code Protection Off
- ;Low Voltage Programming Off
- ;Brown Out Reset Off
- ;RA5 is MCLRE
- ;Power Up Timer On
- ;Watchdog Timer Off
- ;High Speed Oscillator
- ;Fosc = 16MHz
- ;*************************************************************************************************
- ;** **
- ;** Variable Declarations **
- ;** **
- ;*************************************************************************************************
- cblock 0x70
- W_TEMP ;interrupt context save for W
- STATUS_TEMP ;interrupt context save for STATUS
- PCLATH_TEMP ;interrupt context save for PCLATH
- COUNT1 ;delay counter 1
- COUNT2 ;delay counter 2
- COUNT3 ;delay counter 3
- endc
- ;*************************************************************************************************
- ;** **
- ;** I/O Pin Definitions **
- ;** **
- ;*************************************************************************************************
- #define SDO PORTA,0 ;SPI bit bang Serial Data Out
- #define SCK PORTA,1 ;SPI bit bang Serial Clock
- #define LAT PORTA,2 ;latch strobe for 74HC595
- #define COMMON PORTB,0 ;common side of button switches
- #define CHANNEL PORTB,4 ;Vss drive for channel select button
- #define SOLO PORTB,5 ;Vss drive for solo boost select button
- #define FX PORTB,6 ;Vss drive for fx loop select button
- #define LEARN PORTB,7 ;Vss drive for learn mode button
Add Comment
Please, Sign In to add comment