Content originally posted in LPCWare by Pacman on Fri Oct 03 04:04:30 MST 2014
In general, all ARM microcontrollers behave more or less the same, unless the manufacturer decides to implement things differently, of course.
Things you should be aware of is that you need to turn on clocking & power to a peripheral, before you use it.
Many peripherals are turned off when your ARM microcontroller starts up.
This is in order to save power, so battery-driven devices won't just purge the batteries in no time.
If you're using a ready-built library, the init functions takes care of this for you.
-Yet another good reason for using the libraries.
If you're going to write your own routines to do things in a low-level way, I recommend copying the library routine and then modify it.
That is because it's already tested by many developers, and if they find a bug, they usually report it, so it's fixed as quickly as possible.
If you write your own from scratch, then you might not see that you've missed something; and the device(s) might behave strange in some situations.