Timer interrupt 1MHz

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
rradojko
Posts: 40
Joined: Thu Jun 21, 2012 8:53 am
Has thanked: 10 times
Been thanked: 2 times
Contact:

Timer interrupt 1MHz

Post by rradojko »

I use licensed Flowcode6.
Is it possible to make a 1MHz interrupt at the B5 (it can also be some other way out) output with the Arduino Nano?
If so, how to do it?
Does anyone have an example of Flowcode timer code TMR0 or TMR1?

Thank you very much.

User avatar
Bachman
Posts: 116
Joined: Sun Sep 07, 2014 11:37 am
Location: Hungary
Has thanked: 9 times
Been thanked: 53 times
Contact:

Re: Timer interrupt 1MHz

Post by Bachman »

1 MHz interrupt is extremly frequent to handle it correctly and use the MCU to other tasks. You should use a PWM output or a dedicated oscillator circuit.

rradojko
Posts: 40
Joined: Thu Jun 21, 2012 8:53 am
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: Timer interrupt 1MHz

Post by rradojko »

Bachman wrote:
Wed Dec 23, 2020 6:46 pm
1 MHz interrupt is extremly frequent to handle it correctly and use the MCU to other tasks. You should use a PWM output or a dedicated oscillator circuit.
Thanks for the reply.
Yes, 1MHz will probably be a really high frequency.
How to write a PWM program to be on P5 5KHz pin????

Can anyone show any example of a PWM program running at 5KHz-?

Thanks.

Post Reply