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

Forum post: RE: CCS/TMS320F28027F: Sine Wave Generation

$
0
0
Hi, [quote]void GPIO_SELECT(void) { EALLOW; GpioCtrlRegs.GPAPUD.bit.GPIO0 = 0; GpioCtrlRegs.GPAPUD.bit.GPIO1 = 0; GpioCtrlRegs.GPAMUX1.bit.GPIO0 = 1; GpioCtrlRegs.GPAMUX1.bit.GPIO1 = 1; GpioDataRegs.GPADAT.bit.GPIO0= 1; GpioDataRegs.GPADAT.bit.GPIO1= 1; EDIS; }[/quote] Please check the GPIO configuration for the EPWM configuration if you are not getting any output at the pin. Refer to C2000Ware EPWM examples for standard GPIO configuration sequence. PFB the sequence for EPWM1 for reference: void InitEPwm1Gpio(void) { EALLOW; // // Disable internal pull-up for the selected output pins // for reduced power consumption // Pull-ups can be enabled or disabled by the user. // Comment out other unwanted lines. // GpioCtrlRegs.GPAPUD.bit.GPIO0 = 1; // Disable pull-up on GPIO0 (EPWM1A) GpioCtrlRegs.GPAPUD.bit.GPIO1 = 1; // Disable pull-up on GPIO1 (EPWM1B) // // Configure EPwm-1 pins using GPIO regs // This specifies which of the possible GPIO pins will be EPWM1 functional // pins. Comment out other unwanted lines. // GpioCtrlRegs.GPAMUX1.bit.GPIO0 = 1; // Configure GPIO0 as EPWM1A GpioCtrlRegs.GPAMUX1.bit.GPIO1 = 1; // Configure GPIO1 as EPWM1B EDIS; }

Viewing all articles
Browse latest Browse all 232806

Trending Articles



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