Skip to main content

New answers tagged

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 ...
Attie's user avatar
  • 3,002
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. ...
D.A.S.'s user avatar
  • 148k
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 ...
the busybee's user avatar
  • 3,640
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....
bobflux's user avatar
  • 81.6k
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. ...
CL.'s user avatar
  • 20.1k
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-...
glen_geek's user avatar
  • 27.6k
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 ...
Colin's user avatar
  • 1,861
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 ...
Reggie Little's user avatar
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 ...
Kuba hasn't forgotten Monica's user avatar
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 ...
Simon B's user avatar
  • 20k
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.
DennisFrett's user avatar
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 ...
Graham's user avatar
  • 6,260
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 ...
Chester Gillon's user avatar
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 ...
Spehro 'speff' Pefhany's user avatar
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 ...
Marcus Müller's user avatar

Top 50 recent answers are included