![]() RCC_AHB1PeriphClockCmd(RCC_AHB1ENR_GPIOCEN,ENABLE) //Clock for the ADC port!! Do not forget about this one RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADC1,ENABLE) //The ADC1 is connected the APB2 peripheral bus thus we will use its clock source GPIO_InitTypeDef GPIO_initStructre //Structure for analog input pin Int ConvertedValue = 0 //Converted value readed from ADCĪDC_InitTypeDef ADC_init_structure //Structure for adc confguration Any guess on how to solve this problem? The code is below Thank you in advance. ![]() So my guess is that is has to do with some sort of start up file. I checked the whole code and that function isn't referenced anywhere. owever as I tried to Download the code to the board I am getting this error: Error: no definition for "SystemInit". Hi there I found a program which basicly an analogue input is given to PC0 via a potentiometer and through a variable named "ConvertedValue" the user can monitor the actual value of resistance applied by the pot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |