Part Number: TM4C123GH6PM
Hi All,
This is my first time posting in these forums so I apologize if this is a bad post. In short, I'm having trouble understanding and picking a clock rate for my application. I want to use timers to sample the adc at 44100hz (44.1KHz cd audio rate) and to store into an SD card, and then read later to a DAC. I've spent hours online trying to find an explanation, but there isn't much of a good answer for me to completely understand it, I guess. I'm using Keil v5 and using the driverlib.
For example, in this code I'm running, there is this command
ROM_SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN |
SYSCTL_XTAL_16MHZ);
There is a comment saying that this runs the clock directly from the crystal, but I don't understand how this code does that? And when they say crystal, do they mean the main oscillator? I'd like to have the most precise timing possible to ensure fidelity and that the frequency of my audio remains stable.
Bonus points if some one can tell me the difference between using the commands with/without the "ROM_" prefix.
Thanks!