Search found 142 matches

by Bakisha
Fri May 03, 2024 8:57 am
Forum: General discussion
Topic: Synthesizer DSP STM32 resources
Replies: 1
Views: 230

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...
by Bakisha
Fri May 03, 2024 8:25 am
Forum: General discussion
Topic: Using hardware timer encoder mode
Replies: 1
Views: 299

Re: Using hardware timer encoder mode

Try sketch from viewtopic.php?t=1962

It might work for you...
by Bakisha
Fri Apr 05, 2024 1:19 am
Forum: IDE's
Topic: Using DMA to vary PWM duty cycle
Replies: 2
Views: 1534

Re: Using DMA to vary PWM duty cycle

Replace

Code: Select all

const uint16_t Sinewave[SINSIZE] = 
with

Code: Select all

uint16_t Sinewave[SINSIZE] = 
I can't say will it work (i'm not familiar with dma functions in rogers core), but at least it will compile.
by Bakisha
Tue Feb 27, 2024 1:15 pm
Forum: General discussion
Topic: Problem using I2S DMA
Replies: 3
Views: 877

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.
by Bakisha
Thu Nov 23, 2023 2:23 pm
Forum: General discussion
Topic: STM32F401CCU Black Pill not detected by Win 7
Replies: 9
Views: 13547

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...
by Bakisha
Mon Nov 20, 2023 6:12 pm
Forum: STM32F4 based boards
Topic: 2.7.0
Replies: 3
Views: 17669

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...
by Bakisha
Tue Nov 14, 2023 5:19 pm
Forum: General discussion
Topic: STM32F103C8 and 9325 unusual display
Replies: 5
Views: 4728

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...
by Bakisha
Thu Sep 21, 2023 7:41 am
Forum: General discussion
Topic: Writing to GPIOs on two different ports at the same time?
Replies: 10
Views: 1878

Re: Writing to GPIOs on two different ports at the same time?

Have you consider to use that one pin on separate port for address A0? So you can keep A12 on port with 12 pins. In worst case, you are reading data from address $xxx0 when A0 is 0, and from address $xxx1 when A0 is 1.

74HCT595 is good for sync timing, but if it's too slow, you could use 74HCT273.
by Bakisha
Wed Sep 20, 2023 1:20 pm
Forum: General discussion
Topic: Bluepill Uart DMA W/Callback
Replies: 2
Views: 918

Re: Bluepill Uart DMA W/Callback

I am not familiar with UART and DMA, but i did some experiments with SPI and DMA. Anyway, quick look in RM0008, i noticed DMAT (DMA enable transmitter) bit in CR3 register need to be set. Try USART2->CR3 |= USART_CR3_DMAT ; Also, i think DMA clock needs to be enabled: RCC->AHBENR = ( RCC->AHBENR ) |...

Go to advanced search