Hi emerson,
glad it works with the chip you tried, but it should work with the 16F688 too. I am still leaning toward an analog function killing it. I did not see ANSELH in the data sheet but have found that to cause chips that have it to not do digital, try ANSELH=0 , if the compiler errors then it is invalid, but it is worth a try,(it is free to try, right?). You say you are set up to use MPASM. MPASM configs are different than the PB configs you have shown, and at any rate to use your own configs you MUST open the 16F688.inc file in your PBP root directory and comment out the config statements inside of it by adding a semicolon [ ; ] just ahead of them, there are 2 configs there one for PB and the other for MPASM. MPASM will look like
@ __config, HS_OSC & MCLRE_OFF & . . . . if you do not comment them out you will get compile error complaint of overwriting . . . and it will use the default config you failed to comment out.
Here is a link similar:
http://www.picbasic.co.uk/forum/showthread.php?t=12695
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.
Bookmarks