Search found 5 matches

by mleo
Mon Jun 03, 2024 4:39 pm
Forum: General discussion
Topic: Interrupt latency questions
Replies: 14
Views: 6409

Re: Interrupt latency questions

Thank you for the replies. I’m going to try using timer DMA with an external clock. If I can get it to work it’ll be fast enough.
by mleo
Mon Jun 03, 2024 1:12 pm
Forum: General discussion
Topic: Interrupt latency questions
Replies: 14
Views: 6409

Re: Interrupt latency questions

Here's the code I used:


#include <Arduino.h>

HardwareTimer *MyTim;
volatile uint32_t afterMicros;

void Clear() //Interrupt callback
{
MyTim->pause();
}

void setup()
{
Serial.begin(115200); // opens serial port, sets data rate to 115200 bps
while (!Serial) {
digitalWrite(LED_BUILTIN, HIGH ...
by mleo
Mon Jun 03, 2024 4:39 am
Forum: General discussion
Topic: Interrupt latency questions
Replies: 14
Views: 6409

Re: Interrupt latency questions

Thanks for replying. I suspect something is wrong with the way I'm measuring the cycles. The docs say it should respond in 12 cycles, so 600 is way out of line. I suspect there's overhead added to resolve pins and stash all the states, but it can't be that many ticks. I've been reading about timer ...
by mleo
Sun Jun 02, 2024 12:55 pm
Forum: General discussion
Topic: Interrupt latency questions
Replies: 14
Views: 6409

Interrupt latency questions

Hello,
I'm new to STM32's. I'm using an L432KC to develop for convenience to learn timers and interrupt handling. I'm trying to read an encoder that uses an SSI protocol. I filter the values and send it on via SSI. SSI protocol is a simple clocked serial stream.

I have a couple questions:

1) I ...
by mleo
Sun Jun 02, 2024 12:27 pm
Forum: Let us know a bit about you and your projects
Topic: Hello
Replies: 1
Views: 4115

Hello

Hello,
I'm working on an encoder to CAM project. I'm using a NUCLEO-L432KC for development.

Go to advanced search