View previous topic :: View next topic |
Author |
Message |
bejoy_ak
Joined: 20 Jun 2008 Posts: 10
|
help with 18f4620 |
Posted: Thu Feb 05, 2009 8:01 am |
|
|
Hi...
i am new to 18f series ...so anyone pls help me with the configuration of 18f4620.....can this pic work with 4MHz crystal...?? |
|
|
dbotkin
Joined: 08 Sep 2003 Posts: 197 Location: Omaha NE USA
|
|
Posted: Thu Feb 05, 2009 8:16 am |
|
|
Yes, it can. The question is whether you want to run it at 4 MHz or 16 (PLL on or off).
What else do you need help with? I'm also using the 18F4620 as my first 18F series. I haven't found any real challenges. The oscillator configuration is a little different. |
|
|
bejoy_ak
Joined: 20 Jun 2008 Posts: 10
|
|
Posted: Thu Feb 05, 2009 8:49 pm |
|
|
i want it to run at 4MHz..... |
|
|
Ttelmah Guest
|
|
Posted: Fri Feb 06, 2009 3:56 am |
|
|
So, basically exactly the same as for a '16' chip.
Code: |
#include <18F4620.h>
#FUSES NOWDT, XT, NOBROWNOUT, PUT, NOCPD, NODEBUG, NOLVP, NOXINST, MCLR
#use delay(clock=4000000)
|
Best Wishes |
|
|
bejoy_ak
Joined: 20 Jun 2008 Posts: 10
|
thanks |
Posted: Fri Feb 06, 2009 5:54 am |
|
|
thanks frnd..
Now I am able to program the chip. |
|
|
|