I have seen the light! The LED is now flashing!
mackrackit,
I tried the code you supplied but there were some problems in compiling with a message about overwriting (sorry, I cant remeber what it said), so I pasted these into the .inc file instead, only because cncmachineguy hinted at this. I'm not sure why or how this worked but it has. I'll have to spend a few days looking through all the files to work out in my head what is happening. I guess it wasn't using the internal crystal in the initial settings amongst other things.
So a big thanks to everyone who has helped over the past few days. I never would have got there on my own...
If anyone in the future finds this thread and wants a copy of the .inc file with the mackrackit mods then just get in touch, but it is fairly easy to do yourself. The file is in the pbp directory, called 18F4523.INC. Just load it into a text editor and comment out the original config lines, using a semi-colon, and add the four new config lines, but without the @ sign. I made a backup of the original file incase I messed something up....
Thanks again everyone, and I expect I'll be in touch when I try to do the 12 bit a-d conversion, if I cant find the info using the search.......
Bookmarks