The advantage of using adc with DMA is that we can use multi channel conversion. The result of the conversion will be stored in the memory…..
An interrupt is a signal sent to the CPU which indicates that a system event has occurred, which needs immediate attention. In case of an interrupt got triggered, CPU stops whatever it is doing and executes a function first. This function is a small piece of code also known as ISR(Interrupt Service Routine).
There are many ways to program ADC in STM devices. We are going to cover all of them, starting with the simplest, PollForConversion method. In this method, Controller continuously poll the ADC device and when the data conversion is complete, it can be read using HAL_ADC_Getvalue() function.
UART is widely used for serial communication between two devices. It is easy to use protocol, because the clock sync is not involved. All you have to do is take care of BAUD RATE. BAUD RATE must be same for both devices, amongst which communication is done. I am going to use 9600 as it is standard.