Bortole
Joined: 06 Dec 2009 Posts: 1
|
CCS Compiler and DsPIC |
Posted: Sun Dec 06, 2009 6:00 pm |
|
|
Hi,
I have some problems with PCWHD and DsPIC30F3012. If the supply is +5V it works fine, but it the supply is +3.3V it does not work. It is a simple code, I think the problem is with the fuses...
If someone could help, thanks!
Code: |
#FUSES NOWDT //No Watch Dog Timer
#FUSES FRC_PLL4 //Primary Oscillator with PLL
#FUSES NOCKSFSM //Clock Switching is disabled, fail Safe clock monitor is disabled
#FUSES WPSB1 //Watch Dog Timer PreScalar B 1:1
#FUSES WPSA1 //Watch Dog Timer PreScalar A 1:1
#FUSES PUT4 //Power On Reset Timer value 4ms
#FUSES NOBROWNOUT //No Brownout reset
#FUSES BORV20 //Brownout reset at 2.0V
#FUSES LPOL_HIGH //Low-Side Transistors Polarity is Active-High (PWM 0,2,4 and 6)
#FUSES HPOL_HIGH //High-Side Transistors Polarity is Active-High (PWM 1,3,5 and 7)
#FUSES NOPWMPIN //PWM outputs drive active state upon Reset
#FUSES NOMCLR //Master Clear pin used for I/O
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOWRT //Program memory not write protected
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOCOE //Device will reset into operational mode
//#FUSES ICS0 //ICD communication channel 0
#FUSES RESERVED //Used to set the reserved FUSE bits |
|
|