PDA

View Full Version : 18F series challenges



Charlie
- 20th July 2011, 10:01
This thread might belong in the FAQ, or it might just be me. After several successful projects using 12F and 16F devices I attempted to move up to an 18F device and have been stopped cold in my tracks for two solid days. I can't even get the most basic "blink" program working. The device is an 18F2580. I've wrestled with the manual over and over. I would be suspicious I have a bad device, except it loads and verifies - then does nothing. Can someone point me to an example with basic configuration for this beast?

Thanks for any direction!

rsocor01
- 20th July 2011, 10:38
Are you using MPASM? Post your blinking LED program.

Robert

Charlie
- 20th July 2011, 11:01
I cleaned up the comments prior to posting the code and it started to function.
Some days it's black magic - thanks for solving my problem by just thinking about it!
(Yes, I was using MPASM, and no I don't think I removed any real code, but I'll dig further)

Charles Linquis
- 23rd July 2011, 15:32
99% of all difficulties encountered when moving from 16F to 18F parts are in the configuration registers. And be careful - if something magically starts working after you have made no changes,
make certain that ALL your variables are initialized before you consider your work done.