Author Topic: dspic33 no output.  (Read 1111 times)

0 Members and 1 Guest are viewing this topic.

Offline gsgTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
dspic33 no output.
« on: July 02, 2010, 12:16:34 AM »
Hi,

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
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
   
   
    while(1);
    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..

Offline jka

  • Full Member
  • ***
  • Posts: 78
  • Helpful? 4
Re: dspic33 no output.
« Reply #1 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?

 


Get Your Ad Here

data_list