try that.Code:loop: high portb.0 pause 500 low portb.0 pause 500 goto loop
try that.Code:loop: high portb.0 pause 500 low portb.0 pause 500 goto loop
________________
KV
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:
that code should setup your configs if using the default compiler, MAPSM uses different configs.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
Welcome back skimask
Last edited by Archangel; - 19th December 2007 at 22:15.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Thanks all of you!
I have some reading to do (obviously) and I get back on this matter if I don’t figure it out myself!
One 180 page datasheet and then some … phuuuu.
Thanks again :-)
Merry Christmas!
Stop whining
I am looking at the data sheet for the 18F4550 over the holiday.
428 pages!
Merry Christmas to you too.
Dave
Always wear safety glasses while programming.
Bookmarks