Quantcast
Channel: MPLAB XC16
Viewing all articles
Browse latest Browse all 1508

Assigning Variables to Registers (GlenTreankler)

$
0
0
Hi! I want to assign a variable to a portion of a PORT register, similar to this: #define MyRegister PORTB<3:0> That doesn't work. Can anyone show me the correct syntax for this, to assign 4 bits of a PORT register to a variable? Thanks!Glen..

Viewing all articles
Browse latest Browse all 1508

Trending Articles



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