Search found 408 matches
- Wed Oct 25, 2023 5:03 pm
- Forum: General discussion
- Topic: Speed Up your IO !!
- Replies: 16
- Views: 5947
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: 5947
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.
- Sat Oct 14, 2023 1:39 pm
- Forum: General discussion
- Topic: Load Firmware from sd
- Replies: 6
- Views: 2638
Re: Load Firmware from sd
It can be done, but not without using LL or CMSIS and it will need way more flash and RAM then code written in "pure" c/c++.
There are many open source bootloaders that use SD card to flash firmware. You might even find one for your MCU or might need to tweak few lines of code.
There are many open source bootloaders that use SD card to flash firmware. You might even find one for your MCU or might need to tweak few lines of code.
- Thu Oct 12, 2023 3:29 pm
- Forum: General discussion
- Topic: I2C Communication between DS3231 and STM32 BluePill
- Replies: 1
- Views: 1240
Re: I2C Communication between DS3231 and STM32 BluePill
Have you tried any DS3231 library ??
- Fri Aug 25, 2023 4:35 pm
- Forum: Projects
- Topic: Voltage divider on Nucleo STM32L452RE bad accuracy
- Replies: 8
- Views: 7801
Re: Voltage divider on Nucleo STM32L452RE bad accuracy
So that brings me to two new questions: 1. if using such a voltage divider circuit for multiple PCB's, how do you ensure consistency? Measure the actual resistance values prior to uploading code, and then hardcode the individual resistor values into the Arduino program for each PCB? I.e. calibratio...
- Thu Aug 24, 2023 8:35 pm
- Forum: Projects
- Topic: Voltage divider on Nucleo STM32L452RE bad accuracy
- Replies: 8
- Views: 7801
Re: Voltage divider on Nucleo STM32L452RE bad accuracy
1. Are you sure, the input voltage is exactly 3.3V ??
2. Are you sure that those resistors are exactly 4.7M and 2.2M ?
2. Are you sure that those resistors are exactly 4.7M and 2.2M ?
- Sat Aug 12, 2023 11:43 pm
- Forum: General discussion
- Topic: STM32F103C8T6 blue pill INPUT pullup issue
- Replies: 2
- Views: 1302
Re: STM32F103C8T6 blue pill INPUT pullup issue
1. If you're using pullups, then with button pressed you get 0, and not pressed you get 1.
2. PC12-PC15 pins cannot source current, but they can sink, so pin provides GND to LED. 0 = on, 1= off
2. PC12-PC15 pins cannot source current, but they can sink, so pin provides GND to LED. 0 = on, 1= off
- Mon Aug 07, 2023 7:28 pm
- Forum: IDE's
- Topic: Arduino IDE Bootloader for STM32F072C8T
- Replies: 1
- Views: 6362
Re: Arduino IDE Bootloader for STM32F072C8T
F072C8 has DFU bootloader, so just reset it into bootloader and you can flash it using USB.
Also STM does not provide software USB bootloaders.
You can probably make one using this: https://github.com/Serasidis/STM32_HID_Bootloader
Also STM does not provide software USB bootloaders.
You can probably make one using this: https://github.com/Serasidis/STM32_HID_Bootloader
- Sat Jul 29, 2023 4:28 pm
- Forum: Libraries & Hardware
- Topic: PWM pin in STM32F103C8 blue pill
- Replies: 8
- Views: 9124
Re: PWM pin in STM32F103C8 blue pill
PWM does not control voltage. You cannot use PWM to lower voltage, it only controls time how long power is turned on and off.
Voltage reading will depend on your meter, PWM frequency, board hardware and MCU.
Voltage reading will depend on your meter, PWM frequency, board hardware and MCU.
- Sat Jul 22, 2023 1:26 pm
- Forum: General discussion
- Topic: I want to create a 'hex' file via 'STM32Duino' (Arduino sketch).
- Replies: 13
- Views: 3078
Re: I want to create a 'hex' file via 'STM32Duino' (Arduino sketch).
No. .bin extension is for "binary". STM32 MCUs use binary files for firmware upload. You need .bin file if you want to upload firmware to STM32 MCU, unless you have an application that converts HEX file into binary format before uploading it.