Content originally posted in LPCWare by Rob65 on Sun Nov 13 00:55:57 MST 2011
Quote: beefok
Oh my god.. I just found the bug! I wasn't connecting it properly at line 100... I forgot to change the r3 register back to = PLL0CON
>_<
Bug, mammoth, whatever you call it is fine with me.
Good thing you now really woke up ;)
It is indeed very easy to oversee such a small thing in assembly.
Still, nice to see that you are still brave enough to get you hands dirty on some assembly code :D. I used to program in ARM7 assembly from 1999-2004 almost on a daily basis, most of this was startup code, high speed interrupt drivers etc. It almost seems that with the newer and faster MCUs and programming environments this becomes an extinct profession.
I can recommend this piece of code to anyone wanting to get his/her hands dirty on some (stand alone) assembly. It is nice, compact, readable and has (for me that is) the right level of comments.
Just one tip; when sharing a project with others it is best to export the project using the "export projects to archive (zip)" found in the "Import and export" tab in the quick pane (left bottom of the screen in LPCXpresso).
That way we can import it into a newly created workspace through the "import archived projects (zip)" withou having to use any external zip/unzip tools.
I'll give to code a try next week, then I'll be able to provide you with some numbers regarding blink rate when looking at the signal on my logic analyzer.
Cheers,
Rob