Search found 60 matches
- Wed May 18, 2022 8:21 am
- Forum: General discussion
- Topic: Unwanted ISR call from timer ??
- Replies: 7
- Views: 2100
Re: Unwanted ISR call from timer ??
Hi @ozcar, All your analysis is true, and adding refresh() before resume() is an appropriate solution. What is wrong, is the comment in the code you mentioned, it is no more fully appropriate since introduction of Pull Request https://github.com/stm32duino/Arduino_Core_STM32/pull/806 The appropriate...
- Fri May 13, 2022 9:21 pm
- Forum: General discussion
- Topic: Adding Timer 2nd PWM channel breaks execution
- Replies: 2
- Views: 1340
Re: Adding Timer 2nd PWM channel breaks execution
Hi @el_fela , According to Blackpill Timer pin mapping PinMap_TIM[] , PB0 (or PB_0) is by default assigned to TIM1_CH2N : https://github.com/stm32duino/Arduino_Core_STM32/blob/0e00a8d8904d867acba88ddb313a804d4670b0b0/variants/STM32F4xx/F411C(C-E)(U-Y)/PeripheralPins_BLACKPILL_F411CE.c#L99 In order t...
- Fri Apr 01, 2022 2:53 pm
- Forum: General discussion
- Topic: HardwareTimer Library PWM Settings
- Replies: 5
- Views: 2843
Re: HardwareTimer Library PWM Settings
Hi @mrubio, Unfortunately, no, you don't have a bluepill, this is a different board, even if they have both the same chip (stm32f103C8). Guys from UpBoard, reuse bluepill configuration (bluepill variant) by simplicity, to avoid to create their own, but this is clearly a mistake: On bluepill board th...
- Wed Mar 30, 2022 8:15 am
- Forum: General discussion
- Topic: HardwareTimer Library PWM Settings
- Replies: 5
- Views: 2843
Re: HardwareTimer Library PWM Settings
Hi @mrubio, I don't see issue in your code. So I tested on my bluepill (stm32f103c8), and everything work as expected: period 2000us and pulse high 1100us Below you can see the full sketch I used. Note: I am using "BluePill F103C8" variant ("Board part number" in Arduino IDE menu...
- Tue Mar 29, 2022 1:33 pm
- Forum: General discussion
- Topic: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341
- Replies: 15
- Views: 4411
Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341
@aryan.ir For sure official core is able to work with 2 SPI instances in parallel.
And I am surprised that you cannot use SPI2 with "Adafruit_ILI9341.h"
Can you share the corresponding sketch?
And I am surprised that you cannot use SPI2 with "Adafruit_ILI9341.h"
Can you share the corresponding sketch?
- Fri Mar 25, 2022 9:42 am
- Forum: General discussion
- Topic: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341
- Replies: 15
- Views: 4411
Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341
Warning: SPI.setModule(2); Correspond to RogerClark's core whereas https://github.com/stm32duino/wiki/wiki/API#spi correspond to official STMicroelectronics core: Arduino_Core_STM32 and this setModule method doesn't exist in Arduino_Core_STM32 So which Core are you using ? Concerning Arduino_Core_ST...
- Mon Mar 14, 2022 8:48 am
- Forum: General discussion
- Topic: How to dynamically change duty cycle with HardwareTimer library?
- Replies: 24
- Views: 8300
Re: How to dynamically change duty cycle with HardwareTimer library?
I just figure out that there was an error in documentation (wiki).
probably a wrong copy/past. It is now fixed
The right information is:
probably a wrong copy/past. It is now fixed
The right information is:
Code: Select all
CaptureCompare range: [0.. 0xFFFF]
- Mon Mar 14, 2022 8:27 am
- Forum: General discussion
- Topic: How to dynamically change duty cycle with HardwareTimer library?
- Replies: 24
- Views: 8300
Re: How to dynamically change duty cycle with HardwareTimer library?
With Arduino API setCaptureCompare() and setOverflow() I tried to abstract the complexity of Registers (where sometimes -1 is applies sometime not, depending on register), so for those API, when using TICK_FORMAT, the parameter is the number of tick (and not register value). * setOverflow() : if you...
- Fri Feb 18, 2022 8:48 am
- Forum: General discussion
- Topic: How to dynamically change duty cycle with HardwareTimer library?
- Replies: 24
- Views: 8300
Re: How to dynamically change duty cycle with HardwareTimer library?
setPWM() API is not designed to change duty only, it is there to fully configure the Timer from scratch.
To change only dutycycle, setCaptureCompare() is the appropriate API.
To change only dutycycle, setCaptureCompare() is the appropriate API.
- Fri Feb 11, 2022 10:07 am
- Forum: General discussion
- Topic: STM32L082 dual bank - example code
- Replies: 7
- Views: 9861
Re: STM32L082 dual bank - example code
@Beuzekom , you need to check the revision of your chip, because there is a Hardware issue on some version. How to check revision: see datasheet https://www.st.com/resource/en/datasheet/stm32l082cz.pdf and look for "marking example" and "Revision code" For bug details, see errata...