Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RDK-BLDC current measuring frequency in trapezoid modulation

$
0
0

In application code I found (adc_ctrl.c and pmw_ctrl.c) :

SysCtlADCSpeedSet(SYSCTL_ADCSPEED_1MSPS); // (speed of ADC, samples/sec)

ADCSequenceConfigure(ADC0_BASE, 0, ADC_TRIGGER_PWM0, 0); // (Enable trigger event from PMW Gen0)

 PWMGenIntTrigEnable(PWM0_BASE, PWM_GEN_0,
                        PWM_INT_CNT_ZERO | PWM_TR_CNT_LOAD);  // (ADC trigger event:  PMW counter of Generator0=load value)

g_pusADC0DataRaw[1] = HWREG(ADC0_BASE + ADC_O_SSFIFO0); // current reading

Current measuring is performed in ADC0IntTrap (subhandler) depending on PMW Output drive State. This subhandler for trapezoid mode (ADC0IntTrap) is called by ADC0IntHandler.

I have several questions:

1. When actually ADCoIntHandler is called?

2. What is the frequency of  current readings  from FIFO during PMW Period?

3. Reading current is performed during all PMW Period?

Please, could anyone reply to my questions?


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>