Now that I'm up and running on my Blackice 2, I'd like to start using the STM's peripherals; I'm thinking about writing a PID controller into the FPGA and using the ADC and DAC on the STM to interface with whatever system I want to control.
First, I've done register access in Arduino to the micro that the UNO uses so I'm somewhat familiar with how that works, and I have the STM data sheet handy so I know where to find the relevant register names, as well as how to look for procedure requirements/restrictions etc.
My first question: is the process similar for the STM? My goals include setting up the ADC and DAC with specific bit-widths and finding settings that give fast conversions, among others.
------ Edit: I'm probably not going to pursue the approach below after looking into it, my apologies for writing down a brainstorm too soon after having it. Maybe it'll start some discussion anyway...------
Second question: I had assumed I would transfer data between the STM and FPGA using QSPI, which I have done in the past. However it occurred to me that it might be faster if I could port the ADC_DR register (ADC data reg.) and the relevant DAC input register to shared pins and R/W them directly from the FPGA, kind of like a parallel interface custom to my application. If I am working with 8 bit data it would use 16 pins for both directions and seems to me it would be nearly immediate.
(disclaimer: while I'm not a noob I'm also lacking any formal training in computer science, and as such my areas of knowledge tend to be fragmented, so if I'm WAY off because of something obvious to a more well-rounded person, that's why :))