Учтено инвертирование ШИМ в третьей фазе Настроено масштабирование напряжение (вектор напряжения в вольтах, а не в процентах ШИМ) Напряжение моста фильтруется
39 lines
683 B
C
39 lines
683 B
C
//###########################################################################
|
|
//
|
|
// FILE: epwm_test.c
|
|
//
|
|
|
|
//
|
|
//
|
|
//###########################################################################
|
|
//
|
|
// in 2838x_FLASH_lnk_cpu1.cmd
|
|
// .bss : > RAMGS0 // instead of RAMLS5
|
|
//###########################################################################
|
|
|
|
//
|
|
// Included Files
|
|
//
|
|
#include "f28x_project.h"
|
|
#include "init_perif.h"
|
|
#include "frmmstr_run.h"
|
|
#include "ExtEEPROM.h"
|
|
#include "adc_init.h"
|
|
|
|
void main(void)
|
|
{
|
|
InitPerif();
|
|
for(;;)
|
|
{
|
|
// asm (" NOP");
|
|
//ExtEEPROM_run();
|
|
frmmstr_run();
|
|
adc_run();
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// End of file
|
|
//
|