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.

PIC32MX575F256H Timer Problem

Status
Not open for further replies.

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
 

your code works...

make sure to run the simulation with the latest mplab 8.50
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top