Project

General

Profile

Actions

Task #3381

closed

Task #3369: Sync with RPM

Software Readiness - Synchronous RPM

Task #3381: Software Readiness - Synchronous RPM

Added by Mohan Kashyap about 2 months ago. Updated 21 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
16/03/2026
Due date:
18/03/2026
% Done:

100%

Estimated time:
24:00 h
Spent time:

Description

Software Readiness for RPM Capture

Updated by Mohan Kashyap about 2 months ago Actions #1

  • Subject changed from Software Readiness to Software Readiness - Synchronous RPM

Updated by Mohan Kashyap about 1 month ago Actions #2

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

The setup was tested with Signal Generator and got accurate values

Updated by Thomas Joseph about 1 month ago Actions #3

  • Target version set to RHMS-ISTRAC

Updated by Mohan Kashyap about 1 month ago Actions #4

struct _pin sync_in_pins = {PIO_GROUP_C, PIO_PC30, PIO_INPUT, PIO_DEFAULT};
struct _pin sync_out_pins = {PIO_GROUP_E, PIO_PE27, PIO_OUTPUT_1, PIO_DEFAULT};

// 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)
{
	while(pio_get(&sync_in_pins));
	pulse_count++;
	while(!pio_get(&sync_in_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 Mohan Kashyap 21 days ago Actions #5

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom