----- Original Message ----- From: "solarwind" To: "Microcontroller discussion list - Public." Sent: Friday, January 16, 2009 1:17 AM Subject: [PIC] Ok, how do I configure this thing? (18F2620) > I've spent a lot of time trying to correctly configure this chip but I > can't seem to make it work like my 16Fs. > > Here is my C code: http://pastebin.com/f31126d43 > > It's really simple. All I'm trying to do is get some output on the > ports and delay for the right amount of time. I don't even know if the > oscillator is set up right - nothing seems to be working. If anyone > could help me out, I would really appreciate it. > > And yes I did spend a lot of time on this, google and the datasheet. > Now I'm asking for YOUR help. If the datasheet and google provided all > the answers, who needs the PICLIST? You tell me. > > -- > solarwind > -- Well, I don't know much about the PIC18F series, nor have I had time to learn to program PICs using C, but it seems you may be missing an #include in your code. In the few examples of C code I have looked at to date, the processor needed to be identified in order to use all those names for registers and bits. Of course, knowing nothing of C18, that may be what the #include is for (which would explain why nobody else mentioned this). -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist