Actions
Task #3381
closedTask #3369: Sync with RPM
Software Readiness - Synchronous RPM
Task #3381:
Software Readiness - Synchronous RPM
Description
Software Readiness for RPM Capture
Updated by Mohan Kashyap about 2 months ago
- Subject changed from Software Readiness to Software Readiness - Synchronous RPM
Updated by Mohan Kashyap about 1 month ago
- 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
- Target version set to RHMS-ISTRAC
Updated by Mohan Kashyap about 1 month ago
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
- Status changed from Resolved to Closed
Actions