Posted on November 19, 2015 at 19:03
Hi,
I wanted to know how could I have 5V in a pin associated with a timer. I do this configuration:
/*GPIOA Configuration: TIM9 CH1 (PA2)*/
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;
GPIO_InitStruc...
Posted on November 03, 2015 at 19:25
Hi,
I just bought a xbee and I wanted to control it with a stm32f4-disco. Xbee is simple, I have to send a frame through serial port. I send via USART1 a frame that toggles a led in the remote xbee. The p...
Posted on October 08, 2015 at 17:35
Hi,
I'm working with stm32f4-disco. I made a code that works well: the micro waits for an external interrupt, and when receives the interrupt it makes pulses of 40kHz with a duration of 1 ms. Now, I wanted...
Posted on October 01, 2015 at 16:03
Hi, I think this would be very easy but I can't get just 1 value from ADC on stm32f4-disco. I configure ADC like this:
void ADC_Configuration(void)
{
ADC_CommonInitTypeDef ADC_CommonInitStructure;
A...
Posted on September 18, 2015 at 17:02
Hi,
I was doing some work with ADC using DMA to store the data. So, I tried to configure my stm32f4-disco with an external interrupt. This works good. With the external interrupt I want that the micro ta...
Posted on November 20, 2015 at 11:11
Hi,
Which microcontroller are you using? Sorry, I thought I had said that. I'm using stm32f4-disco. For a static signal... Well I don't want a static signal I'm associatin...
Posted on October 08, 2015 at 18:46
Totally right. I just tried changing TIM1 for TIM9 with same configuration and it works too. With your code works also. Thank you
Posted on October 01, 2015 at 16:13
I changed from:
ADC_RegularChannelConfig(ADC2, ADC_Channel_12, 2, ADC_SampleTime_15Cycles); // PC2
to
ADC_RegularChannelConfig(ADC2, ADC_Channel_12, 1, ADC_SampleTime_15Cycles); // PC2
...
Posted on September 18, 2015 at 18:15
You are right, but I was lost and didn't know what to do.
I checked EXTI interrupt with a LED and blinks at the correct frequency.
I'm doing more stuff with the EXTI interupt. Here's the comp...
Posted on July 21, 2015 at 15:37Ok. Thank you for the advice.There is no way that I can get a range of 0-5V on ADC? The only way is rescaling the input to 0-3V?