Skip to main content
13 events
when toggle format what by license comment
Jun 13, 2023 at 22:40 answer added Sajad K.v.d timeline score: 1
Jul 21, 2017 at 19:07 review Close votes
Jul 24, 2017 at 6:54
Jul 21, 2017 at 17:58 answer added user39382 timeline score: 4
Jul 21, 2017 at 12:57 comment added DiBosco You can't achieve it with it being used a GPIO and toggling it in software. Also, I think, it's to do with how quickly the pin switches and therefore how much it impacts on EMC.
Jul 21, 2017 at 11:42 answer added Jeroen3 timeline score: 2
Jul 21, 2017 at 11:41 comment added Bence Kaulics The first question, what is that you want to do exactly with this GPIO?
Jul 21, 2017 at 10:56 comment added Ligo George So now I have one more doubt, in the datasheet it says that GPIO maximum speed is 50MHz, . How can I achive it ?
Jul 21, 2017 at 10:54 comment added DiBosco Imagine if each instruction took once cycle (which they won't). That's 13.9ns per instruction. Six instructions would take 83.3ns which would give you 12MHz. Now go look up how many cycles each of these instructions actually takes and do the maths.
Jul 21, 2017 at 10:53 comment added Ligo George I am not trying to generate a square wave.... I need to drive LED displays in higher frequencies. So I was just testing the maximum gpio speed.
Jul 21, 2017 at 10:52 comment added Ligo George Can you please explain the reason for the above behaviour ? If the above code is executing at 72MHz, GPIO output frequency has to be much higher right ?
Jul 21, 2017 at 10:52 comment added DiBosco Even if each one of those instructions took one cycle, you'd only get 12MHz. What are you trying to achieve with this? Are you simply wanting to produce a square wave? If so, you need to use a PWM. Using this method your processor would be doing nothing but being a square wave generator!
Jul 21, 2017 at 10:49 comment added Jeroen3 You should use a timer.
Jul 21, 2017 at 10:46 history asked Ligo George CC BY-SA 3.0