Questions tagged [embedded]

An embedded system is a computer system designed to perform one or a few dedicated functions, often with real-time computing constraints. It is embedded as part of a complete device often including hardware and mechanical parts.

Filter by
Sorted by
Tagged with
1 vote
2 answers
26 views

Connecting a 2 pair ethernet to 4 pair ethernet

I have a switch that has a 4 wire (2 twisted pairs) ethernet interface which I want to connect to an i.MX8 Plus MPU (GBit ethernet with 4 pairs). I need to design the PCB that connects the MPU to the ...
mlx11's user avatar
  • 59
0 votes
0 answers
22 views

I am not getting the proper angles in the gyro for mpu 6050 using embedded c for arduino

...
ShadowKing's user avatar
1 vote
1 answer
74 views

Is Embedded Systems a subset of the Systems Programming field?

I am a little unsure about the distinction between systems programming and embedded systems fields. Both definitions are pretty straightforward: If we produce software targeting other software, we ...
Rubem Pacelli's user avatar
1 vote
1 answer
49 views

MSP430 i2c txn buffer not moving second buffer command

In this code i have used B0 I2C module. Problem - I f i I2C_Txn_byte() to send any command it sends the it the first time but doesn't get in the interrupt ISR again for Example ...
SlickDaDDy's user avatar
0 votes
1 answer
46 views

What is expected error rate and drop rate on ST-Link VCP USART?

