RPICT Minimum Output Rate: Difference between revisions

From lechacal
Jump to navigation Jump to search
Line 14: Line 14:


Take a look at the example below with a RPICT8 card sampled at 2 seconds where the minimum output rate is 3.2 seconds.<br>
Take a look at the example below with a RPICT8 card sampled at 2 seconds where the minimum output rate is 3.2 seconds.<br>
Duplicate values are circled in red.
Some of the duplicated values are circled in red.


[[File:Screenshot 2023-11-10 19-46-27.png | 600px]]
[[File:Screenshot 2023-11-10 19-46-27.png | 500px]]
 
In this case because the micro-controller is not able to sample all channels it outputs the result in memory twice for some of them.
 
= Calculating the minimum output rate=
 
The minimum output rate is given by
 
[[File:Screenshot 2023-11-10 19-58-58.png]]

Revision as of 19:59, 10 November 2023

Why is there a minimum output rate?

The micro-controller performs task once after the other. It must complete the sampling of all configured channels before sending another serial output out.

The example below show the task scheduling where 3 channels are computed. The output rate must be larger than the time it takes to sample all channels.

What happen if the output rate is too low

If a low output rate is set the microcontroller will respect what is configured and output serial data at the given rate. The output stream will show duplicate values in subsequent output.

Take a look at the example below with a RPICT8 card sampled at 2 seconds where the minimum output rate is 3.2 seconds.
Some of the duplicated values are circled in red.

In this case because the micro-controller is not able to sample all channels it outputs the result in memory twice for some of them.

Calculating the minimum output rate

The minimum output rate is given by