Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC32 configuration of UPLLEN, FPLLMUL, UPLLIDIV for PC communication via USB

Status
Not open for further replies.

ovedid

Newbie level 3
Joined
Aug 23, 2012
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312
Hello,

This is the configuration of my code:

/** C O N F I G U R A T I O N ************************************************/

#ifndef OVERRIDE_CONFIG_BITS

#pragma config UPLLEN = ON // USB PLL Enabled
#pragma config FPLLMUL = MUL_20 // PLL Multiplier
#pragma config UPLLIDIV = DIV_2 // USB PLL Input Divider
#pragma config FPLLIDIV = DIV_2 // PLL Input Divider
#pragma config FPLLODIV = DIV_1 // PLL Output Divider
#pragma config FPBDIV = DIV_1 // Peripheral Clock divisor
#pragma config FWDTEN = OFF // Watchdog Timer
#pragma config WDTPS = PS1 // Watchdog Timer Postscale
#pragma config FCKSM = CSDCMD // Clock Switching & Fail Safe Clock Monitor
#pragma config OSCIOFNC = OFF // CLKO Enable
#pragma config POSCMOD = HS // Primary Oscillator
#pragma config IESO = OFF // Internal/External Switch-over
#pragma config FSOSCEN = OFF // Secondary Oscillator Enable
#pragma config FNOSC = PRIPLL // Oscillator Selection
#pragma config CP = OFF // Code Protect
#pragma config BWP = OFF // Boot Flash Write Protect
#pragma config PWP = OFF // Program Flash Write Protect
#pragma config ICESEL = ICS_PGx2 // ICE/ICD Comm Channel Select
#pragma config DEBUG = OFF // Debugger Disabled for Starter Kit

#endif // OVERRIDE_CONFIG_BITS


I need to realize communication between PC to PIC32 via USB at 1.5 Mbps, where I can find information about UPLLEN, FPLLMUL, UPLLIDIV, etc. and witch values I need to put on them.

Thanks
 

Re: PIC32 Configuration

You'll find all oscillator related settings in the oscillator chapter of the PIC32 Family Reference Manual. USB clock isn't different between low- and full speed USB operation, 48 MHz in both cases.

The shown settings are good for a 8 MHz crystal. In case of doubt, you can also refer to the reference projects in the Microchip Application Library.
 

Re: PIC32 Configuration

You'll find all oscillator related settings in the oscillator chapter of the PIC32 Family Reference Manual. USB clock isn't different between low- and full speed USB operation, 48 MHz in both cases.

The shown settings are good for a 8 MHz crystal. In case of doubt, you can also refer to the reference projects in the Microchip Application Library.

Thanks for the response,

I'll clarify the question, I want to transmit information to the air (using blue LED) at a rate of 1.5, so I need that the information from the PC will go through the USB to the PIC at 1.5Mbps, how do I do it? Which registers I have to reboot and what value?
 

Re: PIC32 Configuration

I don't see an external Tx data rate of 1.5 MBPS directly related to low speed USB. USB is asynchronous data transmission and low speed USB won't achieve 1.5 MBPS net data rate. Standard full speed will do as well, the point is about synchronizing the data packets.

I think, you should start with USB communication examples form the Microchip Application Library.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top