What is expected error rate and drop rate on ST-Link VCP USART? On the Nucleo STM32F446RE, my code reads the USART VCP (of ST-Link) and echoes it back. It uses DMA, FreeRTOS, and FreeRTOS queues (...
SRobertJames's user avatar
0 votes
1 answer
47 views

How to debug a failing USART?

I have simple code which writes to the USART on a Nucleo board that is connected to ST-Link, and appears on my workstation via VCP over USB. I'm trying now to port it to a STM32H735G-DK Discovery but ...
SRobertJames's user avatar
1 vote
2 answers
35 views

How is the LCD on STM32H735G-DK connected, and how can I turn it off?

The STM32H735G-DK Discovery board comes with an LCD. I wrote from scratch (no HAL) a simple blinky code, and it works well. However, the LCD is on (and backlit) by default, without any code from me ...
SRobertJames's user avatar
3 votes
5 answers
753 views

Low consumption resistor pair

I'm working on a project that measures battery voltage. The device, I designed, works on coin cell. I have to extend battery life, that's why I used the following design But it requires two pins ...
inventionClass's user avatar
0 votes
0 answers
35 views

How can I use normal CAN with CAN FD?

I'm working with i.MX6ULL not supporting CAN FD but other CAN nodes supports. How can I use normal CAN on this bus without making any hardware changes? I need to fix CAN to CAN FD communication ...
gilding's user avatar
7 votes
4 answers
840 views

Low Percentage PWM LED Brightness (Equation?)

I have a 5 V embedded circuit where a 10 kΩ pot controls the duty cycle of an LED. I noticed that when the duty cycle is only 0.39% (or 1/255 bits), the LED is still perceptibly bright. I'm looking at ...
t3rrapin's user avatar
0 votes
1 answer
43 views

Encoder signal reading Arduino

I have a quadrature encoder both connected to the Interrupt pins on my arduino. I want to read the encoder values in the range of 0-255 with increment in the clockwise direction and decrement in the ...
dreamcoder's user avatar
0 votes
1 answer
45 views

Tim5 initialization unable to trigger callback function on stm32

I've been having a lot of trouble lately trying to get ADC3 to run on my STM32F746g-discovery board, so I started from scratch in order to try to pinpoint a problem. Unfortunately, now timer5 isn't ...
Eli Y's user avatar
  • 75
0 votes
1 answer
24 views

STM32F030 I2C: Avoiding NACK

I am trying to port my I2C code from STM32F103 to STM32F030. Everything works fine with writes (writes to an eeprom), but when I try to read from an EEPROM (first write transmission with memory ...
sx107's user avatar
  • 1,075
0 votes
3 answers
86 views

MSP430 delay using timer with polling condition

Need help with this code, it is not creating any delay. I tried simulating this code in Proteus. ...
SlickDaDDy's user avatar
0 votes
0 answers
16 views

LSM6DS3 gyro raw to degrees per second conversion error

I am using LSM6DS3 for one of my projects with Nordic nrf52840 along with Nordic SDK. I am trying to read the gyroscope and according to my understanding the gyroscope value should not exceed the full ...
EngineeringArtist's user avatar
0 votes
1 answer
26 views

Understanding Datasheets for Microchip Explorer 16 Board (and PIC32MX360F512L MCU)

I'm working my way through a book ("Programming 32-bit Microcontrollers in C: Exploring the PIC32", by Lucio Di Jasio, 2008) which uses the Explorer 16 Dev Board by Microchip. I have the ...
dvanaria's user avatar
  • 101
3 votes
1 answer
172 views

Need help to understand an Arduino Capacitance-Meter program

There is a program for Arduino that without using any external component, measures value of an unknown capacitor in the range of 470pF to 18pF: https://www.circuitbasics.com/how-to-make-an-arduino-...
Meysam's user avatar
  • 73
5 votes
2 answers
867 views

Loading LSB first or MSB first?

I am trying to create a delay function similar to builtin __delay_ms() in MPLABX IDE PIC18F4520. The question is if I write the LSB first to the TMR0L register, I ...
Madhan Gasikanti's user avatar
0 votes
2 answers
75 views

Understanding the Trade-offs Between Hardware and Software Implementations for Communication Protocols in Embedded Systems [closed]

I am currently learning about embedded systems and am keen to understand the trade-offs between using dedicated hardware blocks and software implementations for communication protocols like UART, SPI, ...
merovingian's user avatar
0 votes
1 answer
86 views

ESP32-S3 bricked when using UART communication

I've just assembled a PCB with a ESP32-S3 on it. It has the buttons for reset and boot, but when connected by UART it gives the following output in a loop when reading serial. ...
Jaime Fernandez's user avatar
0 votes
0 answers
29 views

Can I control the DIOs of SX1276 using another Microcotroller?

I want to know if I can use the 6 DIO pins on the SX1276 LoRa module as regular GPIO pins. Here is the context. I have an Arduino Nano RP2040 Connect Board. https://docs.arduino.cc/hardware/nano-...
WhiteShark's user avatar
0 votes
4 answers
211 views

How to accurately measure a variable resistor?

I need to get a measurement from a variable resistor, ranging from 10-180 Ω. Measurement shall be better than 1% over a room temperature ranging from 5 to 45°C. This variable resistor is activated by ...
AutoPilot's user avatar
1 vote
0 answers
49 views

Monitoring VREF+ buffer output in STM32L552

I am working with the STM32L552 microcontroller in a critical application where a portion of the external circuit relies heavily on the 2.5 V VREF+. The stability of this reference voltage is ...
tronhawk's user avatar
1 vote
0 answers
28 views

Help in system initialization and clock configuration of MSP430F427A MCU interfaced with custom LCD

When I debug the code, the LCD refreshes rapidly. I am not confident with the correct system clock configuration to use. Moreover, after debugging, in release mode, nothing displays on my LCD nor the ...
Bravo's user avatar
  • 11
0 votes
1 answer
86 views

Calculate Memory Address

I know this is a simple arithmetic question for many of you, but I can't figure out how to solve this problem. In a uController (this is an example, it doesn't matter which one) SRAM1 has ...
KaleM's user avatar
  • 327
0 votes
1 answer
89 views

embedded system STM32F4 ADC sampling rate

I am new to embedded systems. I done a bit of analogue circuit design but nothing connecting analogue circuits to a STM32 via ADC. I am using STM32F4 microcontroller and had couple of questions. I ...
CircuitFreak's user avatar
1 vote
1 answer
40 views

How/where can we use/have camera modules similar to those of smart phones [closed]

Many laboratory or embedded systems projects can leverage cameras similar to those of smartphones because of their size and geometry in general. But the problem is we cannot just take out the camera ...
Alejandro's user avatar
  • 173
2 votes
4 answers
1k views

What are pull-up resistors for and how are their values calculated?

I have some questions related to pull-up resistors. Just trying to understand in depth here. Why do we use pull-up resistors on the input pins of a microcontroller? Can I directly connect GPIO input ...
Wajahatulla Sharif's user avatar
0 votes
0 answers
62 views

What tool is required to implement data transfer between PS and PL of Zynq 7000 SoC?

I am new to embedded programming. I undetstand a little bit what Vivado and Petalinux does. But I would like to how exactly I can use Vivado and Petalinux to perform data transfer between ...
Creator's user avatar
  • 147
2 votes
1 answer
135 views

Booting modes of STM32 microcontrollers

I am creating a custom board and using STM32F303 chip. I have looked into the datasheet and there are 3 boot modes and according to the datasheet the bootloader resides in the ROM memory. I got ...
Ahsan's user avatar
  • 71
-3 votes
2 answers
82 views

Embedded C vs. General Purpose C [closed]

Can somebody list all the differences between Embedded C for intel 8051 and General Purpose C?. Where can I find the standards of Embedded C?
Philip's user avatar
  • 19
0 votes
0 answers
67 views

STM32 Serial Communication Problem

I am trying to use, TX RX communication with STM32. But my code does not work clearly. Can you help me to improve the code? Firstly I could not decide which interrupt function I should use (...
Mr.JuniorEngineer's user avatar
-1 votes
1 answer
149 views

Is this device technically feasible? [closed]

I'm a software engineer and new to hardware. Please bear with me. I'm building out a Proof of Concept for a device and I would like to understand the feasibility around the concept from a device ...
Andy's user avatar
  • 99
0 votes
0 answers
39 views

Interfacing Issue between PIC18F46K22 and I2C LCD with PCF8574AT module

I'm facing a problem while interfacing a PIC18F46K22 microcontroller with an LCD screen using I2C communication. I have used a PCF8574AT I2C module and a 16x2 LCD screen. Everything works correctly in ...
Nader Noomen's user avatar
1 vote
2 answers
36 views

infrequent USB dropouts on SBC

I have a full speed USB audio device connected to the USB port on a SBC running Ubuntu Linux. I'm acquiring data over this connection and I need 24/7 uninterrupted data acquisition. If the USB ...
davegravy's user avatar
  • 319
0 votes
1 answer
84 views

Incorrect results when cycle counting on STM32 using DWT->CYCCNT

I'm trying to determine the number of clock cycles it takes to run some code I've written for an STM32, because I'm curious to see just how much slower it is if I use floating point numbers. This is ...
tinfever's user avatar
0 votes
5 answers
151 views

What type of embedded sytem is used in a mobile phone(cell phone)?

What type of embedded system is used in a mobile?Is it a microcontroller, FPGA or a DSP According to my understanding the basic and simple mobile phones like nokia 3310 used microcontroller since ...
DSP_CS's user avatar
  • 1,171
2 votes
1 answer
119 views

How to calculate system clock for ticks? I need to fire the timer every 60 secs (Attiny 404)

My timer initialisation ...
jackrussel fernandis's user avatar
0 votes
0 answers
56 views

Is CircuitLab simulator and KiCad simulator similar?

I have been looking for an open source circuit simulator to embed. I found one that is CircuitLab but it doesn't seem to be open source. I found an alternative called KiCad, but I am not sure if it ...
muhammad firdaus's user avatar
1 vote
2 answers
128 views

NRF52 - unexpected high power in idle mode

I am trying to program a low-powered Bluetooth Low-Energy sensor using an nrf52810 microcontroller. I am trying to minimize power consumption when the sensor is idle. I have created a minimum code ...
ItsAmy's user avatar
  • 515
0 votes
1 answer
83 views

Why is the LED not getting turned off?

I have written this code for nRF52832. Shouldn't LED_1 be turned off when it's executing the else branch? ...
Jag Mohan Ray's user avatar
0 votes
1 answer
28 views

Ideas about generating images for E-Paper display

I am currently working on a project where I'm using a DA14531 BLE-module to collect data from some sensors and display the collected data on an E-paper display. As the display is quite large (400x300 ...
user294957's user avatar
0 votes
0 answers
28 views

I2C issue communicating with an analog to digital converter mux ADS1015 through TCA9548A I2C multiplexor

I am using a Raspberry Pi Zero 2 to talk through a TCA9548A to multiple ADS1015, each ADS1015 is on a separate SDA/SCL channel of the TCA9548A. I am able to scan all channels and see the active ...
Erv's user avatar
  • 422
0 votes
2 answers
31 views

How to write to a write to ADS1015 through TCA9548A connected to I2C multiplexor and trying to talk to a analog to digital multiplexor?

I am using a Raspberry Pi Zero 2 to talk through a TCA9548A to multiple ADS1015, each ADS1015 is on a separate SDA/SCL channel of the TCA9548A. I am able to scan all channels and see the active ...
Erv's user avatar
  • 422
0 votes
0 answers
27 views

SSL AT command issue after switching from SIM7600EI to SIM7600 CE,

I had a simple application which POSTs a JSON payload to an API endpoint, running on an STM32 controller with SIM7600EI as the modem. Shortage of SIM7600EI in the market forced me to switch to 7600CE ...
nottherealfaraday's user avatar
0 votes
1 answer
75 views

On an embedded system, when you have a hardware interrupt, what happens to the process status word?

I have been taught that when an interrupt arrives, the following generally happens: The current instruction finishes. The interrupt is acknowledged. The hardware state(PSW) is stored . The PC is ...
Thomas Stokes's user avatar
0 votes
0 answers
58 views

Why is my UART2 not sending output on teraterm using embedded C on stm32f722ze?

Here is the code i have tried. ...
Sashish Acharya's user avatar
0 votes
3 answers
56 views

Access of flag by CPU

Consider we are using a flag which takes a 0 or 1 value in a embedded programming. Thus we need only 1 bit. However when CPU access data it would access all the 8 bit associated with it. Is this a ...
Creator's user avatar
  • 147
0 votes
1 answer
50 views

How does data reach peripherals in STM32H7xx?

I'm trying to understand bus interconnection matrix in stm32h7xx. Here is a capture of the H753's one: In particular, I'm wondering how a data buffer located in DTCM would reach the SPI1's tx ...
Martel's user avatar
  • 1,215
0 votes
0 answers
45 views

Using ISL9241 Buck-Boost Battery Charger for an AMD Motherboard (Without an EC)

I want to use ISL9241 Buck-Boost Battery Charger for a system that has AMD Ryzen™ 9 PRO 6950HS APU. I saw that also in AMD reference design and Intel Tiger Lake UP3 reference design, ISL9241 was used ...
Firas Abd El Gani's user avatar

1
2 3 4 5
33