Searching \ for '[PIC] Ok, how do I configure this thing? (18F2620)' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=18F
Search entire site for: 'Ok, how do I configure this thing? (18F2620)'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] Ok, how do I configure this thing? (18F2620)'
2009\01\16@011749 by solarwind

picon face
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

2009\01\16@131846 by Harold Hallikainen

face
flavicon
face

> 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.
>
>

I generally look at the config window in MPLAB to see if my config
settings in code are correct. Have you tried that?

Harold


--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!

2009\01\16@134207 by Mauricio Jancic

flavicon
face
Did you try putting a scope probe on the PORTC pins and seeing what is going
on there? It might be a timing issue also.

Then, if no luck that path, you can simulate it with MPLAB and check if it
is working. If it is not, double and triple check your config bits, as
someone said before.

Regards

Mauricio Jancic
Microchip Design Partner
Janso Desarrollos

2009\01\16@141308 by Richard Seriani, Sr.

picon face

----- Original Message -----
From: "solarwind" <spam_OUTx.solarwind.xTakeThisOuTspamgmail.com>
To: "Microcontroller discussion list - Public." <.....piclistKILLspamspam@spam@mit.edu>
Sent: Friday, January 16, 2009 1:17 AM
Subject: [PIC] Ok, how do I configure this thing? (18F2620)


{Quote hidden}

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 <htc.h> is
for (which would explain why nobody else mentioned this).



2009\01\16@170503 by Jan-Erik Soderholm

face picon face
solarwind wrote:
> 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

# __CONFIG(1, IESODIS & FCMDIS & RCIO);

Are you absolutely sure that it is RCIO (External Resistor/Capacitor
with I/O on RA6) that you want as oscillator ? Seems a bit weird.
And it that case, what values do you use for the "R" and the "C" ?

HS, HSPLL or one of the INTIO1/INTIO2 would probably
be much more comman at least.

Jan-Erik.


More... (looser matching)
- Last day of these posts
- In 2009 , 2010 only
- Today
- New search...