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

TMS320F28377D: TMS320F28377D GPIO issue

$
0
0

Part Number:TMS320F28377D

hi,

i want to generate PWM based on one input . i don't know how to do this so i m using GPIO for this . but when i am reloading the program . GPIO showing some glitch and my mosfets blow out  . so pls suggest me to avoid these glitch or to config.  PWM based on  input. my sample code is as below.


if (sin(theta_pll) >=.06975 )
GpioDataRegs.GPADAT.bit.GPIO3 =1;
else
GpioDataRegs.GPADAT.bit.GPIO3 =0;

if (sin(theta_pll) <=-.06975)
GpioDataRegs.GPADAT.bit.GPIO2 =1;
else
GpioDataRegs.GPADAT.bit.GPIO2 =0;


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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