PORT D bug on DSPIC33FJ64(128)MC804

Post Reply
rmikio
Posts: 4
Joined: Tue Jan 26, 2010 11:26 pm

PORT D bug on DSPIC33FJ64(128)MC804

Post by rmikio » Wed Jan 27, 2010 12:16 am

Hi Lubin and group,

I am new user for DSPIC and actually I am trying to use your very useful blockset (just downloaded it today).
However I have problems regarding the Digital Input. When I try to compile to DSPIC33FJ128MC804, the following error occurs:

dsPIC_33f_Explorer16.c:165: error: 'PORTDbits' undeclared (first use in this function)

Looking into the .h files, I could notice that DSPIC33FJ128MC804 does not present any definition for PORTDbits.
It seems that the digital Input for DSPIC33FJ128MC804 is made in a different way, but I am not quite sure about that.

However it seems that this is the only error so far.

Can you enlighten me here, please?

I imagine I can use the Analog Input as a digital Input, just by configuring it correctly. But then I guess if the Analog Input is also implemented for this specific DSPIC.

Thank you and regards,
Mikio

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: PORT D bug on DSPIC33FJ64(128)MC804

Post by LubinKerhuel » Wed Jan 27, 2010 1:26 am

I checked 33fj MC804 definition either on microchip h file, and in the blockset, it's coherent.

Could you check you select the correct dsPIC in the master block ?
Check then that your simulink model does not contain any port D.

Lubin

Bobes
Posts: 36
Joined: Wed Nov 25, 2009 11:27 am
Location: Brno, CZE
Contact:

Re: PORT D bug on DSPIC33FJ64(128)MC804

Post by Bobes » Wed Jan 27, 2010 2:08 am

hello I am using 804 as well, I do not think there is any PORTD at all. at least I cant see any pin on the Pin Diagram.
Josef

rmikio
Posts: 4
Joined: Tue Jan 26, 2010 11:26 pm

Re: PORT D bug on DSPIC33FJ64(128)MC804

Post by rmikio » Wed Jan 27, 2010 2:54 pm

Greetings all,

Thank you for your prompt reply.
Ok, my LACK of knowledge (or I shall say my dumbness and ignorance) is responsible for this mistake.
Actually dsPIC33fj64(128)MCx04 does NOT present any PORT D, but only PORT A, B or C.

Thank you again and sorry for bothering!
Regards,
Mikio

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests