g_shyam1682
Full Member level 4
- Joined
- Jan 11, 2010
- Messages
- 204
- Helped
- 53
- Reputation
- 106
- Reaction score
- 43
- Trophy points
- 1,308
- Location
- Udaipur-Rajshan-India
- Activity points
- 2,538
Hello Friend
I am starting to work on PIC32MX575F256H
I wrote the following program, but the TMR2 doesn't plus in MPLAB SIM mode, can someone help me to find the error? Thank you very much.
#include <plib.h>
#include <p32xxxx.h>
#pragma config FPLLMUL = MUL_20, FPLLIDIV = DIV_1, FPLLODIV = DIV_4, FWDTEN = OFF
#pragma config POSCMOD = XT, FNOSC = PRIPLL, FPBDIV = DIV_8
#define SYS_FREQ (20000000L)
int main(void)
{
SYSTEMConfig(SYS_FREQ, SYS_CFG_WAIT_STATES | SYS_CFG_PCACHE);
TMR2=0x0000;
OpenTimer2(T2_ON, 0x5000);
// configure PORTD.RD0 = output
mPORTDSetPinsDigitalOut(BIT_0);
while(1);
}
Please Help me
please its urgent!!!!!!!!!:|:|:|
Ghanshyam
I am starting to work on PIC32MX575F256H
I wrote the following program, but the TMR2 doesn't plus in MPLAB SIM mode, can someone help me to find the error? Thank you very much.
#include <plib.h>
#include <p32xxxx.h>
#pragma config FPLLMUL = MUL_20, FPLLIDIV = DIV_1, FPLLODIV = DIV_4, FWDTEN = OFF
#pragma config POSCMOD = XT, FNOSC = PRIPLL, FPBDIV = DIV_8
#define SYS_FREQ (20000000L)
int main(void)
{
SYSTEMConfig(SYS_FREQ, SYS_CFG_WAIT_STATES | SYS_CFG_PCACHE);
TMR2=0x0000;
OpenTimer2(T2_ON, 0x5000);
// configure PORTD.RD0 = output
mPORTDSetPinsDigitalOut(BIT_0);
while(1);
}
Please Help me
please its urgent!!!!!!!!!:|:|:|
Ghanshyam