Search found 144 matches
- Tue May 07, 2024 8:54 pm
- Forum: General discussion
- Topic: Using DMA to vary PWM duty cycle
- Replies: 7
- Views: 2505
Re: Using DMA to vary PWM duty cycle
DMAR register is little complicated for me to understand, i tried with CCR3 register and it worked (same as CCR2 for PB7 example) Replace dma_cfg.tube_dst = &(dev1->regs.gen->DMAR); with dma_cfg.tube_dst = &(dev1->regs.gen->CCR3); I also recommend to edit: uint16_t val1[SAMPLES]; dma_cfg.tub...
- Sat May 04, 2024 5:31 pm
- Forum: General discussion
- Topic: Synthesizer DSP STM32 resources
- Replies: 7
- Views: 4114
Re: Synthesizer DSP STM32 resources
I tried Mozzi library and it's compatible with stm32duino core. Tested on stm32F103CB, STM32F401CC and STM32F411CE. All using pin PA8 PWM as audio output (as ag123 mention, STM32F411CE don't have DAC). But it's little complex for me, and i think it would be easier for me to implement double-buffered...
- Fri May 03, 2024 8:57 am
- Forum: General discussion
- Topic: Synthesizer DSP STM32 resources
- Replies: 7
- Views: 4114
Re: Synthesizer DSP STM32 resources
As arduino, STM32 can use high PWM pulses to create audio. With even higher resolution because of better timers hardware. STM32 have some boards with 12bit DAC ( like cheap WeAct STM32G431CBU6 ). For a start, you could use example from https://github.com/stm32duino/STM32Examples/blob/main/examples/P...
- Fri May 03, 2024 8:25 am
- Forum: General discussion
- Topic: Using hardware timer encoder mode
- Replies: 1
- Views: 3882
- Fri Apr 05, 2024 1:19 am
- Forum: General discussion
- Topic: Using DMA to vary PWM duty cycle
- Replies: 7
- Views: 2505
Re: Using DMA to vary PWM duty cycle
Replace
with
I can't say will it work (i'm not familiar with dma functions in rogers core), but at least it will compile.
Code: Select all
const uint16_t Sinewave[SINSIZE] =
Code: Select all
uint16_t Sinewave[SINSIZE] =
- Tue Feb 27, 2024 1:15 pm
- Forum: General discussion
- Topic: Problem using I2S DMA
- Replies: 3
- Views: 1041
Re: Problem using I2S DMA
As i understand, if enabled, I2S use 16bit Data Register, regardless if SPI is set to use 8bit data format.
Try to set PSIZE, MSIZE bits in DMA SCR register ( and your buffer ) as 16bit size, not as 8bit.
Try to set PSIZE, MSIZE bits in DMA SCR register ( and your buffer ) as 16bit size, not as 8bit.
- Sun Nov 26, 2023 10:04 pm
- Forum: General discussion
- Topic: How to create an STM32 program using Arduino (trouble)
- Replies: 5
- Views: 15662
Re: How to create an STM32 program using Arduino (trouble)
You need to install drivers :
https://github.com/rogerclarkmelbourne/ ... er/drivers
https://github.com/rogerclarkmelbourne/ ... er/drivers
- Thu Nov 23, 2023 2:23 pm
- Forum: General discussion
- Topic: STM32F401CCU Black Pill not detected by Win 7
- Replies: 9
- Views: 13811
Re: STM32F401CCU Black Pill not detected by Win 7
BlackPill F401CC is for boards with 25MHz crystal Generic F401CCUx is for boards with 8MHz crystal You must select "USB support->CDC (generic Serial supersede U(S)ART)" from menu or "Serial" will on serial port (PA9/PA10), not as recognizable USB device. Clipboard01.jpg If you st...
- Mon Nov 20, 2023 6:12 pm
- Forum: STM32F4 based boards
- Topic: 2.7.0
- Replies: 3
- Views: 18008
Re: 2.7.0
Until SdFat is updated, there is simple workaround: use SPI library from 2.6.0. Downgrade core to 2.6.0, copy SPI folder from "c:\Users\moi\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.6.0\libraries\" to "c:\Users\moi\Documents\Arduino\libraries\", and upg...
- Tue Nov 14, 2023 5:19 pm
- Forum: General discussion
- Topic: STM32F103C8 and 9325 unusual display
- Replies: 5
- Views: 5038
Re: STM32F103C8 and 9325 unusual display
I compiled and tested DLO-138 and it's working with my LCD. Using Rogers core, Adafruit_GFX V1.7.5. I was unable to upload with Arduino IDE (probably WIN11 and Arduino 2.2.1 IDE issue), but with exported binary i flashed it with ST-link and STM32CubeProgrammer (tricky, press and hold reset on DSO138...