Dear All,
I purchased the H7 Portenta Lite recently and was very surprised about the jitter and the slow speed of the interrupt detection. Following scenario:
I have connected an 8Khz rectangle signal to the PH_15 Pin. Based on the rising or falling edge I am setting the PA_8 either high or low. When I look at the 8Khz Signal and the output of PA_8, PA_8 needs around 1us to be set to High and around 1us again to go to low.
Further, there is around 100-300ns jitter on the output of PA_8.
I expected much higher speeds due to the 480Mhz or 240MHz clock. Is there a way to speed up the detection process or minimize the jitter?
Thanks a lot.
Here is the code:
#include <mbed.h>
#include <Arduino.h>
mbed::InterruptIn lineTrigger(PH_15); //Pin 9 Left Side connected to LineTrigger
mbed::DigitalOut modulationOut(PA_8);
volatile bool lineTriggerPinState = false;
void setup()
{
lineTrigger.mode(PullUp);
lineTrigger.rise(&lineTriggerInterruptSetHigh);
lineTrigger.fall(&lineTriggerInterruptSetLow);
modulationOut.write(0);
}
void loop()
{
}
void lineTriggerInterruptSetHigh()
{
GPIOA->ODR |= (1 << 8);
}
void lineTriggerInterruptSetLow()
{
GPIOA->ODR &= ~( 1<< 8);
}