Don't treat GPIO pins as power source. They are not meant for this.
And yes, they can be set to low state (GND) or high (usually 3.3V).
Search found 406 matches
- Sun Apr 28, 2024 8:55 pm
- Forum: General discussion
- Topic: STM32 Pinout Polarity
- Replies: 3
- Views: 115
- Sun Apr 28, 2024 12:42 pm
- Forum: General discussion
- Topic: STM32 Pinout Polarity
- Replies: 3
- Views: 115
Re: STM32 Pinout Polarity
Depends on what you mean by "-".
1. Is it a negative voltage (in relation to GND) - then they are always >= 0V
2. or is it GND - then both. They can be + or -.
1. Is it a negative voltage (in relation to GND) - then they are always >= 0V
2. or is it GND - then both. They can be + or -.
- Sat Apr 27, 2024 5:05 pm
- Forum: General discussion
- Topic: Stumbling at the first connection...
- Replies: 5
- Views: 408
Re: Stumbling at the first connection...
F103 does not have hardware USB bootloader. If there is no firmware with USB support there won't be a connection.
I recommend flashing HID bootloader, but you need USB-TTL adapter or ST-Link.
I recommend flashing HID bootloader, but you need USB-TTL adapter or ST-Link.
- Sat Mar 02, 2024 11:35 am
- Forum: General discussion
- Topic: Where to find "SysTick->VAL" is modified ?
- Replies: 2
- Views: 908
Re: Where to find "SysTick->VAL" is modified ?
You won't find it. It's hardware counter. It's changed by hardware.
- Sat Jan 27, 2024 10:03 am
- Forum: STM32H7 based boards
- Topic: STM32H723
- Replies: 3
- Views: 1814
Re: STM32H723
SKR 3 uses 25MHz external oscillator, generic H723 is defined with internal oscillator, you might need to define new board variant: https://github.com/stm32duino/Arduino_Core_STM32/wiki/Add-a-new-variant-%28board%29 or redefine SystemClock_Config(void) Also, I think that HS USB needs external PHY th...
- Wed Jan 24, 2024 6:58 pm
- Forum: General discussion
- Topic: I failed to output PWM with PA7 and PA8 at the same time
- Replies: 4
- Views: 1976
Re: I failed to output PWM with PA7 and PA8 at the same time
analogWriteFrequency(1000);is to set the frequency of all PWM, how to set the frequency of 1 pin separately analogWriteFrequency(); changes frequency for next use of analogWrite(), but it will change frequency for all channels on a timer. If you use 2 or more pins that use same timer for PWM, frequ...
- Sat Nov 11, 2023 8:24 pm
- Forum: General discussion
- Topic: How to generate truly random numbers on STM32F401CCU6 in Arduino IDE?
- Replies: 4
- Views: 5167
Re: How to generate truly random numbers on STM32F401CCU6 in Arduino IDE?
Probably the same as for F407:
viewtopic.php?p=12993#p12993
viewtopic.php?p=12993#p12993
- Thu Oct 26, 2023 7:06 pm
- Forum: General discussion
- Topic: Speed Up your IO !!
- Replies: 16
- Views: 5553
Re: Speed Up your IO !!
digitalWriteFast and digitalReadFast are using LL functions. With O3 (fastest) optimization they can go this fast.
On F401 and F411 they need 1 MCU cycle.
This is what I get with F411CE:
- Wed Oct 25, 2023 5:03 pm
- Forum: General discussion
- Topic: Speed Up your IO !!
- Replies: 16
- Views: 5553
Re: Speed Up your IO !!
I got 19MHz wit digitalReadFast and 33MHz with digitalWriteFast, but with typing 1000 lines of code. While loop needs few cycles. @GonzoG PLease give us your code ! (I do not pretend to get the fastest .. just starting to play) Sorry.. copied wrong values. Those were Mops/s, so frequency is half of...
- Mon Oct 23, 2023 7:27 pm
- Forum: General discussion
- Topic: Speed Up your IO !!
- Replies: 16
- Views: 5553
Re: Speed Up your IO !!
I got 19MHz wit digitalReadFast and 33MHz with digitalWriteFast, but with typing 1000 lines of code.ManX84 wrote: ↑Mon Oct 23, 2023 4:04 pm Need Faster ?
F = 7 MHz!Code: Select all
// Here use a digitalWriteFast ! do { digitalWriteFast(PC_13, 1); digitalWriteFast(PC_13, 0); } while (1);
While loop needs few cycles.