View previous topic :: View next topic |
Author |
Message |
temtronic
Joined: 01 Jul 2010 Posts: 9170 Location: Greensville,Ontario
|
PIC18F4550 fuse - hello world |
Posted: Fri Sep 23, 2011 5:32 am |
|
|
Maybe you can teach an old dog new tricks? I'm thinking of migrating to the PIC18F4550 as it's cheaper, faster, more powerful than the PIC16F877 I've used for the past 2 decades. But, like others I'm confused about the FUSES options. I want to stay using an external 20MHz xtal. Could someone post a FUSES list that works? I haven't got the right combination as the RS232 to PC is 'off'.
No USB is need, that's for the future...maybe.
Thanks. |
|
![](templates/subSilver/images/spacer.gif) |
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Fri Sep 23, 2011 8:14 am |
|
|
My first use of the 18f family was with an 18f4520 and i had trouble making the USART work too.
I use fast_io () on ALL Ports all the time in all programs.
(just my a n a l retentive side i guess)
Adding this to my init routine fixed my problem back then
with compiler ver 4.085
Code: |
#bit spen = 0xFAB.7
set_tris_c ( 0b11000011 ); // 00000011 C0,C1 are inputs
spen=1; // for usart
|
BTW you did not post your fuses that you used - so i cant see if i think any of them are a problem either. |
|
![](templates/subSilver/images/spacer.gif) |
temtronic
Joined: 01 Jul 2010 Posts: 9170 Location: Greensville,Ontario
|
|
Posted: Fri Sep 23, 2011 10:47 am |
|
|
[solved]...whew....
turns out I need HS NOT HSPLL to make my PIC run 'right'...
Too many fuses for old guys like me to figure out !!!
Progress though...one small step.... |
|
![](templates/subSilver/images/spacer.gif) |
|