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

Need help to correctly setup USB on PIC18F67J50
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
DiegoGarcia



Joined: 01 Mar 2008
Posts: 48

View user's profile Send private message

PostPosted: Fri Mar 07, 2008 4:21 pm     Reply with quote

So I forced to enable the pplen !

#bit PLLEN = 0xf9b.6
void main()
{
PLLEN = 1;

}

It works like a charm ;)

Thanks for the great help Ttelmah :D

Regards,
Diego Garcia
Ttelmah
Guest







PostPosted: Sat Mar 08, 2008 4:26 am     Reply with quote

OK. OSC_PLL_ON, has existed for several versions. Typically, when it appeared, is not shown in the CCS 'changes' list. I'd guess about 4.060.
At least you have a solution. :-)

Best Wishes
bwhiten



Joined: 26 Nov 2003
Posts: 151
Location: Grayson, GA

View user's profile Send private message

18F67J50
PostPosted: Mon Mar 24, 2008 9:24 am     Reply with quote

Diego,
I may have to move to this USB PIC from a 18F2553 to get the extra memory I need for my product.
How has your development gone using CCS on this PIC?
Does the compiler seem to have most of the functions working outside the oscillator issue you brought up here?
Thanks for any comments.
DiegoGarcia



Joined: 01 Mar 2008
Posts: 48

View user's profile Send private message

PostPosted: Mon Mar 24, 2008 10:45 am     Reply with quote

Hi bwhiten,
For now its all working nice.

I think this topic will help you and many others to correct setup ;)

After the usb module is working its easy.

Regards,
Diego Garcia
bwhiten



Joined: 26 Nov 2003
Posts: 151
Location: Grayson, GA

View user's profile Send private message

PostPosted: Mon Mar 24, 2008 11:27 am     Reply with quote

Thanks for the update. Can you give me a quick idea of what other functions you have implemented, like SPI or I2C or A/D, etc. in this PIC and what compiler version you are running now?

I also wonder if the H4_SW fuse instead of HS fuse would set the PLL on for you?
DiegoGarcia



Joined: 01 Mar 2008
Posts: 48

View user's profile Send private message

PostPosted: Mon Mar 24, 2008 11:39 am     Reply with quote

Right now I me using just the SPI, but the other features should work fine since it doesnt seens to be changed.

The H4_SW fuse works nice to but remember that you should set the PLLEN like I've done or it will not work to !

#bit PLLEN = 0xf9b.6
void main()
{
PLLEN = 1;

//The rest of your code here

}

Regards,
Diego Garcia
bwhiten



Joined: 26 Nov 2003
Posts: 151
Location: Grayson, GA

View user's profile Send private message

Cf value
PostPosted: Wed May 07, 2008 1:23 pm     Reply with quote

Diego,
What value of Cf did you use for VDDcore? I believe the value I have is too small at 0.47uF . I finally found in the programming guide a range of 1uF to 10uF. Hopefully this is why my programmer is not seeing this device at present.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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