Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Slide 13 Slide 14 Slide 15 Slide 16 Slide 17 Slide 18 Slide 19 Slide 20 Slide 21 Slide 22 Slide 23 Slide 24 Slide 25 Slide 26 Slide 27 Slide 28 Slide 29 Slide 30 Slide 31 Product List
Si1102 and Si1120 Slide 26
The PCA channel 0 ISR is a little more complicated as it is measuring the PRX low time by capturing the falling and rising edges and is entered twice. The ISR first determines if the event was from a falling edge by measuring the pin value. If low, the ISR then stores the captured timer value and exits and waits for the next edge. On the next trigger event, which would be a rising edge, the ISR once again stores the captured timer value and then determines the time interval between edges by subtracting the falling edge capture from the rising edge capture. This calculation provides the measure of the reflected energy. In the case of the three LED example, once the value of the reflected energy is measured for the current LED the ISR also moves the external gate enable to the next LED in the sequence and the cycle repeats.
PTM Published on: 2011-02-14