Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: gsg on July 02, 2010, 12:16:34 AM

Title: dspic33 no output.
Post by: gsg on July 02, 2010, 12:16:34 AM

I'm trying to send all 1's to output pins of dspic33fj128mc202. My programming and verification is done correctly. But there is no voltage at output pins. Here's the code
#include <p33FJ128MC202.h>
 int main(void)
    AD1PCFGL = 0xffff; //All analog capable pins in digital mode
    TRISA = 0; //All pins output
    TRISB = 0; //All pins output
    PORTA = 0xFFFF; //All pins low
    PORTB = 0xFFFF; //All pins low
    return 0;

The output at all pins is :

Pin28: 3.3v
pin13: 3.3v
Pin1: 3.3v
Pin20: 2.6v
All other pins: 0v

can the IC be damaged?
What are the indications that a dspic is damaged?

please help..
Title: Re: dspic33 no output.
Post by: jka on July 02, 2010, 02:55:16 AM
Can you program the chip? Can you single step through the code? What does your schematics look like?