Skip to main content

Questions tagged [register]

A special, high-speed storage area within the CPU.

Filter by
Sorted by
Tagged with
0 votes
1 answer
90 views

STM32G4x 2 chanel Contunious Conversion Mode ADC DMA voltage read problem

I am using STM32G431KB Nucleo for measure a potentiometer voltage via ADC1_IN1 and ADC1_IN2 channels with Scan Mode DMA. And my samples arrays are always zero, no change. I share my code below. What ...
MSB's user avatar
  • 27
0 votes
0 answers
68 views

STM32G4x ADC DR always zero

I am using a STM32G413KB Nucleo Board, I am trying to test ADC with the code I write I give below, When I debug the code interrupt is triggering contuniously but ADC value don't change even I change ...
MSB's user avatar
  • 27
1 vote
1 answer
22 views

Strange behaviour of the gain register on image sensor OV7251 (with graphs!)

I am working with the OV7251 image sensor from Omnivision (sorry, the datasheet is not public, so I can't link to it). According to the datasheet, the gain and exposure can be set. The datasheet ...
Rocketmagnet's user avatar
  • 27.5k
0 votes
0 answers
23 views

What is the best way to understand if nRF24L01+ still works properly?

I continuously transmit some data from one nRF24L01+ (nRF) to another one. After a long transmission time, I often experience that the transmitter stops its transmission at a random time for no reason....
adba's user avatar
  • 311
0 votes
1 answer
60 views

Is it possible to use registers on Intel‑based FPGAs ? If not what’s the alternative for solving the bandwidth issue?

In order to bruteforce a key where the first private’s key bytes are known (leaving 270 possible private key to search) I’d like to do the following: pick up a 64‑bit private key range split that ...
user2284570's user avatar
0 votes
1 answer
157 views

How to understand Register Address, Bits, and Reset value of an electronic component?

Source: Page 31 ADXL355 MEMS' Datasheet. Source: Page 32 ADXL355 MEMS' Datasheet The above is some of ADXL355 Accelerometer Register map table. From that table, in the RESET column, there are their ...
AirCraft Lover's user avatar
0 votes
0 answers
22 views

MCP39F511A Response Contains Unexpected Data Before Correct Packet reading calibration registers

I'm currently working with the MCP39F511A power monitoring IC and encountering an issue with the serial communication responses I'm receiving. Following the device's manual, I send a packet to request ...
Zefan Wu's user avatar
0 votes
2 answers
360 views

STM32 UART without HAL library

I am writing register level code for STM32F4 & in my code there is a timer for calculation of the frequency of an input signal. I am trying to implement a UART for sending calculated data to ...
MSB's user avatar
  • 27
1 vote
1 answer
101 views

Is it safe to disable the write-protection of registers all the time in a microcontroller? [closed]

Because the hardware write-protection feature is given only for few registers while there are many other critical registers are left unprotected in a typical microcontroller (For example in Renesas ...
user3214692's user avatar
1 vote
1 answer
78 views

Get a value from register file to analyzer

I'm trying to access register values from the analyzer in the test bench. Is there a way to access them without calling the register file module? (I don't want to call the rf module because accessing ...
ameer anas's user avatar
0 votes
2 answers
52 views

Passkey register in microcontroller MSP430FR59xx

We recently had a Power Aware Computing class on the university where we used the microcontroller MSP430FR59xx. We had to examine how different voltages, clock frequencies, ULP modes affect the power ...
Ribisl's user avatar
  • 156
0 votes
1 answer
80 views

Capture/compare interrupt flag resetting without reading the CCRx

...
user avatar
0 votes
1 answer
57 views

DDR_XCK register in atmega328

Page 166 of datasheet of atmega328 shows the use of a register called DDR_XCK. ...
InfiniteLooper's user avatar
1 vote
0 answers
81 views

MSP430 ADC sampling does not work right

I am trying to get the 12bit ADC of the MSP430F5529 working. For this reason I want to read values from its internal temperature sensor every 2 seconds. The ADC setup is in the main.c file and the ...
crispus's user avatar
  • 47
0 votes
1 answer
54 views

How ideal should the clock input be for registers built out of 74HC chips?

I am a just starting my first build where a fully digital solution just isn't practical. Basically I have an old laptop I want to give away but it doesn't have any backlight on the keyboard. I have 2 ...
Aaron Butkovich's user avatar
3 votes
3 answers
440 views

Is there a circuit to detect if a line is high-impedance?

I was wondering if it was at all possible to detect a high-impedance state. I intend to use it with a LS245 within a register. It should essentially be able to turn on an LED (bring the output to HIGH)...
Aiden K's user avatar
  • 39
0 votes
2 answers
77 views

What do the numbers in square brackets that come after the letters mean? AFRH15[3:0]. STM32 registers

The images show STM32 registers. What do the numbers [1:0] after the name mean? MODER15[1:0] AFRH15[3:0] The first digit is the number of bits if you start counting from zero. What does the second ...
stm's user avatar
  • 89
0 votes
1 answer
181 views

How can I create variables like registers?

I'm currently working on a small home alarm system that runs on the PIC16F628A microcontroller. It's not the first time I came to a project with the idea of using my own custom created registers that ...
fpp's user avatar
  • 183
1 vote
1 answer
83 views

LIS2DE12 accelerometer sleep-to-wake, wake-to-sleep configurations

I am having a difficult time understanding some of accelerometer register entries, what exactly I need to write to them and what do they mean. To start with, I am trying to program LIS2DE12 ...
Dominykas's user avatar
  • 433
1 vote
1 answer
103 views

FIFO buffer in the ATmega328P

I have a problem in understanding the working of the FIFO buffer. The diagram of the USART in the datasheet does not mention the FIFO buffer, and it just gives the UDR register which acts as a ...
kam1212's user avatar
  • 671
1 vote
1 answer
738 views

5:1 Mux design for a common bus system

I am tinkering with logic gates preparing for an exam and came across a question that states the following Construct a common bus system for six registers where each register has five bits. the ...
Weed Cookie's user avatar
1 vote
1 answer
103 views

Implementing FSM with Sequential Logic

I am trying to complete Problem 4 of this MIT Computation Structures lab, which requires you to use a circuit simulator called Jade to build a sequential logic circuit that implements the below FSM: ...
Coder1913's user avatar
3 votes
2 answers
374 views

Verilog: Changing a register or output depending on changes in multiple input signals

I am trying to output a 2 bit-number that indicates which input signal changed during the time span when "detection mode" is switched on by another input signal. The output is saved in a ...
DerGrisu's user avatar
1 vote
1 answer
357 views

How does a flip-flop work in CPU registers?

From what I know, CPU registers work with flip-flops and when the data must pass from one register to another it travels on a bus. This happens only through an appropriate control signal. What I want ...
Lorenzo Cuttitta's user avatar
1 vote
2 answers
946 views

How do I handle interrupts manualy by registers in STM32?

I've just started learning STM32, and I'm learning it at low (register) level without libraries. It is very easy to use GPIO: I #define memory addresses (like ...
Tyo Hoy's user avatar
  • 75
3 votes
1 answer
238 views

How can I improve this RAM implementation in VHDL?

I'm practicing for a lab exam and I'm trying to solve one from past years. I feel like I'm doing something wrong because I don't have much experience with VHDL. Exam question Write the VHDL code for ...
iknotum's user avatar
  • 33
3 votes
2 answers
413 views

How can I change ARR/CCRx register in ISR correctly?

I have strange behavior of timers. I'm using a Blue Pill with a STM32F103 chip with the HAL lib. My case: I set up TIM2 to input capture mode to count impulses, then I store it in a global structure ...
Alexey's user avatar
  • 43
0 votes
1 answer
201 views

Can a register be considered a sequential circuit?

If you build a 2-bit register with JK flip-flops with the objective to allow storing the bit that was last added, can this be considered a sequential circuit?
RandomDeveloper's user avatar
0 votes
1 answer
332 views

Analog ADC AD7134 / AD4134 Problem Writing/Reading Register

I am trying to configure the AD7134 in 4-Wire SPI Control Mode with an ESP32-S3. According to the documentation and Analog, the AD7134 and AD4134 are interchangeable with minimum differences. So I ...
Maxim's user avatar
  • 167
0 votes
1 answer
21 views

NINA-B30 series registers pdf

I want to know the register map/registers of the NINA-B30 series ICs, as I am used to writing low-level drivers on MCUs. I could not find the datasheet that lists all the registers and their function ...
Christianidis Vasilis's user avatar
1 vote
1 answer
288 views

How to get a reliable simulation of assignment delay in the always block (Xilinx Vivado)?

I am having trouble with simulation of the nonblocking assignment delay in the always block. A simple example: assignment of the input ...
Peter's user avatar
  • 113
-1 votes
2 answers
94 views

Bistable memory cell with paired buffers instead of paired inverters

Bistable memory cells with paired inverters are very standard and basic building blocks (was used in Intel 8086 for example. ) But why not use paired buffers instead?
BipedalJoe's user avatar
0 votes
1 answer
99 views

Intel 8086 register bus default to high logic with pull-up resistor?

This schematic from righto.com's article on the register of 8086 shows a bi-stable latch with inverters. When the read line is set to high, and the inverter output is also set to high, the bit line ...
BipedalJoe's user avatar
0 votes
1 answer
37 views

what's thsi register Address: "16’b11_0_1_0nnn_0001_0011" stands for?

I'm learning a "PHY full rate clock divider configuration register" and it represents its register Address as 16’b11_0_1_0nnn_0001_0011 I think 16 stands for bit number, ...
Chen Li's user avatar
  • 125
0 votes
3 answers
214 views

A question about memory address in microcontroller vs PC [closed]

In context of embedded C, considering the following line: *((volatile uint32_t *) 0x48000414) |= 1UL<<12; Now 0x48000414 can be a memory pointer to a ...
user1999's user avatar
  • 1,505
0 votes
1 answer
1k views

How do computer memories interact with each other (registers, cache, RAM, ROM)?

After Googling around for some time, I have managed to get a good understanding what makes these components different, but I've yet to find any clear computer architecture-focused article/thread on ...
EL02's user avatar
  • 103
4 votes
2 answers
3k views

What is RCC in embedded C using registers? A register, or a pointer to a register, or something else?

Considering the following from here: RCC->AHB1ENR Is RCC above the register itself or pointer to a register. Because the -> operator is used with the ...
GNZ's user avatar
  • 1,811
1 vote
2 answers
967 views

STM32 bare-metal programming - Memory addressing in 32-bit system - memory offset

I am coming from a mechanical background and some Atmega experience, now doing some bare-metal programming courses on ARM processors. So far it is looking great, digging into documentation about uC ...
Aljaz Jelen's user avatar
3 votes
1 answer
1k views

STM32 UART Blocking Receiver Not Putting Data In Array, Overrun Flag

STM32F746 Disco, UART1 connected to ST-Link, Win 10, STM32CubeIDE, C, no HAL no other libraries other than CMSIS register definitions. Putty on Windows side to send and receive UART messages to/from ...
Ilya's user avatar
  • 3,613
0 votes
2 answers
147 views

How many times can a register bit be changed in AVR?

I am writing a program for an ATmega328P. I have a while loop inside which I am enabling the UART receiver complete interrupt flag using the command ...
vishnu m c's user avatar
1 vote
1 answer
112 views

PL011 write to DR when transmission disabled

The PL011 manual seems to assume that a TXE (transmission) is enabled when the CPU writes to DR: It doesn't say what happens if the the transmission was disabled (bit 8 of control register is 0) Is ...
Abhishek Anand's user avatar
0 votes
0 answers
135 views

What is the cost of increasing the number of register names?

Increasing the number of registers in a CPU, has the upside that more values can be kept in registers instead of having to spill to stack. It has some downsides, one of which is that more instruction ...
rwallace's user avatar
  • 563
3 votes
2 answers
215 views

Will this register drawing work?

I have just learned about how logic gates work and I am trying to simulate a 1-bit register without using a clock signal. My design looks like this: The logic should work something like this (...
JD9999's user avatar
  • 215
0 votes
1 answer
134 views

Computers: How signals in the bus can travel in either direction [closed]

I'm reading J. Clark Scott's book But How Do It Know. When he is describing registers and the bus he illustrates this at one point as five registers sequentially parallel-connected to a bus. As you ...
Erik Eriksson's user avatar
0 votes
1 answer
3k views

STM32 timer output compare interrupt all interrupt flags set at once

I'm trying to set up the output compare channels of TIM3 of an STM32F103RB MCU. For now I only enabled channel 1, but later I'll need CH2 and CH3 as well. When CH1 triggers, the TIM3->SR register ...
inaseaofsalt's user avatar
0 votes
1 answer
148 views

Making a register from DFFs without using multiplexers

I am currently trying to design a 4-bit register that is optimised in terms of transistor count, since I will be laying it out in a larger circuit that is very limited in terms of chip space. My ...
finlay morrison's user avatar
0 votes
1 answer
1k views

How to Use Modular Arithmetic in Verilog

I am trying to code the RC6 (Rivest cipher 6) algorithm using Verilog. The algorithm requires addition, subtraction and multiplication in modulo 232. I've been told that I can use conventional +, -, * ...
PrematureCorn's user avatar
0 votes
1 answer
76 views

Shared rising edge detector? [closed]

Why do we have a rising edge detector in every flip flop of a register. Can't we just make a shared one for all the flip flops in order to save hardware?
Ctvpd's user avatar
  • 11
0 votes
3 answers
1k views

A transistor and a diode instead of a tri-state buffer

I was wondering if it is possible to replace the tri-state buffer with a transistor and a diode as shown in the image. In this case a zero will be the same as high impedance. I don't understand why we ...
Ctvpd's user avatar
  • 11
1 vote
1 answer
3k views

Read data from a register in C-code [closed]

I am a beginner and learning by myself. I need your help to start the third implementation in my life in VIVADO ( "Hello world" and "led") I will implement SPI connection with DMA, ...
Noel Miller's user avatar

1
2 3 4 5
7