the main problem lies in your config settings. Your current setting imply you're using an external <4-8MHz crystal.
just change XT_OSC to INTRC_OSC_NOCLKOUT
are you sure of the AN number? any link to it?
EDIT: there's also something you want to make sure of... when you use BCF/BSF, you have to make sure you're in the right BANK unless you may just set/clear another register. Under each of your 2 ASM line, just add CHK?RP GPIO and see if it do something better. And for safety sake, change Cycles VAR BYTE to Cycles VAR BYTE BANK0.
Last edited by mister_e; - 28th March 2008 at 17:06.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks