Search found 19 matches
- Fri Oct 20, 2023 1:19 pm
- Forum: Off topic
- Topic: No one even mentioned the new Raspberry Pi Pico?
- Replies: 79
- Views: 1737887
Re: No one even mentioned the new Raspberry Pi Pico?
number of capture channels (with digital filter) : https://fr.aliexpress.com/item/1005005303669884.html?spm=a2g0o.productlist.main.53.66a65779egcFwZ&algo_pvid=bf21d72d-2a6a-44a6-8ee2-9c796eaa59ea&algo_exp_id=bf21d72d-2a6a-44a6-8ee2-9c796eaa59ea-26&pdp_npi=4%40dis%21EUR%214.76%213.14%21%2...
- Fri Oct 13, 2023 6:57 pm
- Forum: PR's bugs and enhancements
- Topic: STM32G431CBU6 : comparator setting library
- Replies: 4
- Views: 6057
Re: STM32G431CBU6 : comparator setting library
ok , thanks , working code : #include <Arduino.h> #include "hal_conf_extra.h" // adhoc creation COMP_HandleTypeDef hcomp1; void setup() { Serial.begin(115200); hcomp1.Instance = COMP1; // comes from cube IDE hcomp1.Init.InputPlus = COMP_INPUT_PLUS_IO1; hcomp1.Init.InputMinus = COMP_INPUT_M...
- Wed Oct 11, 2023 8:36 pm
- Forum: PR's bugs and enhancements
- Topic: STM32G431CBU6 : comparator setting library
- Replies: 4
- Views: 6057
Re: STM32G431CBU6 : comparator setting library
#include <Arduino.h> #define HAL_COMP_MODULE_ENABLED COMP_HandleTypeDef hcomp1; void setup() { // comes from cube IDE hcomp1.Instance = COMP1; // comes from cube IDE hcomp1.Init.InputPlus = COMP_INPUT_PLUS_IO1; hcomp1.Init.InputMinus = COMP_INPUT_MINUS_1_2VREFINT; hcomp1.Init.OutputPol = COMP_OUTPU...
- Thu Oct 05, 2023 8:03 am
- Forum: General discussion
- Topic: new Blackpill STM32G431CBU6
- Replies: 22
- Views: 17255
Re: new Blackpill STM32G431CBU6
thanks ag123 my problem isn't the RM or the code to generate , but the fact that the libraries I use then , are not allowed / known by stm32duino so , where can I find the "include files for the predefined registers" , and how can I import and declare them ? (it is a general problem of usi...
- Wed Oct 04, 2023 8:18 pm
- Forum: General discussion
- Topic: new Blackpill STM32G431CBU6
- Replies: 22
- Views: 17255
Re: new Blackpill STM32G431CBU6
oh there is something else I'd think I'd want to explore on this chip/board is the comparators (...) I have just a question on how to program the comparator : nor the HAL or the LL or the LL structure worked for me on stm32duino , and I don't want to do it bare metal , so , ag123 , can you please s...
- Tue Oct 03, 2023 12:49 pm
- Forum: PR's bugs and enhancements
- Topic: STM32G431CBU6 : comparator setting library
- Replies: 4
- Views: 6057
STM32G431CBU6 : comparator setting library
I tried to make it work with HALL , LL (structure) , LL (no structure) , nothing worked #include <Arduino.h> #include "stm32g4xx_hal_comp.h" // ? COMP_HandleTypeDef hcomp1; void setup() { hcomp1.Instance = COMP1; hcomp1.Init.InputPlus = COMP_INPUT_PLUS_IO2; // HAL_COMP_Init(&hcomp1); }...
- Sun Oct 01, 2023 11:10 am
- Forum: PR's bugs and enhancements
- Topic: [SOLVED]STM32G431CBU6 : function (timer8).setMode() does not set the pins ...
- Replies: 2
- Views: 5035
Re: STM32G431CBU6 : function (timer8).setMode() does not set the pins ...
aw great thanks ! I am happy to see that it even works with negative channels , as they can be used as alternative pins for positive channels my working code (I presume the same thing applies for other series) : // "vorbiden" pins : // PA11 , PA12 : USB // PA13 , PA14 : SW // PB8 : BOOT0 /...
- Fri Sep 29, 2023 3:35 pm
- Forum: PR's bugs and enhancements
- Topic: [SOLVED]STM32G431CBU6 : function (timer8).setMode() does not set the pins ...
- Replies: 2
- Views: 5035
[SOLVED]STM32G431CBU6 : function (timer8).setMode() does not set the pins ...
#include <Arduino.h> HardwareTimer timer1(TIM1); HardwareTimer timer8(TIM8); void setup() { Serial.begin(115200); delay(3000) ; // monitor // this works timer1.setMode(1, TIMER_OUTPUT_COMPARE_PWM1, PA8); // PA8's AF6 is TIM1_CH1 timer1.setPrescaleFactor(170 - 1); // TIM1->ARR = 200 ; /// timer1.set...
- Wed Jul 12, 2023 11:16 am
- Forum: General discussion
- Topic: 'STM32F103C8T6' not work PWM Function.
- Replies: 9
- Views: 1413
Re: 'STM32F103C8T6' not work PWM Function.
STM32C8T6 has only 3 timers with each 4 capture compare channels , so you can only get 12 pwm outputs a time