From 73381c66819deefd48628936a30a3de4fa302ad2 Mon Sep 17 00:00:00 2001 From: Dylan Donahue Date: Thu, 4 Apr 2024 20:33:52 -0400 Subject: [PATCH] updated pins to adc in ioc --- shepherd2.ioc | 52 +++++++++++++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/shepherd2.ioc b/shepherd2.ioc index f292888..7041364 100644 --- a/shepherd2.ioc +++ b/shepherd2.ioc @@ -1,4 +1,10 @@ #MicroXplorer Configuration settings - do not modify +ADC1.Channel-0\#ChannelRegularConversion=ADC_CHANNEL_15 +ADC1.IPParameters=Rank-0\#ChannelRegularConversion,Channel-0\#ChannelRegularConversion,SamplingTime-0\#ChannelRegularConversion,NbrOfConversionFlag,master +ADC1.NbrOfConversionFlag=1 +ADC1.Rank-0\#ChannelRegularConversion=1 +ADC1.SamplingTime-0\#ChannelRegularConversion=ADC_SAMPLETIME_3CYCLES +ADC1.master=1 CAD.formats= CAD.pinconfig= CAD.provider= @@ -37,21 +43,22 @@ GPIO.groupedBy=Group By Peripherals KeepUserPlacement=false Mcu.CPN=STM32F405RGT6V Mcu.Family=STM32F4 -Mcu.IP0=CAN1 -Mcu.IP1=CAN2 -Mcu.IP10=TIM2 -Mcu.IP11=TIM8 -Mcu.IP12=UART4 -Mcu.IP13=USB_OTG_FS -Mcu.IP2=I2C1 -Mcu.IP3=NVIC -Mcu.IP4=RCC -Mcu.IP5=SPI1 -Mcu.IP6=SPI2 -Mcu.IP7=SPI3 -Mcu.IP8=SYS -Mcu.IP9=TIM1 -Mcu.IPNb=14 +Mcu.IP0=ADC1 +Mcu.IP1=CAN1 +Mcu.IP10=TIM1 +Mcu.IP11=TIM2 +Mcu.IP12=TIM8 +Mcu.IP13=UART4 +Mcu.IP14=USB_OTG_FS +Mcu.IP2=CAN2 +Mcu.IP3=I2C1 +Mcu.IP4=NVIC +Mcu.IP5=RCC +Mcu.IP6=SPI1 +Mcu.IP7=SPI2 +Mcu.IP8=SPI3 +Mcu.IP9=SYS +Mcu.IPNb=15 Mcu.Name=STM32F405RGTx Mcu.Package=LQFP64 Mcu.Pin0=PC13-ANTI_TAMP @@ -172,11 +179,11 @@ PA9.Signal=USB_OTG_FS_VBUS PB0.GPIOParameters=GPIO_Label PB0.GPIO_Label=I Sense PB0.Locked=true -PB0.Signal=GPIO_Analog +PB0.Signal=SharedAnalog_PB0 PB1.GPIOParameters=GPIO_Label PB1.GPIO_Label=I Sense PB1.Locked=true -PB1.Signal=GPIO_Analog +PB1.Signal=SharedAnalog_PB1 PB10.Mode=Full_Duplex_Master PB10.Signal=SPI2_SCK PB11.GPIOParameters=GPIO_Label @@ -254,7 +261,7 @@ PC4.Signal=GPIO_Output PC5.GPIOParameters=GPIO_Label PC5.GPIO_Label=I Sense PC5.Locked=true -PC5.Signal=GPIO_Analog +PC5.Signal=SharedAnalog_PC5 PC6.GPIOParameters=GPIO_Label PC6.GPIO_Label=Fan PWM PC6.Locked=true @@ -347,6 +354,15 @@ SH.S_TIM8_CH3.0=TIM8_CH3,PWM Generation3 CH3 SH.S_TIM8_CH3.ConfNb=1 SH.S_TIM8_CH4.0=TIM8_CH4,PWM Generation4 CH4 SH.S_TIM8_CH4.ConfNb=1 +SH.SharedAnalog_PB0.0=GPIO_Analog +SH.SharedAnalog_PB0.1=ADC1_IN8,IN8 +SH.SharedAnalog_PB0.ConfNb=2 +SH.SharedAnalog_PB1.0=GPIO_Analog +SH.SharedAnalog_PB1.1=ADC1_IN9,IN9 +SH.SharedAnalog_PB1.ConfNb=2 +SH.SharedAnalog_PC5.0=GPIO_Analog +SH.SharedAnalog_PC5.1=ADC1_IN15,IN15 +SH.SharedAnalog_PC5.ConfNb=2 SPI1.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_16 SPI1.CLKPhase=SPI_PHASE_2EDGE SPI1.CLKPolarity=SPI_POLARITY_HIGH