Hello PICante,
The 628A has analog comparator inputs, so unless you are using them turn them off with
CMCON = 7
then read the post on config fuses
try:
Code:
@ DEVICE pic16F628A, HS_OSC ' Change HS to XT for 4mhz
@ DEVICE pic16F628A, WDT_ON
' Watchdog Timer
@ DEVICE pic16F628A, PWRT_ON
' Power-On Timer
@ DEVICE pic16F628A, MCLR_ON
' Master Clear Options (Internal)
@ DEVICE pic16F628A, BOD_OFF
' Brown-Out Detect
@ DEVICE pic16F628A, LVP_OFF
' Low-Voltage Programming
@ DEVICE pic16F628A, CPD_OFF
' Data Memory Code Protect
' Set to CPD_OFF for Development Copy
' Set to CPD_ON for Release Copy
@ DEVICE pic16F628A, PROTECT_OFF
DEFINE OSC 20 ' for 20 mhz, change to fit your OSC speed
that code should setup your configs if using the default compiler, MAPSM uses different configs.
Welcome back skimask
Bookmarks