Other Parts Discussed in Thread: TMP100
Tool/software: Code Composer Studio
Hello, we are currently designing a temperature controller based on Peltier TECs. Current stage involves setting a PID, and I need to log temperature data required to design the PID values. I have a couple of TMP100 already providing good measurements.
Now I need a way to log these measurements over extended periods of time (about 1 hour). Each measurement takes 2 bytes (10 bits precision from TMP100) from each TMP100 and is triggered by timer0 every 50ms. Because of the time constants in our system, I estimate I need 20 samples/sec. Since each TMP100 can do up 12 s/s (10bits resolution), I believe there will be no speed problems from TMP100's if I alternate them.
1) I have dumped data into PC using breakpoints in CCS debug mode, and writing to a file. But I am bit suspicious about the time frame, since x axis is just "sample" and I can't have a real time stamp. I'd like to be sure about the interval from one sample to another. Is there anyway to be more careful with the data time stamps?
2) Is there a better way to log data directly into files? Maybe it should be done using DDS (about which I have read only http://processors.wiki.ti.com/index.php/Debug_Server_Scripting#Logging, but have no experience at all!). Any reference model/project/code involving data logging?