jit_singh_tara
Full Member level 6
- Joined
- Dec 22, 2006
- Messages
- 325
- Helped
- 9
- Reputation
- 18
- Reaction score
- 4
- Trophy points
- 1,298
- Location
- Delhi , India
- Activity points
- 4,295
missread your application!I have connected my usb connector to the mcu ,
You mean to say that i am drawing too much current from the vbus pin of the mcu .......Can i connect the pen drive +pin( pin1) to 5V Directly........or what else can be done .
The problem is that even when the pen drive is not connected the over current error keeps on popping....on hyper terminal which is connected to the uart2 .
#elif defined(__PIC24FJ256GB106__)
_CONFIG2(FNOSC_PRIPLL & POSCMOD_HS & PLL_96MHZ_ON & PLLDIV_DIV2) // Primary HS OSC with PLL, USBPLL /2
_CONFIG1(JTAGEN_OFF & FWDTEN_OFF & ICS_PGx2) // JTAG off, watchdog timer off
//_CONFIG1( JTAGEN_OFF & GCP_OFF & GWRP_OFF & COE_OFF & FWDTEN_OFF & ICS_PGx2)
// _CONFIG2( 0xF7FF & IESO_OFF & FCKSM_CSDCMD & OSCIOFNC_OFF & POSCMOD_HS & FNOSC_PRIPLL & PLLDIV_DIV3 & IOL1WAY_ON)
I got the modified code from the microchip support .......They changed the usb_data_logger.c file . I have posted the modified code project in earlier post .
// Sample clock speed for a 16-bit processor
#if defined (__C30__) || defined __XC16__
// Various clock values
#define GetSystemClock() 32000000UL
#define GetPeripheralClock() (GetSystemClock())
#define GetInstructionClock() (GetSystemClock() / 2)
// Clock values
#define MILLISECONDS_PER_TICK 10
#define TIMER_PRESCALER TIMER_PRESCALER_8 // 8MHz: TIMER_PRESCALER_1
#define TIMER_PERIOD 20000 // 10ms=20000, 1ms=2000
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?