Search found 13 matches

by FGS
Wed Aug 09, 2023 3:54 pm
Forum: General discussion
Topic: Serial MIDI problem with note off
Replies: 0
Views: 17463

Serial MIDI problem with note off

Hello everyone,

So i wrote a code handling polyphonic MIDI - nothing really complicated (it needs to be optimized for some peculiar cases like having error into the messages)

void handleMidiInput()
{
if (Serial.available() > 0)
{

byte incoming_byte = Serial.read() ;

switch (MIDI_reception ...
by FGS
Tue Apr 11, 2023 11:24 pm
Forum: General discussion
Topic: Generating triggers with a very precise timing
Replies: 9
Views: 4471

Re: Generating triggers with a very precise timing

Thanks everyone for your contribution - I will definitively try some of those solutions, also after some more enquiries i suspect the crystal to be indeed not at 8MHz. The error i measured is way less than 0,1%, another solution i m into is to calibrate the timing : sending a precise reference for ...
by FGS
Tue Apr 04, 2023 4:14 pm
Forum: General discussion
Topic: Generating triggers with a very precise timing
Replies: 9
Views: 4471

Re: Generating triggers with a very precise timing

This is the code i am using now

In the setup :


Timer2.pause() ;
Timer2.setMode(TIMER_CH1, TIMER_OUTPUTCOMPARE);
Timer2.setPeriod(100); // in microseconds - 10kHz
Timer2.setCompare(TIMER_CH1, 1); // overflow might be small
Timer2.attachInterrupt(TIMER_CH1, htimer_interrupt);
Timer2 ...
by FGS
Sat Apr 01, 2023 1:14 am
Forum: General discussion
Topic: Generating triggers with a very precise timing
Replies: 9
Views: 4471

Re: Generating triggers with a very precise timing

Thanks for the suggestion, besides using the PWM solution i m still scratching my head to understand what's going on - do we agree the timing should be really more accurate ?
Also I have four signals to generate like this with different periods and variable timing (but still that needs to be quite ...
by FGS
Thu Mar 30, 2023 12:30 am
Forum: General discussion
Topic: Generating triggers with a very precise timing
Replies: 9
Views: 4471

Generating triggers with a very precise timing

Hello everyone,

for a project i need to generate triggers at a precise period.
It seems the triggers are drifiting from a reference (a few ms after several minutes which is not ok for my application).

In order to have the more precise period possible, i worked with a timer interupt (at 10kHz ...
by FGS
Fri Nov 19, 2021 5:47 pm
Forum: General discussion
Topic: GD32f103 and I2C
Replies: 3
Views: 3880

Re: GD32f103 and I2C

Thanks for the answer - i was afraid i missed something not reading the forum for one entire year :)
by FGS
Fri Nov 19, 2021 12:53 am
Forum: General discussion
Topic: GD32f103 and I2C
Replies: 3
Views: 3880

GD32f103 and I2C

Hello everyone,

i rencently bought some gd32f103cBt6 to replace the quite pricey stm32 :)

I just drop the gd on a custom dev card i have - running with a 8MHz crystal. I had no problem uploading my sketch, working with the GPIO and the SPI but not with the I2C. I know it must be related to the ...
by FGS
Thu Nov 12, 2020 5:16 pm
Forum: General discussion
Topic: Uploading hex files to stm32f103
Replies: 6
Views: 13705

Re: Uploading hex files to stm32f103



You can use STM32CubeProgrammer


So dowmload it ready to upload but ... Which adress should i write the bin file to ? I m wondering if 0#08000000 is the address for the bootloader and if my bin file should start at a further adress.

Thank you !


Edit : just checked with my arduino IDE ...
by FGS
Thu Nov 12, 2020 5:11 pm
Forum: General discussion
Topic: Uploading hex files to stm32f103
Replies: 6
Views: 13705

Re: Uploading hex files to stm32f103

GonzoG wrote: Wed Nov 11, 2020 12:15 am You can use STM32CubeProgrammer
So dowmload it ready to upload but ... Which adress should i write the bin file to ? I m wondering if 0#08000000 is the adress for the bootloader and if my bin file should start at a further adress.

Thank you !
by FGS
Wed Nov 11, 2020 12:41 pm
Forum: General discussion
Topic: Uploading hex files to stm32f103
Replies: 6
Views: 13705

Re: Uploading hex files to stm32f103

Thanks everyone !!! That s really helpfull :D

Go to advanced search