Search found 1909 matches

by ag123
Tue Jan 21, 2025 2:16 pm
Forum: Projects
Topic: Simultaneous regular mode with two ADCs (F303)
Replies: 10
Views: 7161

Re: Simultaneous regular mode with two ADCs (F303)

Pito
I think the thing about using timer to trigger the ADC is that those TRIGO signals won't do as those are literally external inputs.
To trigger the ADC from the timer, I think it'd take one of the CC (capture compare) channels. Hence, you'd need to look into that if you want to trigger the ADC ...
by ag123
Tue Jan 21, 2025 9:41 am
Forum: Ideas & suggestions
Topic: DMA for SPI
Replies: 24
Views: 18706

Re: DMA for SPI

added stm32g4
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_G4XX.h
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_G4XX.cpp

and this is only based on stm32g431cbux generic variant

stm32g4xx DMA peripheral is again different from say F4xx, it has channels ...
by ag123
Tue Jan 21, 2025 5:16 am
Forum: Projects
Topic: Simultaneous regular mode with two ADCs (F303)
Replies: 10
Views: 7161

Re: Simultaneous regular mode with two ADCs (F303)

btw I used stm32cubeIDE to generate 'sample' codes, e.g. for ADC etc as it'd generate HAL codes, then copy them over into stm32duino and work further on them.

these days it'd seem those 'AI' options out there are viable as well.
by ag123
Mon Jan 20, 2025 5:05 pm
Forum: Projects
Topic: Simultaneous regular mode with two ADCs (F303)
Replies: 10
Views: 7161

Re: Simultaneous regular mode with two ADCs (F303)

I'm thinking an 'easy' way to test if the ADC is triggering is to do a software trigger

I asked 'chatGPT' ;)
it says
HAL_ADC_Start(&hadc1);
in libmaple I used the 'lazy' way and simply toggle the SW_START bit in the register :lol:

poll for EOC
then read the value
HAL_ADC_GetValue(&hadc1 ...
by ag123
Mon Jan 20, 2025 5:09 am
Forum: General discussion
Topic: 32F303 support
Replies: 19
Views: 3381

Re: 32F303 support

OT out of curiosity, I took a look at a high speed 95, 105 Msps ADC
https://www.ti.com/lit/ds/symlink/adc12c105.pdf
these apparently use clock driven parallel data buses
then that some higher speeds ones are on LVDT and some at clock speeds that are 'beyond MCU' levels e.g. ghz.

Apparently, if I ...
by ag123
Mon Jan 20, 2025 3:51 am
Forum: Projects
Topic: Simultaneous regular mode with two ADCs (F303)
Replies: 10
Views: 7161

Re: Simultaneous regular mode with two ADCs (F303)

in the ref manual rm0316 STM32F303xB/C/D/E, STM32F303x6/8, STM32F328x8,
STM32F358xC, STM32F398xE advanced Arm®-based MCUs
https://www.st.com/resource/en/reference_manual/rm0316-stm32f303xbcde-stm32f303x68-stm32f328x8-stm32f358xc-stm32f398xe-advanced-armbased-mcus-stmicroelectronics.pdf

chapter 15 ...
by ag123
Mon Jan 20, 2025 3:44 am
Forum: Projects
Topic: Simultaneous regular mode with two ADCs (F303)
Replies: 10
Views: 7161

Re: Simultaneous regular mode with two ADCs (F303)

well, I'd guess we'd need to keep the ref manual handy
https://www.st.com/resource/en/reference_manual/rm0316-stm32f303xbcde-stm32f303x68-stm32f328x8-stm32f358xc-stm32f398xe-advanced-armbased-mcus-stmicroelectronics.pdf

the HAL codes on its own is quite complex, one of those ways is to use CubeMX ...
by ag123
Sun Jan 19, 2025 1:35 pm
Forum: General discussion
Topic: 32F303 support
Replies: 19
Views: 3381

Re: 32F303 support

btw one of those solutions I looked into to do high speed usb interfacing with stm32 is FT2232H or FT232H

https://ftdichip.com/wp-content/uploads/2024/09/DS_FT2232H.pdf
https://ftdichip.com/wp-content/uploads/2024/09/DS_FT232H.pdf
these chips can do usb 2.0 high speed 480 Mbps

Adafruit has one of ...
by ag123
Sun Jan 19, 2025 8:34 am
Forum: General discussion
Topic: 32F303 support
Replies: 19
Views: 3381

Re: 32F303 support

something I liked about the F303 is its 4x5 msps ADC + other analog capabilities DAC, opamps, comparators etc.
I bought a board or 2 intending to work that into a usb oscilloscope or even a small digital electronics lab given its capabilities, e.g. a transistor characteristics plotter.
but I never ...
by ag123
Sun Jan 19, 2025 4:56 am
Forum: General discussion
Topic: 32F303 support
Replies: 19
Views: 3381

Re: 32F303 support

256k is quite a bit of flash, normally, I'm less fussy with 'fat' binaries with big flash available.
a thing though is that memory (sram) is the thing we often neglected, sometimes that is an issue and there is little warning when the stack crash into the heap
I'm also suspecting that the more ...

Go to advanced search