Running programs on different dsPIC's causing problems

General discussion on mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Bob Shannon
Posts: 66
Joined: 21 Feb 2006 15:34
Location: Massachusetts, USA

Running programs on different dsPIC's causing problems

#1 Post by Bob Shannon » 02 Mar 2006 17:27

There have been several messages about programs that ran fine on one dsPIC not working on other chips.

There are a few important things to check before assuming that this is a compiler problem!

Some dsPIC's have bits in the option registers that will assign some I/O pins to internal peripherals. As an example port E on a 30F2010 can be assigned to the PWM module after each reset, or as GPIO pins based on a configuration register bit.

Also some internal peripheral modules are turned on by default after a reset, like the ADC.

Different dsPIC's map internal peripherals to different ports. As a result code written for one dsPIC is not really directly transportable to another chip.

You really need to study the data sheet for the part in question, as well as the family reference manual for the subset of dsPIC's you are using.

That being said, it seems that there are still many issues with the compilers that need to be addressed.

LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

#2 Post by LGR » 02 Mar 2006 20:35

Completely agree. This appears to be a frequently recurring theme. And it isn't all related to peripherals, though I'm sure a lot of it is.
If you know what you're doing, you're not learning anything.

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 General”