New answers tagged c
0
votes
Differences between P1SEL |= BIT5 + BIT6 vs P1SEL= BIT5 | BIT6 in embedded C
Two differences need to be considered.
Assignment operator vs assignment
P1SEL |= ... uses the assignment operator |=. This is a ...
1
vote
How does the LM358 works in this IR proximity sensor?
Here is a typical AliExpress hobbyist proximity detector module.
I don't see that anyone has published a schematic so I'll produce one below:
simulate this circuit – Schematic created using ...
1
vote
sprintf suddenly stops working
char temp[4];
sprintf(temp, "%d,", (uint8_t)98);
comment:
In the actual code, strlen of a global array was being printed (via sprintf) onto destination ...
Top 50 recent answers are included
Related Tags
c × 1661microcontroller × 633
stm32 × 366
pic × 353
embedded × 241
avr × 204
uart × 118
interrupts × 107
atmega × 88
i2c × 85
programming × 83
arm × 82
arduino × 74
microchip × 73
timer × 65
spi × 59
adc × 56
c++ × 51
msp430 × 43
pwm × 38
serial × 38
assembly × 34
8051 × 32
mplabx × 32
keil × 31