Project

General

Profile

Actions

Task #3386

open

Sync-ed acquisition with ext. trigger

Task #3386: Sync-ed acquisition with ext. trigger

Added by Thomas Joseph about 2 months ago. Updated 19 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
16/03/2026
Due date:
15/04/2026 (19 days late)
% Done:

100%

Estimated time:
24:00 h
Spent time:

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 Actions #1

  • Due date set to 23/03/2026
  • Estimated time set to 24:00 h

Updated by Thomas Joseph about 1 month ago Actions #2

  • Description updated (diff)

Updated by Thomas Joseph about 1 month ago Actions #3

  • Description updated (diff)

Updated by Thomas Joseph about 1 month ago Actions #4

  • Target version set to RHMS-ISTRAC

Updated by Mohan Kashyap about 1 month ago Actions #5

  • Status changed from New to In Progress

Updated by Mohan Kashyap about 1 month ago Actions #6

  • % 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 Actions #7

  • Due date changed from 23/03/2026 to 02/04/2026

Due date preponed

Updated by Mohan Kashyap 21 days ago Actions #8

  • Due date changed from 02/04/2026 to 15/04/2026

GPIO has to be programmed

Updated by Mohan Kashyap 19 days ago Actions #9

  • 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 Actions #10

What is the latency in start and stop ?

Actions

Also available in: PDF Atom