-
Notifications
You must be signed in to change notification settings - Fork 1
/
Current_tasks
25 lines (17 loc) · 1.41 KB
/
Current_tasks
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
#Current_Tasks
Please create these routines in seperate file, while using the defined pins in the master header file. Feel free to make changes
to the master header file but post on slack so we all know changes have been made.
-Create PWM routine to output to the 3 defined pins in the header file (PH_#_OUT_H).
-These output pins should reflect our expected pin outputs
-Max frequency to output to the mosfet driver is 200kHz. I believe 50 kHz should be fine since the hall effect sensors should
only be triggering at a few hundred hertz.
-Add 3 more pins to the PWM signal such that the low pins can be controlled (PH_#_OUT_L)
-Create interrupt routines for PH_A,B,C_IN such that the program will respond with the expected inputs with the appropriate outputs.
-This will need to work in tandum with the PWM signal.
-Read the ADC pin corresponding to driver input and have it affect the duty cycle of the PWM signal
-Create a fault routine such that the PH_#_OUT pins will stop outputting completely while the FAULT pin is reading high or low
(which ever indicates a fault)
-read ADC pins corresponding to the current sense resistors and calculate the current being read
-Read and interpret the Sense_A back EMF readings from the motor
-This may require further research into when and what to look for. The mosfet driver has built in “dead times” such that
this can be read, which may need to be understood further.