100 likes | 319 Views
100KW Electric Vehicle Controller/Inverter Software Design. Tony Ahmann 5/6/09. General System Design. Microchip dsPIC30F6010A 7.37MHz 12kB EEPROM 7kB RAM. Kernel Choice. Continuous loop dependent on PWM Worse case PWM period 10ms Execution time 4ms. Tasks. Startup Task
E N D
100KW Electric Vehicle Controller/InverterSoftware Design Tony Ahmann 5/6/09
General System Design • Microchip dsPIC30F6010A • 7.37MHz • 12kB EEPROM • 7kB RAM
Kernel Choice • Continuous loop dependent on PWM • Worse case PWM period 10ms • Execution time 4ms
Tasks • Startup Task • Run Motor Task
Startup Task • Flux angle control reset • Clear RPM buffer • Initialize CAN bus • Get PID Parameters • Initialize user parameters
Run Motor Task • Pull button for start/stop motor • Update LCD • Send RPM, torque and flux to LabVIEW
Interrupts • ADC ISR • Calculates speed and executes vector update loop • ADC sample and conversion triggered by the PWM period