dspic33ep512mu814 reset issue

Status
Not open for further replies.

raman00084

Full Member level 6
Joined
Nov 29, 2010
Messages
375
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Visit site
Activity points
4,076
i am using ds pic33ep512mu814 144 pin ic, if i keep on pressing the reset button at one time say 20th are 22th time the controller gets hanged again if i press the reset button it works. i am just toglling an led.

the fuse setting are as follows i am using ccs complier


#FUSES NOWDT //No Watch Dog Timer
#FUSES NOCKSNOFSM //Clock Switching is disabled, fail Safe clock monitor is disabled

#FUSES NOJTAG //JTAG disabled
#device ICSP=1
#use delay(clock=60MHz,crystal=12MHz)

#use i2c(MASTER, I2C2, FAST, stream=I2C_PORT1)

kindly help

- - - Updated - - -

JUST NOW I FOUND THIS PROBLEM OCCURS ONLY IF I ENABLE THE HARD WARE I2C IN CCS IF I USE SOFT I2C THE DEVICE IS GETTING RESET CORRECTELY NO PROBLEM, HOW TO WORK IN HARD WARE I2C HOW TO SOLVE THE PROBLEM.
FUSE SETTINGS
#FUSES NOWDT //No Watch Dog Timer
#FUSES NOCKSNOFSM //Clock Switching is disabled, fail Safe clock monitor is disabled

#FUSES NOJTAG //JTAG disabled


#device ICSP=1
#use delay(clock=60MHz,crystal=12MHz)

//#use i2c(MASTER, I2C2, FAST, stream=I2C_PORT1)
#use i2c(MASTER, SCL=PIN_F5, SDA=PIN_F4, FAST, RESTART_WDT, stream=I2C_PORT1)

#pin_select U1TX=PIN_G6
#pin_select U1RX=PIN_C4
#use rs232(UART1, baud=9600, stream=UART_PORT1)

#pin_select U2TX=PIN_G8
#pin_select U2RX=PIN_G7
#use rs232(UART2, baud=9600, stream=UART_PORT2)
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…