Hi everyone,
I just entered the world of arm controllers and its really exciting. I m learning from example programs and trying to write my own small programs.I have doubt in the initialisation of accelerometer in ek-lm4f232h5qd. Could any one explain what is the need of the following piece of code.
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);
HWREG(GPIO_PORTB_BASE + GPIO_O_AMSEL) |= GPIO_PIN_6;
Without it Im not getting right values , im getting +.49g in place of +1g and -1.39 g instead of -1g with out that piece of initialisation.
The comment in the example says
// Apply workaround for erratum 6.1, in order to use the
// external reference.
What does it mean by work around for erratum? solution to error? how/why does it solves the error?
why is it needed for external reference? The same error was found with internal reference too.
im using Keil.