CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC18F4550 fuse - hello world

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PIC18F4550 fuse - hello world
PostPosted: Fri Sep 23, 2011 5:32 am     Reply with quote

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



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Fri Sep 23, 2011 8:14 am     Reply with quote

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



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Sep 23, 2011 10:47 am     Reply with quote

[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....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group