Have you actually looked at the examples included in the ST Peripheral Library?
Have you looked at the examples included in the Keil installation, and also available on their website?
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
You enable an interrupt for which you have no service code.
You do not enable the NVIC. You disable the USART before you have checked to confirm the last bit has been transmitted. Why do you need to enable/disable the USART in this manner?
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
i configured ADC1 in independent mode, it is working fine. I want to configure in dual mode ADC1 with channel0 and ADC2 with channel1 and after conversion transmitting the counts through USART to Hyperterminal, i able read the ADC1 channel0 counts but ADC2 channel1 counts, i have written my code as below, please tell me what is the fault in the code...
#include<stm32f10x_lib.h>
#include<math.h>
#define CFGR_REG_VAL 0x001D8402; //value to be written into RCC CFGR register
#define PSC_VALUE 0x0000 //value to be written into Prescalar register of Timer3 #define ARR_VALUE 0x1C20 //0x2D0//10us //value to be written into autoreload register
before i used Transmit complete interrupt, if i enable this interrupt it keeps transmitting the data in array but i wanted to transmit only at the end of conversion of ADC data , so i am enable/disable the USART in this manner and i left the interrupt enabled as it is in the CR1, is it affects working of my code now dont want to use the interrupt.