Search found 154 matches

by acronis
Mon Dec 18, 2017 2:10 pm
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 21
Views: 467

Re: generator on a timer with an interval of 25 nanoseconds ?

Code: Select all

InitMCO1();
How to apply it ?
Can also give a small working example ?
by acronis
Mon Dec 18, 2017 2:04 pm
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 21
Views: 467

Re: generator on a timer with an interval of 25 nanoseconds ?

Well, it must be a square-wave signal, because it is a digital output PWM signal from timer 5 compare channel 1.
hmmm . But it's not .Why ...

With the oscilloscope

https://yadi.sk/i/Ly1g8RBe3QiqfN
by acronis
Mon Dec 18, 2017 1:47 pm
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 21
Views: 467

Re: generator on a timer with an interval of 25 nanoseconds ?

If anyone is interested, the measurement results look like this
https://yadi.sk/i/C05IOvNy3Qijun
by acronis
Mon Dec 18, 2017 1:35 pm
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 21
Views: 467

Re: generator on a timer with an interval of 25 nanoseconds ?

If you just need a square wave, it should be possible to to output the system clock (up to 168MHz) via the MCO pins but I can't provide you the technical details..
And where can I see information ?
by acronis
Mon Dec 18, 2017 1:28 pm
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 21
Views: 467

Re: generator on a timer with an interval of 25 nanoseconds ?

Hi ahull. Thanks for Your hint, but I'm not good friends with the construction of schemes and I don't want to use any external components , and I want to only microcontroller . The more code that has prompted dear sevestrong works fine. Just want to deal with those questions that I wrote that I unde...
by acronis
Mon Dec 18, 2017 1:02 pm
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 21
Views: 467

Re: generator on a timer with an interval of 25 nanoseconds ?

Hello stevestrong ! I am very grateful for Your invaluable help in the study of this beautiful microcontroller STM32F407 ! It is not a rectangular generator, but I think this is what I need and will work fine from me ! Code I liked it, but I have a few questions for You: 1. I have not found informat...
by acronis
Sun Dec 17, 2017 11:13 pm
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 21
Views: 467

Re: generator on a timer with an interval of 25 nanoseconds ?

Good afternoon everyone. I need to generate a square signal of 1 bit (output either 0 or 1 ) with high frequency using a timer. The frequency of generation needs the most high , more than 1 MHz Image https://yadi.sk/i/O_BCSslH3Qheba ( Tell me on what site to upload images so that they appear on the ...
by acronis
Sun Dec 17, 2017 2:27 pm
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 21
Views: 467

Re: generator on a timer with an interval of 25 nanoseconds ?

I understand You correctly, that the more frequency of 625 kHz at the timer without overclocking out any ways ?
I need a simple generator of rectangular pulses

And without the use of PWM it is possible to obtain a high speed of generation ?
by acronis
Sun Dec 17, 2017 4:26 am
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 21
Views: 467

Re: generator on a timer with an interval of 25 nanoseconds ?

Hello RogerClark !

Whether correctly I understood You that it is necessary to do so ?
timer.setPrescaleFactor(4);

If not, tell me how to do it. I really need the PWM frequency is much faster than 1 MHz!
by acronis
Sun Dec 17, 2017 4:20 am
Forum: General discussion
Topic: [SOLVED] generator on a timer with an interval of 25 nanoseconds ?
Replies: 21
Views: 467

Re: generator on a timer with an interval of 25 nanoseconds ?

Hello stevestrong !
I included the line pinMode(PA1, PWM) in setup().

What code is necessary to enter into
void timer_interrrupts()
{
???
}

for this to work ?