One pulse mode internal trigger
Hi,
I'm currently trying to create a software pulse for an ADC with an stm32 device which I'm pretty new to.
I have everything working and receive data clocked via HAL_SPI_Receive, but the pulse is created via a hardware trigger and this is the only configuration I can find regarding one pulse mode.
This is the ADC I am using
http://www.analog.com/media/en/technical-documentation/data-sheets/231116fa.pdf
I am trying to generate the CNV/acquisition pulse.
I want to call a function or set a bit, etc, which internally triggers a defined pulse for the CNV pin, something similar to HAL_TIM_OC_Start()
After this I will use HAL_SPI_Receive to clock through the data and do a few other things before wanting to initiate the next pulse.
At the moment the trigger is generated though a channel on TIM1, with PWM generation on CH2 and slave mode set as trigger mode with TI1FP1 as trigger source and clock source set to internal. I can create what ever pulse I like using a hard trigger on associated pin but I want to replace this with a software call. Or alternatively achieve the same outcome, i.e a pulse, some other way. I am new to STM programming and am working with others unfamiliar with coding so want to use the HAL if possible.
Thanks