Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 218594

Forum Post: TMS320F28388D: configure shadow registers of ePWM such that they load only every second zero crossing

$
0
0
Part Number: TMS320F28388D Tool/software: Sir, Madam I am configuring and ePWM to start and ADC conversion only every second ePWM timer zero crossing using EPWM_enableADCTrigger(base, EPWM_SOC_A); EPWM_setADCTriggerSource(base, EPWM_SOC_A, EPWM_SOC_TBCTR_ZERO); EPWM_setADCTriggerEventPrescale(base, EPWM_SOC_A, 2); This works nicely. I can switch mit power electronics with 60kHz while I get ADC interrupts at 30kHz. Now inside the ADC interrupt i write the new ePWM duty cycles back to the ePWM's shadow register. I now want to configure the loading of the shadow register such, that it keeps the duty value for 2 ePWM counter cycles and only loads the new duty cycle every second zero crossing/at the same time the ADC conversion is started. Checking the documentation of the ePWM i did not find a shadow-load mode that allows this. Do you know if this is possible? Thanks, Flurin

Viewing all articles
Browse latest Browse all 218594

Trending Articles



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