Questions tagged [register]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
35 views

Reset Value in Register with Multiplexer [closed]

I have a very simple circuit that looks like this: Every time the clock is pulsed, the value in the register is incremented by 1. However, I want to use a multiplexer so that when ...
Scollier's user avatar
  • 111
0 votes
1 answer
53 views

Capture/compare interrupt flag resetting without reading the CCRx

...
rachit juthani's user avatar
0 votes
0 answers
26 views

How do I fix UUU output from modelsim testbench?

I am designing static Ram to be used with an add/sub on Quartus. I have created a block diagram and generated VHDL code. My schematic is correct but modelsim keeps giving me UUU for the output of my ...
Syed Ali's user avatar
0 votes
1 answer
33 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
57 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
  • 35
0 votes
1 answer
44 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
310 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
55 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
  • 81
0 votes
1 answer
94 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
  • 159
1 vote
1 answer
43 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
  • 335
1 vote
1 answer
69 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
0 votes
0 answers
68 views

32-bit Mano Basic Computer structure

Reading Morris Mano's book about the basic computer, it mentions that the architecture used is 16-bit architecture, meaning the following registers have such lengths: Address Register: 12-bits ...
Weed Cookie's user avatar
1 vote
1 answer
324 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
0 votes
1 answer
87 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
163 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
0 votes
1 answer
157 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
491 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
0 votes
0 answers
170 views

Ben Eater's 8-bit CPU: I can't get the register to load data on the bus

I am following Ben Eater's 8-bit computer series. I am currently working on the register. The clock is working fine. However, there are two issues: When the data loads on the bus (for more detail, ...
Michael Paxinos's user avatar
3 votes
1 answer
211 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
2 votes
2 answers
252 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
  • 33
0 votes
1 answer
112 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
222 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
  • 147
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
157 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
78 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
94 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
  • 115
0 votes
3 answers
196 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,495
0 votes
1 answer
842 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,638
1 vote
2 answers
719 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,513
0 votes
2 answers
144 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
100 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
138 views

How to manipulate timer registers of Arduino Uno?

I already asked about How to achieve high speed microstepping? I even used Arduino Due to achieve high speed. Practically there was no difference compared to Uno but by changing baud rate I could see ...
2012User's user avatar
  • 135
0 votes
0 answers
118 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
  • 559
2 votes
2 answers
205 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
  • 205
0 votes
1 answer
119 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
2k 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
113 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
784 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
786 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
2k 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
2 votes
3 answers
1k views

What is the difference between register and memory?

I am currently studying the difference between microprocessors and microcontrollers and one of them says that: Microprocessors have less number of registers, so more operations are memory based. ...
Circuit_Breaker0.7's user avatar
2 votes
2 answers
207 views

Microcontroller bit information for the Core and different peripherals

Usually, from what I have seen, Microcontroller have this information of 8-bit, 16-bit and 32-bit. In this Microcontroller S32K142, it is mentioned as 32-bit CPU. So, what does this actually mean? I ...
user avatar
0 votes
3 answers
4k views

SPI frequency for slave and master?

I have been trying to hook up ADE7758 with STM32F401, but I am having a problem understanding the frequency part of it. There is no minimum or maximum frequency for SPI CLK in the datasheet, and my ...
ZBT248's user avatar
  • 19
1 vote
1 answer
2k views

What is the triangle symbol in circuit diagrams?

What is the triagular symbols shown in the image, is it a buffer or some kind of delay?
Malemna's user avatar
  • 15
2 votes
1 answer
4k views

How to make a register in VHDL remember?

I was given the assignment to implement an 18-bit register in VHDL. I used an example from the book "Free Range VHDL" recommended to me earlier. Here's what I got: ...
i spin and then i lock's user avatar
0 votes
1 answer
192 views

Which type of registers is used in CPU: serial or parallel? And how to implement them in VHDL?

I'm making a CPU in which the memory is represented as a two-dimensional array, using FPGA. I've come to the implementation of registers, and I need the answer to this question. I'm new to electronics,...
i spin and then i lock's user avatar

1
2 3 4 5 6