Hi 02GF74,
this should get you started, if any of these cause the compiler to hang, just comment it out.
JS
http://ww1.microchip.com/downloads/e...Doc/40039D.pdfCode:ADCON1 = 7 'Disable A/D converter CMCON=7 ' DISABLE ANALOG ON 676 @ DEVICE PIC16F676,HS_OSC @ DEVICE PIC16F676, WDT_OFF ' Watchdog Timer @ DEVICE PIC16F676, PWRT_ON ' Power-On Timer @ DEVICE PIC16F676, MCLR_ON ' Master Clear Options (Internal) @ DEVICE PIC16F676, BOD_OFF ' Brown-Out Detect @ DEVICE PIC16F676, LVP_OFF ' Low-Voltage Programming @ DEVICE PIC16F676, CPD_OFF ' Data Memory Code Protect ' Set to CPD_OFF for Development Copy ' Set to CPD_ON for Release Copy @ DEVICE PIC16F676, PROTECT_OFF ' Program Code Protection ' Set to PROTECT_OFF for Development Copy ' Set to PROTECT_ON for Release Copy




Bookmarks