New answers tagged embedded
2
votes
Deboucing a BEMF in BLDC motor control
If bldc_step does indeed vary from 1 to 6 (or actually 0 to 5, from reading the code), then bldc_step & 1 is only true for ...
0
votes
Deboucing a BEMF in BLDC motor control
For motor debounce from deadzone flyback or Back EMF , in the provided code, debouncing ensures stable detection of back electromotive force (BEMF) signals, critical for determining rotor position. ...
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 ...
3
votes
Accepted
Designing DC-DC buck converter based on the L6981 (L6981C50DR)
Vin=12V, Vout=5V so duty cycle D=0.42.
F=400kHz, so T=2.5µs.
Ton = T.D =1.04µs
During Ton, L has (Vin-Vout) across it, so the inductor current ripple \$ \Delta I = \frac{Vin-Vout}{L} T_{on} \$ = 220mA....
3
votes
Accepted
MSP430F5529LP : Unable to change clock source to XT2
You should start with code that is known to work. Go to https://www.ti.com/product/MSP430F5529 → Design & development → Software development → SLAC300 C Examples, and look at MSP430F55xx_UCS_08.c.
...
0
votes
PIC16F15244 Page Size
Section 15.1 (on page 108 of the data sheet) is referring to non-volatile-memory. This description is limited to how the program memory space is mapped. Mapping is awkward because program words are 14-...
2
votes
Accepted
PIC16F15244 Page Size
Is a "row" the same thing as a page?
Yes because both refer to the smallest unit of program memory that can be written to in a single write operation.
Am I correct to say this PIC uses 64 ...
0
votes
CANopen - explanation of TPDO and RPDO
The documentation is correct. You can't have two nodes on the bus with the same COB-ID's. RPDO sends message to the COB-ID of the TPDO. That way the TPDO can receive it. The TPDO replies by ...
4
votes
Mitigating Single-Point Failure in an I2C Bus for Satellite ADCS
You've got as many I2C buses as the number of pairs of unused GPIO pins you have got. There's not that much benefit to using the I2C bus hardware usually. There's a niche for them on relatively slow ...
2
votes
High-speed Network Link between two Processors without Cable
There are versions of Ethernet that don't require traditional Ethernet cables at all. These incluse 1000BASE-KR and 10GBase-KX. Both are intended for communicating across a backplane between ...
0
votes
Need help choosing microcontroller (for low-complexity task)
The CH32V003 is a very cheap and simple RISC-V microcontroller that might fit your needs.
2
votes
Need help choosing microcontroller (for low-complexity task)
You could look at CPLDs instead. The cheapest ones are generally cheaper than a micro, and they're far better geared up for scanning keyboards. Altera, Xilinx, and Lattice Semi are generally the names ...
4
votes
Need help choosing microcontroller (for low-complexity task)
You could look for a reference design which implements a keyboard controller using a microcontroller, since that provides a reference schematic and software that gives you a starting point.
For ...
5
votes
Accepted
Need help choosing microcontroller (for low-complexity task)
Assuming you already have the development environment set up for the STM32 and are (or will be) highly familiar with it, you can just use a lower end STM32 model (maybe a Cortex M0) and save a whole ...
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
embedded × 1726microcontroller × 530
stm32 × 332
c × 241
arm × 122
pic × 90
programming × 77
uart × 74
arduino × 68
spi × 65
linux × 58
avr × 54
adc × 52
i2c × 51
microprocessor × 43
interrupts × 42
usb × 40
hardware × 38
pcb × 37
memory × 37
debugging × 36
flash × 35
microchip × 34
firmware × 34
serial × 33