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.

Problem with dspic33 as there is no voltage at output pins

Status
Not open for further replies.

gsg

Junior Member level 1
Joined
Feb 23, 2010
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,434
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?
 

Re: dspic33 no output

What are the settings for the configuration bits. The main problem can be with the oscillator. what hardware are you using to program the chip? If it is recognized by tne programmer then the the chip is probably ok.

Regards.
 

Re: dspic33 no output

These are the configuration bit setting i tried using:

_FOSCSEL(FNOSC_FRC);

_FOSC(FCKSM_CSECME & OSCIOFNC_ON & POSCMD_NONE);

Is there anything else i need to do with the configuration bits ?

I'm using a Pickit2 for programming.
 

dspic33 no output

Hi,
Try these settings:
Code:
_FOSCSEL(FNOSC_FRCPLL);
_FOSC(FCKSM_CSECMD & OSCIOFNC_ON  & POSCMD_NONE);
And put the settings in the code, using the MPLAB configuration thing didn't work for me when I tried, so I put the config settings in the code.
Try this:
Code:
#include <p33FJ128MC202.h> 

_FOSCSEL(FNOSC_FRCPLL);
_FOSC(FCKSM_CSECMD & OSCIOFNC_ON  & POSCMD_NONE);

 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);
 }

Hope this helps.
Tahmid.
 

Re: dspic33 no output

Thanks
I tried changing the config bit setting but there's no change. there's simply no output.
Please help..
 

Re: dspic33 no output

THANX...Tahmid....this post solved my problem...hats off for u.........
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top