Other Parts Discussed in Thread: ADS7142
I have attached word documents with each of the .c files I am currently using to do the single register read and write functions. The one labeled “working” yields the correct 0x03 data from the register 0x20 on the analyzer as shown below:
The analyzer screenshot below is from my using pre-declared functions in main (which is currently not working):
What seems to be driving the error in the non-working code is the presence of UART statements that are highlighted on page 7 of the “working” document. One of those two statements is providing the processor or core with some sufficient delay or condition for the data to be transmitted and received correctly.
For reference, I’ve attached the ADS7142 datasheet and TM4C1294NCPDT datasheet. In the code, I am simply reading the reset value of the AUTO_SEQ_CHEN (0x20) register: its reset value is (0x03). The Single Register Read opcode is 0x10. Your help is greatly appreciated
SingleRegisterRead_working.docxSingleRegisterRead_notworking.docxads7142.pdftm4c1294ncpdt.pdf