- Sun Aug 02, 2020 4:47 am
#217706
Hello there,
I'm trying to connect my RC Receiver to a Redboard Artemis, the Problem is, reading the pulse lenght from the receiver isnt as easy as I thought. I previosly worked with an Arduino Uno and upgraded to the Redboard because of the faster cpu, so I searched in the apollo 3 Datasheet for possible methods to count how long it takes between the choosen pin to get high and low. I could use the commands in the arduino IDE, but for my purposes I need a quick way to read 6 pins, so I prefer direct Register Manipulation. Many other microcontroler got a method called Input Capture Mode and it works like this: "Embedded systems using input capture will record a timestamp in memory when an input signal is received. It will also set a flag indicating that an input has been captured. This allows the system to continue executing without interruption while an input is being received while still having the capability to trigger events based on the exact time when the input was received".
I now I copy and pasted it, but as far as i know, the apollo 3(Redboard Artemis) isnt capable of doing this.
So my final question is: How can i get precised Pulse Capture with the Redboard Artemis?
Thank you in advance for the help.
I'm trying to connect my RC Receiver to a Redboard Artemis, the Problem is, reading the pulse lenght from the receiver isnt as easy as I thought. I previosly worked with an Arduino Uno and upgraded to the Redboard because of the faster cpu, so I searched in the apollo 3 Datasheet for possible methods to count how long it takes between the choosen pin to get high and low. I could use the commands in the arduino IDE, but for my purposes I need a quick way to read 6 pins, so I prefer direct Register Manipulation. Many other microcontroler got a method called Input Capture Mode and it works like this: "Embedded systems using input capture will record a timestamp in memory when an input signal is received. It will also set a flag indicating that an input has been captured. This allows the system to continue executing without interruption while an input is being received while still having the capability to trigger events based on the exact time when the input was received".
I now I copy and pasted it, but as far as i know, the apollo 3(Redboard Artemis) isnt capable of doing this.
So my final question is: How can i get precised Pulse Capture with the Redboard Artemis?
Thank you in advance for the help.