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

Forum Post: RE: TMS320F280025: convert 2 lines of code from DriverLib mode to Bit Field / Register-Level Mode

$
0
0
Hello, Here is how I would suggest to write clear on a specific GPIO: // // Enable an GPIO output on GPIO6, set it high // GpioCtrlRegs.GPAPUD.bit.GPIO6 = 0; // Enable pullup on GPIO6 GpioDataRegs.GPASET.bit.GPIO6 = 1; // Load output latch GpioCtrlRegs.GPAMUX1.bit.GPIO6 = 0; // GPIO6 = GPIO6 GpioCtrlRegs.GPADIR.bit.GPIO6 = 1; // GPIO6 = output You can refer to C2000ware for C2000Warexx\device_support\f28002x\examples\gpio to find some examples. Best Regards, Masoud

Viewing all articles
Browse latest Browse all 217312

Trending Articles



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