Vadivukkarasi.k
Newbie level 2
micro controller
how to set (example the 10th bit of MSB) in a micro controller of 16 bit
how to set (example the 10th bit of MSB) in a micro controller of 16 bit
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Here's a snippet of C code that will set bit 10 within a 16 bit value:Vadivukkarasi.k said:how to set (example the 10th bit of MSB) in a micro controller of 16 bit
value |= (1 << 10);
DisableInterrupts();
value |= (1 << 10);
EnableInterrupts();