Search found 1 match

by sigurd.tullander
Fri 10. Jul 2026, 16:33
Forum: PCAN-MicroMod FD
Topic: MicroMod FD Analog1 - frequency in on Digital 0-5
Replies: 2
Views: 7949

Re: MicroMod FD Analog1 - frequency in on Digital 0-5

Hello,

You can read the frequency and dutycycle of the DIn_X pins with the following code.

First of all, include "fin.h":


#include "fin.h"


In your startup sequence, configure and initialize the channels for frequency inputs:


uint8_t channel = 0; // DIn_0
uint8_t enable = 1;
// Frequency ...