lørdag den 17. september 2011

Getting stuff up and running

So I just started buildling a simple circuit from scratch using a dsPIC33fj12gp201. Actually the end goal is to build a class-D amplifier a few of these and a CPLD, but right now I am just learning along the way. I use MPLAB X (Right not beta, but it works on Mac OS X), and one thing I learned first is two manual steps needed after creating the mainasm file just to get things to build:

1) Change the include file in the top to read p33fj12gp201.inc instead of the ...xxxx.inc
2) Manually add the p33FJ12GP201.gld file to Linker files, otherwise the link step will fail

As the project wizard will ask for the specific device it could have inserted these, but that is not how it is for now (I will file this as a bug with Microchip but for now this is the workaround)

Next thing on the hardware was a simple blunder: Always remember to insert a pullup between MCLR* and Vcc - otherwise the circuit will not come (reliably) out of reset. 1K will do just fine. So now I have the obligatory Hello Blinking LED

Ingen kommentarer:

Send en kommentar