Other Parts Discussed in Thread: PGA450Q1EVM
Hello Scott ,
Why the equation have not the SAT_TIME ?
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.
Hello Scott ,
Why the equation have not the SAT_TIME ?
Hello Akeem,
I don't want to use Free-Running Timer ,becauce the test results have about +5cm error when using the example pga450_main.c .
So I used Equation 2 in the 《LIN Demostration Using PGA450Q1EVM》, this Equation's Accuracy is about ±1.5cm. But I don't know why have not SAT_TIME.
code as:
//*** CODE SNIPPET BEGIN ***//
if ( MaskEcho == 0){
if ( data_FIFO[lcv] > DetectionThreshold) {
lcv_temp1=lcv
MaskEcho = 1;
//break; // when enabled, break from loop as soon as an object is found
}
}
TimeofFlightTemp.u16 =(lcv_temp1<<4) + (BLANKING_TIMER<<4);
//*** CODE SNIPPET END ***//
Hi ,Akeem,
Thanks for your reply , It 's great help for me .
My code sequence is your mention , not changed codes sequence in the original <example pga450_main.c>, but some issues in my test.
1、 TOF calculation equation without SAT_TIME , but it had good accuracy。
I added one code to read SAT_TIME after <code> EN_CTRL = 0x0C </code> , and throw it out by UART , it 's value is 0 .
So SAT_TIME does not offset the FIFO record start time too , That is why the equation have good accuracy whitout add SAT_TIME to the TOF equation.
2、Why SAT_TIME had a zero value .
it seem to be impossible, because there had a code like :
SAT_DEGLITCH = 0x09; // 2us per count || 1/58kHz (17.2uS)
So SAT_TIME should have 1 value at least. // 8bit at 16 us resolution
3、I got a picture with PGA450Q1EVM GUI 1.50.1 , maybe why SAT_TIME = 0.
configure GUI 1.50.1 : in Digital Test MUX set GPIO1 to output SAT_DONE
ch1 is burst waveform , ch2 is SAT_Done from gpio1.