P
P
pavlyk2015-12-23 10:36:47
Electronics
pavlyk, 2015-12-23 10:36:47

How do cycles work in electrical circuits?

I understand for myself for the sake of interest in circuitry, I understood in general terms how writing occurs, reading into certain cells according to certain incoming data 3 inputs (address, data, writing / reading). But this is one specific command, but how does it write to 1000 cells in a row? How is the cycle organized? Or how is the sequence of commands lined up? It is on the diagram, I can’t figure something out ... I’m reading the book “The Secret Code of Informatics”, but I can’t clarify this point there, maybe I don’t read it carefully. Maybe if someone gives some links to articles or other books, I'll look there. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Antony, 2015-12-23
@pavlyk

But this is one specific command, but how does it write to 1000 cells in a row? How is the cycle organized? Or how is the sequence of commands lined up?

For example, write to a certain register (for example, in r1 ) a value ... well, let yours be 1000, in r2 the address of the first byte of the memory area from which you want to copy, in r3 the address of the first byte of the area where you want to copy.
Execute the following commands in sequence (an example algorithm):
1. Условный переход к "Строке 8" при равенстве r1 нулю.
2. Читаете данные по адресу из регистра r2 в регистр r4
3. Пишите данные из регистра r4 по адресу из регистра r3
4. Прибавляете единицу к значению регистра r2
5. Прибавляете единицу к значению регистра r3
6. Убавляете единицу от значения регистра r1
7. Безусловный переход к строке 1.
8. PROFIT

How does it look on the diagram?
The processor reads a command from memory at the address from the pc register (Program Counter) and executes it and then increases pc by 1.
Some instructions can change the value of pc (for example, conditional and unconditional jumps write the address of the instruction to which to go to it)

A
aol-nnov, 2015-12-23
@aol-nnov

there's just not enough circuitry.
Take a thread of a simple processor (for example, Intel 8080 or 8008) and read its architecture.

V
Vladimir Martyanov, 2015-12-23
@vilgeforce

Recording where? In RAM (and what type?) or in Flash? And there are also SPI, I2C and other microcircuits with cells. You can take a datasheet for any Flash-ROM chip and look there, usually it's written there.

A
Alexander, 2015-12-23
@komjaga

cycles in circuitry are counters

V
Vladishee, 2015-12-23
@Vladishee

I recently watched a video tutorial on the site fanatnauki Microcontrollers for beginners Manipulation of individual bits - Bit masks - Zeroing, inverting and setting bit ch1.
Literally in the first minutes, your question is clearly explained

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question