Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Minimizing MSP430x2xx Input Pin to Output Pin Latency and/or Jitter

$
0
0

I need to forward a digital input signal to two outputs under software control. I could use external tristate buffers but am looking at using MSP430 IO pins to save on board area & cost. The signal when active is around 25 KHz. 

I am wondering if there are any ways, perhaps a clever trick using one of the MSP peripherals that it would be possible to achieve this without 'going through software'/interrupting the processor for every signal transition?  I would like to minimize latency on one output and jitter on the other, and ideally not be too affected by other interrupts firing...  

I am new to MSP430. The best I can think of is to use Timer_A running in continuous mode, with CCR0 in capture mode and CCR1 in compare mode with TA1 (in toggle mode) as my 'low jitter' output. In the TACCR0 interrupt service routine I write to the 'low latency' output pin directly, but assign CCR1 = CCR0 + fixed_delay.  This approach does require an interrupt per signal transition but allows management of time for other interrupts without affecting my 'low jitter' output.

Any ideas on how to improve this or to avoid software intervention for each transition?


Viewing all articles
Browse latest Browse all 262198

Trending Articles