Addr Var Byte
Should be
Addr Var WORD
I think....
Addr Var Byte
Should be
Addr Var WORD
I think....
Dave
Always wear safety glasses while programming.
I did see this in your code and maybe it's just me, but in your new code, I saw this part:
try changing it to and see if it helps:' Initialize the A/D converter
TRISA = 111111
ADCON1 = 000010
' Initialize the A/D converter
TRISA = %11111111
ADCON1 = %00000010
also, I thought you could use byte for that also due to being able to count clear up to 255 with 8 bits.
![]()
Last edited by Chirpy; - 8th January 2013 at 11:11.
That's most likely the forum messing up the posts.
You can switch between two different editors when making posts in the forum, one of them keeps messing up like up that no matter what you do.
If you look in the Forum Requests section you'll find requests for a fix. It's just a bit sad that a forum dedicated to PBP code can't show PBP code properly. Yes, the problem is known, yes the fix is to use the "correct" editor but new users and users who normally only come here when they're in trouble doesn't know that, makes a post with the "wrong" editor and the code in their post gets messed up. Then a year from now someone else finds the thread when looking for something, copy-pastes the messed up code which then doesn work and....
/Henrik.
Last edited by HenrikOlsson; - 8th January 2013 at 12:10.
Bookmarks