Search found 41 matches

by HDKLog
Mon Mar 06, 2017 5:08 am
Forum: General Support
Topic: Triggering ADC with PWM timer Topic is solved
Replies: 5
Views: 1341

Triggering ADC with PWM timer Topic is solved

Hello,
I use PWM driver in my application and want to trigger ADC with it on falling edges. How can I accomplished this ?
PWM driver in mcuconf.h use TIM1 but I cant figure out which CCR it use and how to configure ADC CR2 to start conversion.
by HDKLog
Sun Jan 22, 2017 10:01 pm
Forum: STM32 Support
Topic: PWM use negative channels Topic is solved
Replies: 9
Views: 2262

Re: PWM use negative channels Topic is solved

Thank you for great support Giovanni!! You saved me from few hours of reading manual. I set STM32_PWM_USE_ADVANCED TRUE in mcuconf.h to able to use PWM_COMPLEMENTARY_OUTPUT_ACTIVE_HIGH. and yes that is sufficient for my project as I need only positive and negative outputs from channels, synchronised...
by HDKLog
Sun Jan 22, 2017 9:09 pm
Forum: STM32 Support
Topic: PWM use negative channels Topic is solved
Replies: 9
Views: 2262

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: 6849

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: 2262

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: 2250

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: 2250

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: 2250

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: 2250

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: 2250

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...

Go to advanced search