Search found 11 matches
- Wed May 08, 2024 8:48 pm
- Forum: General discussion
- Topic: Using DMA to vary PWM duty cycle
- Replies: 7
- Views: 8015
Re: Using DMA to vary PWM duty cycle
Thank you so much - that was driving me nuts! I swear I tried using the CCR3 register directly at some earlier stage in this process but I must've had something else still mixed up at the time. I have tried a lot of permutations...
- Tue May 07, 2024 7:22 pm
- Forum: General discussion
- Topic: Using DMA to vary PWM duty cycle
- Replies: 7
- Views: 8015
Re: Using DMA to vary PWM duty cycle
cc_channel1 = 3 from the PIN_MAP. That's consistent with the pinout diagram I found online, T3C3:
https://mischianti.org/wp-content/uploads/2022/02/STM32-STM32F1-STM32F103-STM32F103C8T6-pinout-low-resolution.jpg
PB7 is labeled T4C2 in that diagram, so I assumed that was why DMA_REQ_SRC_TIM4_CH2 ...
https://mischianti.org/wp-content/uploads/2022/02/STM32-STM32F1-STM32F103-STM32F103C8T6-pinout-low-resolution.jpg
PB7 is labeled T4C2 in that diagram, so I assumed that was why DMA_REQ_SRC_TIM4_CH2 ...
- Mon May 06, 2024 7:51 pm
- Forum: General discussion
- Topic: Using DMA to vary PWM duty cycle
- Replies: 7
- Views: 8015
Re: Using DMA to vary PWM duty cycle
Okay, so, I'm still struggling with this one. I have an example I found online that does this on pin PB7 but I'd really like to do this on PB0 if I can - or at least to understand why if I can't.
Using PB7, it works:
#define SAMPLES 100
#include <libmaple/dma.h>
dma_tube_config dma_cfg ;
//int ...
Using PB7, it works:
#define SAMPLES 100
#include <libmaple/dma.h>
dma_tube_config dma_cfg ;
//int ...
- Fri Apr 05, 2024 5:20 pm
- Forum: General discussion
- Topic: Using DMA to vary PWM duty cycle
- Replies: 7
- Views: 8015
Re: Using DMA to vary PWM duty cycle
Thank you! I must've misread which line was producing the error!
- Thu Apr 04, 2024 9:12 pm
- Forum: General discussion
- Topic: Using DMA to vary PWM duty cycle
- Replies: 7
- Views: 8015
Using DMA to vary PWM duty cycle
Hello,
I am trying to understand how to use DMA to vary PWM duty cycle so that I could put it through a low-pass filter to create a sine wave. I am using the rogerclarkmelbourne core. I tried doing it with dma_setup_transfer (commented out) and with dma_tube_config (which is evidently the preferred ...
I am trying to understand how to use DMA to vary PWM duty cycle so that I could put it through a low-pass filter to create a sine wave. I am using the rogerclarkmelbourne core. I tried doing it with dma_setup_transfer (commented out) and with dma_tube_config (which is evidently the preferred ...
- Wed Nov 02, 2022 2:45 pm
- Forum: General discussion
- Topic: how to get started with stm32f103
- Replies: 12
- Views: 7961
Re: how to get started with stm32f103
Oh my gosh. After all that, using a different USB cable fixed the problem. Thanks for the suggestions, everyone.
- Tue Nov 01, 2022 8:22 pm
- Forum: General discussion
- Topic: how to get started with stm32f103
- Replies: 12
- Views: 7961
Re: how to get started with stm32f103
Oh dear... Seems someone else (see below) couldn't get USB to work on boards purchased from a similar-named store. That doesn't bode well. I'll try contacting the seller. In the mean time, if anyone has any thoughts on narrowing down the root of the issue please let me know. I don't have a proper ...
- Tue Nov 01, 2022 6:09 pm
- Forum: General discussion
- Topic: how to get started with stm32f103
- Replies: 12
- Views: 7961
Re: how to get started with stm32f103
Thanks. I've gone back and forth enough times that I get mixed up. But using the STM core and enabling USB CDC as shown I still cannot get a COM port to show up after I program it via STLink, switch the boot0 jumper back to 0, disconnect STLink, and connect USB cable. It's looking for a COM7 port ...
- Tue Nov 01, 2022 1:03 am
- Forum: General discussion
- Topic: how to get started with stm32f103
- Replies: 12
- Views: 7961
Re: how to get started with stm32f103
Thank you for the suggestions. I have switched to Arduino IDE 1.8 and set the upload method to STLink. I am able to upload a sketch to make the LED flash. I have to move the boot jumper back and forth for the sketch to persist across resets, but that is progress!
But Arduino 1.8 does not have any ...
But Arduino 1.8 does not have any ...
- Mon Oct 31, 2022 2:49 am
- Forum: General discussion
- Topic: how to get started with stm32f103
- Replies: 12
- Views: 7961
Re: how to get started with stm32f103
If LED blinks fast, it means that board is in bootloader mode and it's ready to flash sketch. There won't be a COM port.
You'll see COM port only if you flash sketch with USB CDC enabled.
Thank you for your response. USB is set to CDC. I do not understand hopw to flash the sketch.
Capture3 ...