Search found 39 matches

by HDKLog
Sun Jan 22, 2017 9:09 pm
Forum: STM32 Support
Topic: PWM use negative channels Topic is solved
Replies: 9
Views: 1969

Re: PWM use negative channels Topic is solved

Thank you Giovanni!

I thought driver can do it and I'm missing something.
So do I need to do something like this:

Code: Select all

  pwmStart(&PWMD1, &pwmPcfg);
  PWMD1.tim->CCER |= TIM_OutputNState_Enable | TIM_OCNPolarity_High;
  PWMD1.tim->CR2 |= TIM_OCNIdleState_Set;
by HDKLog
Sun Jan 22, 2017 5:40 pm
Forum: STM32 Support
Topic: External ADC & DMA
Replies: 37
Views: 6213

Re: External ADC & DMA

Some Parallel to serial converter can help(for ex: 74F676)... or use ADC with Serial output not Parallel.


Regards, Harry.
by HDKLog
Sun Jan 22, 2017 4:29 pm
Forum: STM32 Support
Topic: PWM use negative channels Topic is solved
Replies: 9
Views: 1969

PWM use negative channels Topic is solved

Hello ! I want to drive BLDC motor, which require 3 positive and 3 negative PWMs to driving 6 mosfets (3 High side and 3 Low side). I saw example of PWM with ICU on stm32f4xx and already have read documentation of ChibisOS but cant figure out how to use positive and negative channels together. How I...
by HDKLog
Fri Dec 02, 2016 4:51 pm
Forum: STM32 Support
Topic: DAC doesn't work on my Nucleo stm32f446RE
Replies: 13
Views: 1991

Re: DAC doesn't work on my Nucleo stm32f446RE

I started from learning board schematic to have full Image of whats going on.The button logic vary from board to board: pin can be attached to pull-up resistor and button to ground and when it will be pressed, it will connect pin to ground cause it go LOW. Another version is where pin attached to pu...
by HDKLog
Fri Dec 02, 2016 9:47 am
Forum: STM32 Support
Topic: DAC doesn't work on my Nucleo stm32f446RE
Replies: 13
Views: 1991

Re: DAC doesn't work on my Nucleo stm32f446RE

Yes all works like expected, I saw pull-up resistor 4.7k on board schematics so it go high and latched to the ground when button is pressed.
by HDKLog
Fri Dec 02, 2016 7:55 am
Forum: STM32 Support
Topic: DAC doesn't work on my Nucleo stm32f446RE
Replies: 13
Views: 1991

Re: DAC doesn't work on my Nucleo stm32f446RE

Thanks for your job tfAteba! I finally found the problem source. In example testhal/STM32/STM32F4xx/DAC/ I find out that reading from Button pin gives you HIGH (1) instead of LOW (0), and "if" condition should be changed from if (palReadPad(GPIOC, GPIOC_BUTTON)) { to if (!palReadPad(GPIOC,...
by HDKLog
Thu Dec 01, 2016 7:18 pm
Forum: STM32 Support
Topic: DAC doesn't work on my Nucleo stm32f446RE
Replies: 13
Views: 1991

Re: DAC doesn't work on my Nucleo stm32f446RE

Thanks for quick reply tfAteba Here is my mcuconf.h DAC config: /* * DAC driver system settings. */ #define STM32_DAC_DUAL_MODE FALSE #define STM32_DAC_USE_DAC1_CH1 TRUE #define STM32_DAC_USE_DAC1_CH2 TRUE #define STM32_DAC_DAC1_CH1_IRQ_PRIORITY 10 #define STM32_DAC_DAC1_CH2_IRQ_PRIORITY 10 #define ...
by HDKLog
Wed Nov 30, 2016 11:49 pm
Forum: STM32 Support
Topic: DAC doesn't work on my Nucleo stm32f446RE
Replies: 13
Views: 1991

DAC doesn't work on my Nucleo stm32f446RE

Hi, I'm trying to make output on pin A4 with DAC driver and it doesn't work. My board is Nucleo 64 (STM32f446RE) and here is my code: int main(void) { /* * System initializations. * - HAL initialization, this also initializes the configured device drivers * and performs the board-specific initializa...
by HDKLog
Thu Oct 06, 2016 1:25 am
Forum: STM32 Support
Topic: USB connection problem
Replies: 3
Views: 1007

Re: USB connection problem

Thank you for quick answer Giovanni ! I used STM32F4 Discovery board configuration, the OTG pins for STM32f407 (STM32F4 Discovery board) and for STM32f405 are the same, I checked them in Manual. What does STM32F407xx defined constant in board.h? I've tried Latest build of ChibiOS and it does the sam...
by HDKLog
Wed Oct 05, 2016 5:31 am
Forum: STM32 Support
Topic: USB connection problem
Replies: 3
Views: 1007

USB connection problem

I have assembled board with stm32f405 microcontroller and external crystal 8 Mhz. It uses ChibiOS 3.0.2. I wanted to test if USB interface works and ran demo from ChibiOS repository for STM32F4-Discovery board called STM32F4xx-USB_CDC. I can see that code runs from debugger, can even switch led but ...

Go to advanced search