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 support@ccsinfo.com

USB on an 18F25K50 at 3.3V

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



Joined: 24 Apr 2014
Posts: 138

View user's profile Send private message

USB on an 18F25K50 at 3.3V
PostPosted: Wed Feb 11, 2015 2:11 pm     Reply with quote

Hi All,

For a number of reasons I'm updating an older 18F2550 project design with USB that runs at +5V to a +3.3V design. Because I want to be able to run
up to 48MHz, I've selected the 18F25K50 for the new design. I was under the impression that this PIC would run at 3.3V, and do USB as long as I
disabled the internal Vusb regulator, and connected the Vusb pin to Vdd. But, I don't find a Fuse in the 18F25K50.h file that looks like it controls the
internal regulator, so at this point I'm stuck.

Is my thinking correct that this device should do USB at 3.3V, and is this the correct way to do it?

Thanks,

Jack
temtronic



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

View user's profile Send private message

PostPosted: Wed Feb 11, 2015 3:11 pm     Reply with quote

Downloaded the datasheet and that PIC is good at 3v3 to run USB fine at 48MHz.

If you look a t figure 24.1 you'll see...you need to disable the internal pullups.
UPUEN=0

You'' have to scan the 'header' to see what CCS calls it and add external pullups to Vdd.

cheers
Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19455

View user's profile Send private message

PostPosted: Wed Feb 11, 2015 3:58 pm     Reply with quote

There isn't any control for the internal regulator. Look at the USB diagram in the data sheet. Basically the regulator is there for the F devices and not there for the LF devices. No control bit for it.
Quote from the data sheet:
"F devices permanently enable the voltage regulator". (Section 2.4).
You need the LF device.
You can still use the internal pull-ups.

Problem is that the data sheet is for both chips, so you have to work out what parts apply to which chip....

Problem also is that the 'voltage range' diagrams for the chips ignore the USB component. On the F devices, Vdd, must be at least 0.3v above Vusb.

The LF device at 3.3v is great.
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