Other Parts Discussed in Thread: CDCM6208
Tool/software: TI C/C++ Compiler
Does TI offer example C code for the LMK04828?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
G'day Chen,
Firmware programmers like you and me command and monitor LMK04828 by writing and reading its registers via SPI transactions.
Any example C code consists of a sequence of SPI writes and reads.
The underlying question is, how to set up and monitor the LMK for my system's purposes?
The answer depends on the system objectives and, when writing firmware for a legacy PWB, how the chip is connected.
There are two paths we can go by:
1) rely on TI's GUI to generate the series of SPI writes to configure the part, or
2) understand the LMK's function at the register level, to come up with the values that achieve the objectives for your system.
From what I've read in this forum, it looks like most of us choose path (1). On the other hand, friendly and knowledgeable people on the forums promptly and comprehensively address the questions I ask, making it surprisingly easy to succeed with path (2).
Best of luck, and I hope you're able to enjoy wrapping your brain around this elegantly powerful timing chip.
Cheers --todd
Hello Chen,
We'll I don't know what sort of platform you would be using. If you don't have one, consider an MSP430 microcontroller. We have an example for SPI programming of the CDCM6208 which could be adapted for LMK04828.
See SCAA121 : A Step-by-Step Guide on Using the MSP430 as a Bootloader for the CDCM6208VxEVM
See SLAC541 : Code for programming the MSP430 on the CDCM6208 evaluation module.
73,
Timothy