S12ZVM BLDC Sensorless using 100MHz CPU clock

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12ZVM BLDC Sensorless using 100MHz CPU clock

478 Views
sohyunjang
Contributor III

I use S12ZVM BLDC Sensorless application.

I change the code that External clock 4MHz, 100/50 MHz CPU/Bus clock, 8.33 MHz ADC clock.

// External clock 4MHz, 100/50 MHz CPU/Bus clock, 8.33 MHz ADC clock
#define _EXTERNAL_CLOCK
#define CPMU_REFDIV  1
#define CPMU_SYNDIV  24
#define CPMU_POSTDIV 0
#define CPMU_REFFRQ  0
#define CPMU_VCOFRQ  3
#define ADC_TIM   2
#define MIN_ADC_TRIGGER_FIRST 24
#define MIN_ADC_TRIGGER_SECOND 144
#define PWM_MODULO  5000
#define PWM_DEADTIME 50
#define TIM_PRESCALER 6   // Timer prescaler 64; 50 MHz/64 = 1.28 us
#define TIMER_1MS  781
#define SCI_BAUDRATE 5208
*/

I wonder how can fix the code.

PR_SECTION(ptuTrigE)
  volatile short PTUTriggerEventList[PTU_TOT_TRIGGERs_GEN_NO][PTU_TOT_LISTS_NO][3] = {
                                              {   /*DelayT0 */
                                                  {0x0100,0x0200,0x0000},{0x0000,0x0000,0x0000}
                                              },
                                              {
                                               {0x0100,0x0000,0x0000},{0x0000,0x0000,0x0000}
                                              }
                                            };

I use 300W ,13.5V motor.

And Sddenly motor stop situation is ocuured (during 1 minute runing Ok). GDUF = 0x33.

I use External clock 4MHz, 50/12.5 MHz CPU/Bus clock, 8.33 MHz ADC clock (original code).

Is it probelm?

I think problem is low bus clock.

And I try use External clock 4MHz, 25/12.5 MHz CPU/Bus clock, 6.25 MHz ADC clock.

Is it righ?

Labels (1)
Tags (2)
0 Kudos
0 Replies