Conversion of DRV8312-C2-KIT to the DRV8301-69M-KIT / DRV830x-HC-C2-KIT / F28069M

11 views (last 30 days)
Finding Simulink models for the DRV830x-HC-C2-KIT has been difficult.
I would like to use the example provided in
  • F28069m control card + DRV8312-C2-KIT ~Documents\MATLAB\Examples\R2019b\texasinstrumentsc2000\C28069PmSynchronousMfoControlExample
Matlab Command: open_system('c28069pmsmfoc_ert');
One answer provided was the 8312 and 8301 kits have different hal.h/hal.c "Hardware Abstraction Layers". Thus suggesting that a simple swap of hal files might suffice. This will not work because the Matlab/Simulink compiler inteface does not use the hal.c/hal.h files in it's compilation. Let's check the hal files:
DRV8312-C2-KIT (or DRV830x-HC-C2-KIT)
// PWM1 - GPIO_setMode(obj->gpioHandle,GPIO_Number_0,GPIO_0_Mode_EPWM1A);
// PWM2 - GPIO_setMode(obj->gpioHandle,GPIO_Number_1,GPIO_1_Mode_EPWM1B);
// PWM3 - GPIO_setMode(obj->gpioHandle,GPIO_Number_2,GPIO_2_Mode_EPWM2A);
// PWM4 - GPIO_setMode(obj->gpioHandle,GPIO_Number_3,GPIO_3_Mode_EPWM2B);
// PWM5 - GPIO_setMode(obj->gpioHandle,GPIO_Number_4,GPIO_4_Mode_EPWM3A);
// PWM6 - GPIO_setMode(obj->gpioHandle,GPIO_Number_5,GPIO_5_Mode_EPWM3B);
DRV8301-69M-KIT
// PWM1 - GPIO_setMode(obj->gpioHandle,GPIO_Number_0,GPIO_0_Mode_EPWM1A);
// PWM2 - GPIO_setMode(obj->gpioHandle,GPIO_Number_1,GPIO_1_Mode_EPWM1B);
// PWM3 - GPIO_setMode(obj->gpioHandle,GPIO_Number_2,GPIO_2_Mode_EPWM2A);
// PWM4 - GPIO_setMode(obj->gpioHandle,GPIO_Number_3,GPIO_3_Mode_EPWM2B);
// PWM5 - GPIO_setMode(obj->gpioHandle,GPIO_Number_4,GPIO_4_Mode_EPWM3A);
// PWM6 - GPIO_setMode(obj->gpioHandle,GPIO_Number_5,GPIO_5_Mode_EPWM3B);
Conclusion - The DRV8312-C2-KIT and the DRV8301-69M-KIT have the same ePWM - GPIO mappings
The ADC and interrupts may be a different story. However, during testing the following was noted:
A review of the DRV8301-69M-KIT schematic, 515502~1.pdf found in
C:\ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v105\~DRV830x-HC-EVM-HWdevPkg\DRV830x_RevD_HWDevPKG\Schematic
and compared to the table 18, J5 pin-out in the document "qsg_hw_drv8301_revd.pdf" reveals the following discrepancy; and indicates that the pin out figure for Jumper 5 (J5) on the schematic diagram is reversed left-to-right. The corrected diagram is as such:
Note, fortunately, the pins 30 and 27 are anti-symmetrical, thus this allowed easy 5Vdc testing with a voltmeter to verify the pin-out arrangement.
The next problem is the ADC and various interrupt mappings.
More work - Maybe more later.
I can discuss work on:
"Piccolo F2802x/F2803x/F2806x or Concerto F28M35x/F28M36x-based board: c280xx_adcpwmasynctest_ert.slx"
This has also been a challeeg because there are no "free" ADC inputs. All of the ADC ports are hardwired ADC_A0 thru A7 and ADC-B0 thru B7. I am currently using the ADC-Vhb1 (ADC-B7), although it is tied to the center point of the two power MOSFET's via a 95k ohm resistor. It is currently functional and demostrates that at least the ePWM's are functional and an input signal is also functional.
Any and all comments appreciated.
  1 Comment
Patxi
Patxi on 16 Jun 2023
I have bought a DRV8301 69 Kit and previously I have used the DRV8312 69 Kit during several years, by employing and modifiying the examples done by TI for MatLab/Simulink (c28069pmsmfoc_ert.slx , etc.) with considerable success.
Now, I would like to use these examples but they are not working in the new kit ( DRV8301 69 Kit ). I'm thinking to do the corresponding changes in the original examples to adapt to the new kit, but I need to take the time that I have not. Then, my question is, do you have any basic Simulink's model of PMSM FOC control for DRV8301 69 Kit ? or, do you know any link in which I can find one of them or any information related with?
Thank you very much!
Patxi

Sign in to comment.

Accepted Answer

lori kloesel
lori kloesel on 17 Nov 2021
Then DRV8301 kit has the following additional pin-outs:
IA-FB ADC-B3 / Pin 13
IB-FB ADC-B1 / Pin 9
IC-FB ADC-A3 / Pin 63
These additional pin connections indicate that the Simulink file "c280xx_adcpwmasynctest_ert.slx" might work without pin-out modifications/software modifications.

More Answers (2)

lori kloesel
lori kloesel on 14 Nov 2021
We will now start examining the difference in the schematics, I will start with the control card DIMM/Jumper 1/J1 connection interface. There are several mis-matches, but for the most part the differing pins appear to be "NC" or of no consequence, the main ePWM GPIO's and the ADC inputs appear to be the same. The following differ: Pins 16, 18, 20, 30, 31, 32, 42, 66, 68, 70, 72, 80 and 81. Pin 16 / "VREFLO" and Pin 66 / "VREFHI" will be examined in more detail (later).

lori kloesel
lori kloesel on 14 Nov 2021
Here is a review of the two schematics, The DRV830x-HC-C2-KIT (top) and DRV8312-C2-KIT (bottom). There are differences are IC-FB and IB-FB which may affect operations. I might be able to fix this in the software.

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!