-
Notifications
You must be signed in to change notification settings - Fork 263
/
LishuiFOC_01.ioc
346 lines (346 loc) · 12.5 KB
/
LishuiFOC_01.ioc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
#MicroXplorer Configuration settings - do not modify
Mcu.Family=STM32F1
SH.GPXTI1.0=GPIO_EXTI1
ProjectManager.MainLocation=Src
NVIC.ADC1_2_IRQn=true\:0\:0\:false\:false\:true\:true\:true
PA2.GPIO_PuPd=GPIO_PULLUP
RCC.MCOFreq_Value=64000000
NVIC.DMA1_Channel5_IRQn=true\:0\:0\:false\:false\:true\:false\:true
ProjectManager.KeepUserCode=true
Mcu.UserName=STM32F103C6Tx
Dma.USART1_TX.1.MemInc=DMA_MINC_ENABLE
ADC1.ContinuousConvMode=DISABLE
TIM1.Pulse-PWM\ Generation1\ CH1\ CH1N=1000
TIM1.IPParameters=Channel-Output Compare4 No Output,CounterMode,DeadTime,Period,TIM_MasterSlaveMode,TIM_MasterOutputTrigger,Channel-PWM Generation1 CH1 CH1N,Channel-PWM Generation2 CH2 CH2N,Channel-PWM Generation3 CH3 CH3N,OCMode_4,Pulse-Output Compare4 No Output,Pulse-PWM Generation3 CH3 CH3N,Pulse-PWM Generation2 CH2 CH2N,Pulse-PWM Generation1 CH1 CH1N
RCC.PLLCLKFreq_Value=64000000
Dma.USART1_RX.2.Instance=DMA1_Channel5
ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-MX_DMA_Init-DMA-false-HAL-true,3-SystemClock_Config-RCC-false-HAL-false,4-MX_USART1_UART_Init-USART1-false-HAL-true,5-MX_TIM1_Init-TIM1-false-HAL-true,6-MX_ADC1_Init-ADC1-false-HAL-true,7-MX_ADC2_Init-ADC2-false-HAL-true,8-MX_TIM2_Init-TIM2-false-HAL-true
PA11.GPIOParameters=GPIO_Label
PA3.GPIOParameters=GPIO_Label
RCC.ADCFreqValue=10666666.666666666
ADC2.InjectedOffset-1\#ChannelInjectedConversion=0
PA6.GPIO_Label=Phase Current 3
PB0.GPIO_Label=AD2 Optional
NVIC.TIM1_UP_IRQn=true\:0\:0\:false\:false\:true\:true\:true
SH.S_TIM1_CH3.ConfNb=1
SH.S_TIM1_CH1.ConfNb=1
USART1.IPParameters=VirtualMode
PB13.Signal=TIM1_CH1N
PB15.Signal=TIM1_CH3N
PA2.GPIOParameters=GPIO_PuPd,GPIO_Label,GPIO_ModeDefaultEXTI
PinOutPanel.RotationAngle=0
ADC1.Rank-3\#ChannelInjectedConversion=1
RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK
ProjectManager.StackSize=0x400
PB5.GPIOParameters=GPIO_Label
SH.GPXTI2.0=GPIO_EXTI2
TIM1.Pulse-PWM\ Generation2\ CH2\ CH2N=1000
Mcu.IP4=RCC
ADC1.Channel-3\#ChannelInjectedConversion=ADC_CHANNEL_3
RCC.FCLKCortexFreq_Value=64000000
Mcu.IP5=SYS
Mcu.IP2=DMA
NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false
Mcu.IP3=NVIC
PA15.GPIO_Label=EBS Reku
Mcu.IP0=ADC1
Mcu.IP1=ADC2
NVIC.EXTI1_IRQn=true\:0\:0\:false\:false\:true\:true\:true
Mcu.UserConstants=
ADC2.Rank-1\#ChannelInjectedConversion=1
Mcu.ThirdPartyNb=0
ADC1.Mode=ADC_DUALMODE_REGSIMULT_INJECSIMULT
RCC.HCLKFreq_Value=64000000
SH.ADCx_IN3.0=ADC1_IN3,IN3
Mcu.IPNb=9
TIM2.IPParameters=Period
ProjectManager.PreviousToolchain=SW4STM32
RCC.APB2TimFreq_Value=64000000
PB6.Signal=USART1_TX
Dma.ADC1.0.Direction=DMA_PERIPH_TO_MEMORY
ADC1.InjNumberOfConversion=1
SH.ADCx_IN3.ConfNb=1
PB6.Mode=Asynchronous
SH.ADCx_IN7.ConfNb=1
Mcu.Pin6=PA6
Mcu.Pin7=PA7
VP_TIM2_VS_ClockSourceINT.Signal=TIM2_VS_ClockSourceINT
Mcu.Pin8=PB0
Mcu.Pin9=PB1
PA1.GPIO_PuPd=GPIO_PULLUP
Dma.ADC1.0.MemDataAlignment=DMA_MDATAALIGN_HALFWORD
RCC.AHBFreq_Value=64000000
PB13.Locked=true
Mcu.Pin0=PA0-WKUP
Mcu.Pin1=PA1
Mcu.Pin2=PA2
Mcu.Pin3=PA3
PA0-WKUP.GPIOParameters=GPIO_PuPd,GPIO_Label,GPIO_ModeDefaultEXTI
Mcu.Pin4=PA4
Mcu.Pin5=PA5
ADC1.InjectedOffset-3\#ChannelInjectedConversion=0
ProjectManager.ProjectBuild=false
ADC1.ExternalTrigInjecConv=ADC_INJECTED_SOFTWARE_START
NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false
PB2.Signal=GPIO_Output
ADC1.ScanConvMode=ADC_SCAN_DISABLE
PA8.Locked=true
NVIC.SysTick_IRQn=true\:0\:0\:false\:false\:true\:false\:true
RCC.PLLMUL=RCC_PLL_MUL16
ProjectManager.FirmwarePackage=STM32Cube FW_F1 V1.6.0
ADC1.SamplingTime-4\#ChannelRegularConversion=ADC_SAMPLETIME_1CYCLE_5
MxDb.Version=DB.4.0.270
PB0.GPIOParameters=GPIO_Label
PA1.GPIOParameters=GPIO_PuPd,GPIO_Label,GPIO_ModeDefaultEXTI
ProjectManager.BackupPrevious=false
PA14.Mode=Serial_Wire
PB14.Mode=PWM Generation2 CH2 CH2N
PB1.GPIO_Label=AD1 Torque Input
Dma.ADC1.0.PeriphInc=DMA_PINC_DISABLE
TIM1.DeadTime=5
NVIC.TIM2_IRQn=true\:0\:0\:false\:false\:true\:true\:true
File.Version=6
SH.ADCx_IN8.0=ADC1_IN8,IN8
PB7.Signal=USART1_RX
PA8.Signal=S_TIM1_CH1
PB8.Locked=true
ADC1.InjectedConvMode=None
SH.ADCx_IN4.ConfNb=2
NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false
SH.ADCx_IN6.ConfNb=2
Dma.RequestsNb=3
ProjectManager.HalAssertFull=false
PB0.Locked=true
VP_TIM1_VS_ClockSourceINT.Mode=Internal
Dma.USART1_TX.1.PeriphDataAlignment=DMA_PDATAALIGN_BYTE
ProjectManager.ProjectName=LishuiFOC_01
RCC.PLLMCOFreq_Value=32000000
Mcu.Package=LQFP48
PB9.Signal=GPIO_Output
PB1.Signal=ADCx_IN9
PA6.Signal=ADCx_IN6
PB12.Mode=Activate-Break-Input
PA7.Locked=true
ProjectManager.ToolChainLocation=
PA2.GPIO_Label=SC Hall 3
SH.GPXTI0.0=GPIO_EXTI0
VP_SYS_VS_Systick.Signal=SYS_VS_Systick
SH.GPXTI5.ConfNb=1
PA10.Signal=S_TIM1_CH3
PA15.Signal=GPIO_Input
PA5.GPIOParameters=GPIO_Label
SH.ADCx_IN9.0=ADC1_IN9,IN9
PB5.GPIO_Label=SS Speedsensor
NVIC.EXTI2_IRQn=true\:0\:0\:false\:false\:true\:true\:true
Dma.Request2=USART1_RX
Dma.Request1=USART1_TX
RCC.APB1TimFreq_Value=64000000
ADC1.SamplingTime-3\#ChannelInjectedConversion=ADC_SAMPLETIME_1CYCLE_5
NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
Dma.USART1_TX.1.Priority=DMA_PRIORITY_LOW
SH.ADCx_IN9.ConfNb=1
TIM1.Period=2000
PB10.GPIOParameters=GPIO_Label
PB13.Mode=PWM Generation1 CH1 CH1N
NVIC.DMA1_Channel4_IRQn=true\:0\:0\:false\:false\:true\:false\:true
NVIC.USART1_IRQn=true\:0\:0\:false\:false\:true\:true\:true
Dma.Request0=ADC1
PA4.GPIO_Label=Phase Current1
PA1.GPIO_ModeDefaultEXTI=GPIO_MODE_IT_RISING_FALLING
ProjectManager.CustomerFirmwarePackage=
NVIC.RCC_IRQn=true\:0\:0\:false\:false\:true\:true\:false
Dma.USART1_RX.2.MemDataAlignment=DMA_MDATAALIGN_BYTE
ADC1.Rank-4\#ChannelRegularConversion=1
PB15.Locked=true
PA3.Signal=ADCx_IN3
Dma.USART1_TX.1.Direction=DMA_MEMORY_TO_PERIPH
PA2.Locked=true
PA6.GPIOParameters=GPIO_Label
SH.GPXTI10.0=GPIO_EXTI10
Dma.USART1_TX.1.Instance=DMA1_Channel4
SH.GPXTI5.0=GPIO_EXTI5
ProjectManager.ProjectFileName=LishuiFOC_01.ioc
Dma.ADC1.0.Instance=DMA1_Channel1
ADC2.Mode=ADC_DUALMODE_REGSIMULT_INJECSIMULT
PB8.GPIOParameters=GPIO_PuPd,GPIO_Label
PB9.GPIO_Label=TB Light output
ADC1.Channel-4\#ChannelRegularConversion=ADC_CHANNEL_3
PA15.GPIOParameters=GPIO_Label
Mcu.PinsNb=32
ProjectManager.NoMain=false
TIM1.OCMode_4=TIM_OCMODE_ACTIVE
SH.ADCx_IN6.0=ADC1_IN6,IN6
SH.ADCx_IN6.1=ADC2_IN6,IN6
ADC1.IPParameters=Mode,EnableRegularConversion,Rank-3\#ChannelInjectedConversion,Channel-3\#ChannelInjectedConversion,SamplingTime-3\#ChannelInjectedConversion,InjectedOffset-3\#ChannelInjectedConversion,InjNumberOfConversion,ExternalTrigInjecConv,Rank-4\#ChannelRegularConversion,Channel-4\#ChannelRegularConversion,SamplingTime-4\#ChannelRegularConversion,NbrOfConversionFlag,NbrOfConversion,DataAlign,ScanConvMode,ContinuousConvMode,DiscontinuousConvMode,ExternalTrigConv,InjectedConvMode,EnableAnalogWatchDog,master
Dma.USART1_TX.1.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority
TIM1.CounterMode=TIM_COUNTERMODE_CENTERALIGNED1
PB8.GPIO_PuPd=GPIO_PULLUP
ADC1.DiscontinuousConvMode=DISABLE
SH.GPXTI0.ConfNb=1
PA11.GPIO_Label=BKL Brake
ProjectManager.DefaultFWLocation=true
TIM1.Pulse-Output\ Compare4\ No\ Output=1000
TIM1.Channel-PWM\ Generation1\ CH1\ CH1N=TIM_CHANNEL_1
ADC2.EnableRegularConversion=DISABLE
ADC2.Channel-1\#ChannelInjectedConversion=ADC_CHANNEL_4
PB12.Locked=true
ProjectManager.DeletePrevious=true
PB14.Locked=true
RCC.APB1CLKDivider=RCC_HCLK_DIV2
PB10.Locked=true
Dma.USART1_RX.2.PeriphInc=DMA_PINC_DISABLE
PA0-WKUP.GPIO_ModeDefaultEXTI=GPIO_MODE_IT_RISING_FALLING
RCC.FamilyName=M
PA0-WKUP.GPIO_Label=SA Hall 1
PA0-WKUP.Signal=GPXTI0
PA0-WKUP.Locked=true
PB9.GPIOParameters=GPIO_Label
RCC.ADCPresc=RCC_ADCPCLK2_DIV6
PA13.Signal=SYS_JTMS-SWDIO
PB8.GPIO_Label=TA PAS
TIM1.Channel-PWM\ Generation2\ CH2\ CH2N=TIM_CHANNEL_2
Dma.ADC1.0.PeriphDataAlignment=DMA_PDATAALIGN_HALFWORD
PA11.Locked=true
PA15.Locked=true
SH.S_TIM1_CH1.0=TIM1_CH1,PWM Generation1 CH1 CH1N
SH.GPXTI2.ConfNb=1
ProjectManager.TargetToolchain=SW4STM32
PB10.GPIO_Label=SL PAS2
SH.ADCx_IN7.0=ADC1_IN7,IN7
Dma.ADC1.0.Mode=DMA_NORMAL
Dma.USART1_RX.2.Mode=DMA_NORMAL
ADC2.IPParameters=Mode,EnableRegularConversion,Rank-1\#ChannelInjectedConversion,Channel-1\#ChannelInjectedConversion,SamplingTime-1\#ChannelInjectedConversion,InjectedOffset-1\#ChannelInjectedConversion,InjNumberOfConversion
Dma.USART1_RX.2.PeriphDataAlignment=DMA_PDATAALIGN_BYTE
Dma.ADC1.0.Priority=DMA_PRIORITY_MEDIUM
PB2.GPIOParameters=GPIO_Label
PA9.Signal=S_TIM1_CH2
VP_TIM1_VS_ClockSourceINT.Signal=TIM1_VS_ClockSourceINT
PB5.Locked=true
PB9.Locked=true
TIM1.Channel-PWM\ Generation3\ CH3\ CH3N=TIM_CHANNEL_3
ProjectManager.RegisterCallBack=
RCC.USBFreq_Value=64000000
PA1.Signal=GPXTI1
PB1.Locked=true
SH.S_TIM1_CH2.ConfNb=1
PB10.Signal=GPXTI10
PB14.Signal=TIM1_CH2N
PA5.Signal=ADCx_IN5
ADC2.SamplingTime-1\#ChannelInjectedConversion=ADC_SAMPLETIME_1CYCLE_5
Dma.USART1_TX.1.MemDataAlignment=DMA_MDATAALIGN_BYTE
NVIC.TIM1_TRG_COM_IRQn=true\:0\:0\:false\:false\:true\:true\:true
board=custom
ProjectManager.LastFirmware=true
PB15.Mode=PWM Generation3 CH3 CH3N
Dma.USART1_RX.2.Priority=DMA_PRIORITY_LOW
VP_TIM1_VS_no_output4.Mode=Output Compare4 No Output
ADC1.EnableAnalogWatchDog=false
Dma.ADC1.0.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority
TIM1.TIM_MasterOutputTrigger=TIM_TRGO_OC4REF
RCC.APB2Freq_Value=64000000
Dma.USART1_RX.2.Direction=DMA_PERIPH_TO_MEMORY
VP_TIM1_VS_no_output4.Signal=TIM1_VS_no_output4
MxCube.Version=4.27.0
SH.S_TIM1_CH2.0=TIM1_CH2,PWM Generation2 CH2 CH2N
VP_TIM2_VS_ClockSourceINT.Mode=Internal
SH.ADCx_IN4.1=ADC2_IN4,IN4
Mcu.Pin30=VP_TIM1_VS_no_output4
PA1.GPIO_Label=SB Hall 2
VP_SYS_VS_Systick.Mode=SysTick
Mcu.Pin31=VP_TIM2_VS_ClockSourceINT
SH.ADCx_IN4.0=ADC1_IN4,IN4
PA9.Locked=true
NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false
PA4.GPIOParameters=GPIO_Label
TIM2.Period=4000
SH.ADCx_IN8.ConfNb=1
ADC1.NbrOfConversion=1
PA13.Mode=Serial_Wire
ProjectManager.FreePins=false
RCC.IPParameters=ADCFreqValue,ADCPresc,AHBFreq_Value,APB1CLKDivider,APB1Freq_Value,APB1TimFreq_Value,APB2Freq_Value,APB2TimFreq_Value,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,MCOFreq_Value,PLLCLKFreq_Value,PLLMCOFreq_Value,PLLMUL,SYSCLKFreq_VALUE,SYSCLKSource,TimSysFreq_Value,USBFreq_Value
ProjectManager.AskForMigrate=true
Mcu.Name=STM32F103C(4-6)Tx
Dma.USART1_RX.2.MemInc=DMA_MINC_ENABLE
TIM1.Pulse-PWM\ Generation3\ CH3\ CH3N=1000
Mcu.Pin26=PB8
Mcu.Pin27=PB9
PA2.Signal=GPXTI2
Mcu.Pin24=PB6
ProjectManager.UnderRoot=true
Mcu.Pin25=PB7
PB2.Locked=true
Mcu.IP8=USART1
ADC1.ExternalTrigConv=ADC_SOFTWARE_START
NVIC.TIM1_CC_IRQn=true\:0\:0\:false\:false\:true\:true\:true
Mcu.Pin28=VP_SYS_VS_Systick
Mcu.IP6=TIM1
Mcu.Pin29=VP_TIM1_VS_ClockSourceINT
Mcu.IP7=TIM2
ProjectManager.CoupleFile=false
NVIC.EXTI0_IRQn=true\:0\:0\:false\:false\:true\:true\:true
PA4.Signal=ADCx_IN4
RCC.SYSCLKFreq_VALUE=64000000
PB5.Signal=GPXTI5
Mcu.Pin22=PA15
Mcu.Pin23=PB5
RCC.TimSysFreq_Value=64000000
PA7.GPIO_Label=BatteryVoltage
PA1.Locked=true
Mcu.Pin20=PA13
ADC1.master=1
Mcu.Pin21=PA14
PA5.GPIO_Label=Phase Current 2
PA10.Locked=true
NVIC.ForceEnableDMAVector=true
KeepUserPlacement=false
Dma.USART1_TX.1.Mode=DMA_NORMAL
NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false
USART1.VirtualMode=VM_ASYNC
ProjectManager.CompilerOptimize=6
PB7.Mode=Asynchronous
PA11.Signal=GPIO_Input
PA14.Signal=SYS_JTCK-SWCLK
Dma.ADC1.0.MemInc=DMA_MINC_ENABLE
PB2.GPIO_Label=LED
ProjectManager.HeapSize=0x200
Mcu.Pin15=PB15
Dma.USART1_TX.1.PeriphInc=DMA_PINC_DISABLE
NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
Mcu.Pin16=PA8
Mcu.Pin13=PB13
Mcu.Pin14=PB14
SH.S_TIM1_CH3.0=TIM1_CH3,PWM Generation3 CH3 CH3N
Mcu.Pin19=PA11
TIM1.Channel-Output\ Compare4\ No\ Output=TIM_CHANNEL_4
ProjectManager.ComputerToolchain=false
Mcu.Pin17=PA9
Mcu.Pin18=PA10
PA2.GPIO_ModeDefaultEXTI=GPIO_MODE_IT_RISING_FALLING
SH.ADCx_IN5.0=ADC1_IN5,IN5
SH.ADCx_IN5.1=ADC2_IN5,IN5
NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4
ADC1.NbrOfConversionFlag=1
Mcu.Pin11=PB10
Mcu.Pin12=PB12
Mcu.Pin10=PB2
SH.GPXTI10.ConfNb=1
Dma.USART1_RX.2.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority
ADC1.EnableRegularConversion=ENABLE
PB8.Signal=GPIO_Input
PA0-WKUP.GPIO_PuPd=GPIO_PULLUP
SH.ADCx_IN5.ConfNb=2
NVIC.DMA1_Channel1_IRQn=true\:0\:0\:false\:false\:true\:false\:true
SH.GPXTI1.ConfNb=1
ADC1.DataAlign=ADC_DATAALIGN_RIGHT
RCC.APB1Freq_Value=32000000
PB0.Signal=ADCx_IN8
ADC2.InjNumberOfConversion=1
PA7.GPIOParameters=GPIO_Label
ProjectManager.DeviceId=STM32F103C6Tx
PB12.Signal=TIM1_BKIN
ProjectManager.LibraryCopy=1
TIM1.TIM_MasterSlaveMode=TIM_MASTERSLAVEMODE_DISABLE
PA3.GPIO_Label=SP Throttle
PB1.GPIOParameters=GPIO_Label
PA7.Signal=ADCx_IN7