Yep, did that. Here's the top of the code.
Code:
DEFINE LOADER_USED 1 ' Bootloader is being used
DEFINE OSC 40 ' Set oscillator frequency, 4MHz (HS_PLL x4)
DEFINE HSER_BAUD 9600 ' Baud rate for serial output
DEFINE HSER_CLROERR 1 ' Automatically clear over-run errors
DEFINE HSER_RCSTA 90h ' Enable USART receive
DEFINE HSER_TXSTA 24h ' TXSTA=%00100100. TX enable, BRGH=1 for high-speed
DEFINE LCD_DREG PORTD
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTC
DEFINE LCD_RSBIT 0
DEFINE LCD_EREG PORTC
DEFINE LCD_EBIT 1
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
@ __CONFIG _CONFIG1H, _OSCS_OFF_1H & _HSPLL_OSC_1H
' Oscillator Switch Disable
' Oscillator Type HS PLL
@ __CONFIG _CONFIG2L, _BOR_ON_2L & _PWRT_ON_2L & _BORV_45_2L
' Brown-Out Reset Enabled
' Power-Up Timer Enable
' Brown-Out Reset Voltage 4.5V
@ __CONFIG _CONFIG2H, _WDT_ON_2H
' Watch Dog Timer Enable
@ __CONFIG _CONFIG4L, _STVR_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
' Stack Over/Underflow Reset Enable
' Low Voltage ICSP Programming Disabled
' Background Debugger Disabled
Bookmarks