Task #3386
openSync-ed acquisition with ext. trigger
100%
Description
A. Sync. In
Start acquisition with ext trigger input
Protocol : start acq. when a low to high transition at the input and stop after
a. "N" counts of pulses
b. duration set by application software,
c. input goes low
B. Sync. out (this is always required)
a. Signal to be high during acq.
The options set by GUI application
Updated by Mohan Kashyap about 2 months ago
- Due date set to 23/03/2026
- Estimated time set to 24:00 h
Updated by Thomas Joseph about 1 month ago
- Description updated (diff)
Updated by Thomas Joseph about 1 month ago
- Description updated (diff)
Updated by Thomas Joseph about 1 month ago
- Target version set to RHMS-ISTRAC
Updated by Mohan Kashyap about 1 month ago
- Status changed from New to In Progress
Updated by Mohan Kashyap about 1 month ago
- % Done changed from 0 to 50
The Standalone application works fine. Needs to be integrated with VAS Embedded application
struct _pin sync_in_pins = {PIO_GROUP_B, PIO_PB28, PIO_INPUT, PIO_PULLDOWN | PIO_DEBOUNCE | PIO_IT_RISE_EDGE};
struct _pin sync_out_pins = {PIO_GROUP_E, PIO_PE5, PIO_INPUT, PIO_PULLDOWN | PIO_DEBOUNCE | PIO_IT_RISE_EDGE};
// pin configuration
pio_configure(&sync_in_pins, 1);
pio_configure(&sync_out_pins, 1);
pulse_count = 0;
uint32_t start_time = timer_get_tick();
while(1)
{
printf("Waiting for HIGH\n\r");
while(pio_get(&sync_out_pins));
printf("Waiting for LOW\n\r");
pulse_count++;
while(!pio_get(&sync_out_pins));
if(timer_get_tick() - start_time >= 1000)
{
printf("Pulse Count = %d\n\r", pulse_count);
pulse_count = 0;
start_time = timer_get_tick();
}
}
Updated by Sunder Venugopal about 1 month ago
- Due date changed from 23/03/2026 to 02/04/2026
Due date preponed
Updated by Mohan Kashyap 21 days ago
- Due date changed from 02/04/2026 to 15/04/2026
GPIO has to be programmed
Updated by Mohan Kashyap 19 days ago
- Status changed from In Progress to Resolved
- % Done changed from 50 to 100
The new gpio PC20 has been configured for sync-in and tested
Updated by Thomas Joseph 19 days ago
What is the latency in start and stop ?