0.00
Рейтинг
0.00
Сила

Порты ввода-вывода | Первая программа | Микроконтроллеры с нуля #4


Мощнейшие онлайн курс по программированию микроконтроллеров: diodov.net/onlajn-kursy/

Порты ввода-вывода являются основным и единственным узлом с помощью которого микроконтроллер взаимодействуют с внешними устройствами. Поэтому прежде, чем написать первую программу следует научиться настраивать порты ввода-вывода микроконтроллера. Для этой цели служат два регистра: DDRx и PORTx. Например, если порт B микроконтроллера необходимо настроить на выход, то в соответствующий бит DDRB следует записать 0, а если на вход – 1. Путем запись 0 или 1 в регистр PORTB на данном выводе порта B устанавливают высокий или низкий потенциал.

Скачать программу: diodov.net/wp-content/uploads/2017/08/Programma-1.rar

Ссылки на покупку полезных элементов, необходимых для успешного изучения программирования микроконтроллеров AVR.

Сначала рекомендую получить ВЫСОКУЮ СКИДКУ НА ВСЕ ПОКУПКИ: ali.pub/3mulxb

Микроконтроллеры ATmega8: ali.pub/3muk7a

Программатор AVRASP: ali.pub/3mtqa2

Программатор AVRASP в хорошем корпусе: ali.pub/3mtqxz

Программатор STK500: ali.pub/3mtril

Программатор TOP3100, который программирует ВСЕ: ali.pub/3mtsgt

Макетная плата: ali.pub/3mtvcu

Удобная макетная плата: ali.pub/3mtvyt

Серьезная макетная плата: ali.pub/3mtx4m

Гибкие перемычки для макетной платы: ali.pub/3mtxj0

Перемычки в пенале 14 видов 140 штук: ali.pub/3mtxtw

Набор резисторов 600 штук, 30 номиналов по 20 штук: ali.pub/3muaey

Набор светодиодов разных цветов 300 штук: ali.pub/3mubp1

Набор транзисторов: ali.pub/3muc1h

Семисегментные индикаторы: ali.pub/3muisx

Тактовые кнопки: ali.pub/3muj92

#ПортыМикроконтроллера #НастройкаПортов #AVR

Кварцевый резонатор | Настройка фьюзов | Микроконтроллеры с нуля #16


Мощнейшие онлайн курс по программированию микроконтроллеров: diodov.net/onlajn-kursy/

Показано как подключить кварцевый резонатор к микроконтроллеру и настроить фьюзы микроконтроллера ATmega8. Кварцевый резонатор является своего рода генератором частоты. Хотя многие МК, в том числе и ATmega8, имеют встроенный генератор, а точнее RC-цепочку, и могут вполне обходиться без внешнего кварца. Для многих задач такое решение вполне оправдано, но как только МК применяется для точного счета времени либо для формирования заданных интервалов времени – различные измерительные устройства, кварцевый резонатор следует применять в обязательном порядке. Поскольку он имеет большую точность по сравнению с внутренним генератором МК.
Чтобы микроконтроллер работал от кварцевого резонатора необходимо выполнить настройку фьюзов, которые еще называют битами защиты, хотя последнее не совсем корректно. Как выполнить указанные действия, показано в данном видео.

Электроника для начинающих: www.youtube.com/watch?v=9IKzf6Medww

Основы систем счисления


Представьте себе мир микропроцессоров, состоящий полностью из двоичных чисел. На горизонте светит ослепительно белым горячим светом Intel Core i9 7980XE, разогнанный до 5 ГГц по всем ядрам. Небо заполнено нулями и единицами, а земля окутана пеленой чистейшего кремния, горы состоят из МОП-транзисторов. Этот мир — рай для познания.
Углубитесь в логику микропроцессора, узнав как он хранит обрабатывает числа. Изучите системы счисления, оперируемые процессором.

Поддержать автора: money.yandex.ru/to/41001765701452

Текст озвучивала Ольга Овод (канал WinTV): www.youtube.com/channel/UC0p9znq5WgXsY0I2jvuY8dQ

Мы в ВК: vk.com/nht_group
Мы в Steam: steamcommunity.com/groups/nht-group
Twitter: twitter.com/RiddleRiderOne

Приятного просмотра!

What is a Server? Servers vs Desktops Explained


What are servers? This is an animated video explaining the difference between servers and desktop computers. This video also explains the difference between Xeon server CPUs and Intel core desktop CPUs.

TWITTER ➤ twitter.com/PowerCert

Get the VPN that I use (affiliate). nordvpn.com/powercert
Use coupon code powercert and get 68% off a 2-year plan 4 months free.

How Computers Work, Compilation Video of Basics Explained


This is just a compilation of my computer explanation videos.
0:00 — Computer Components Rundown
7:38 — Graphics Cards
11:14 — Hard Drives
16:47 — Disk Fragmentation
19:21 — RAM
23:59 — Monitors
31:03 — Binary
37:36 — Voltage States
42:41 — Mouse
46:46 — The Internet

Individual videos can be found under the «Tech Videos» playlist on my channel.

The Evolution Of CPU Processing Power Part 4: The 32 Bit Processor - Pipelines and Caches


SERIES LINK — www.youtube.com/playlist?list=PLC7a8fNahjQ8IkiD5f7blIYrro9oeIfJU

The rapid expansion of software from simple text-based tools to massively complex, feature-rich, highly visual products would dominate the mass-market computing world during the 1980s and 90s. And with this push, came a higher demand on processors to both efficiently utilize more memory and grow in computing power, all while keeping costs at consumer accessible levels.

RISE OF 32-BIT

During the mid-1980s, in response to the growing demands of software, the opening moves towards the mainstream adoption of 32-bit processor architecture would begin. While 32-bit architectures have existed in various forms as far back as 1948, particularly in mainframe use, at the desktop level only a few processors had full 32-bit capabilities. Produced in speeds ranging from 12Mhz to 33Mhz, the 68020 had 32 bit internal and external data buses as well as 32-bit address buses. It’s arithmetic logic unit was also now natively 32-bit, allowing for single clock cycle 32-bit operations.

One year later, Intel would introduce its own true 32-bit processor family, the 80386. Not only did it offer a new set of 32-bit registers and a 32-bit internal architecture, but also built-in debugging capabilities as well as a far more powerful memory management unit, that addressed many of the criticisms of the 80286.

This allowed most of the instruction set to target either the newer 32-bit architecture or perform older 16-bit operations. With 32-bit architecture, the potential to directly address and manage roughly 4.2 GB of memory proved to be promising. This new scale of memory addressing capacity would develop into the predominant architecture of software for the next 15 years.

On top of this, protected mode can also be used in conjunction with a paging unit, combining segmentation and paging memory management. The ability of the 386 to disable segmentation by using one large segment effectively allowed it to have a flat memory model in protected mode. This flat memory model, combined with the power of virtual addressing and paging is arguably the most important feature change for the x86 processor family.

PIPLINING

CPUs designed around pipelining can also generally run at higher clock speeds due to the fewer delays from the simpler logic of a pipeline’s stage. The instruction data is usually passed in pipeline registers from one stage to the next, via control logic for each stage.

Data inconsistency that disrupts the flow of a pipeline is referred to as a data hazard. Control hazards are when a conditional branch instruction is still in the process of executing within the pipeline as the incorrect branch path of new instructions are being loaded into the pipeline.

One common technique to handle data hazards is known as pipeline bubbling. Operand forwarding is another employed technique in which data is passed through the pipeline directly before it’s even stored within the general CPU logic. In some processor pipelines, out-of-order execution is use to helps reduce underutilization of the pipeline during data hazard events.

Control hazards are generally managed by attempting to choose the most likely path a conditional branch will take in order to avoid the need to reset the pipeline.

CACHING

In caching a small amount of high-speed static memory, is used to buffer access to a larger amount of lower-speed but less expensive, dynamic memory.

A derived identifier, called a tag, that points to the memory region the block represents, amongst all possible mapped regions it can represent, is also stored within the cache block. While simple to implement, direct mapping creates an issue when two needed memory regions compete for the same mapped cache block.

When an instruction invokes memory access, the cache controller calculates the block set the address will reside in and the tag to look for within that set. If the block is found, and it is marked as valid, then the data requested is read from the cache. This is known as a cache hit and it is the ideal path of memory access due to its speed. If the address cannot be found within the cache then it must be fetched from slower system memory. This is known as a cache miss and it comes with a huge performance penalty as it can potentially stall an instruction cycle while a cache update is performed.

Writing data to a memory location introduces its own complication as the cache must now synchronize any changes made to it with system memory. The simplest policy is known as a write-through cache, where data written to the cache is immediately written to system memory. Another approach known as write-back or copy-back cache, tracks written blocks and only updates system memory when the block is evicted from the cache by replacement.

SUPPORT NEW MIND ON PATREON
www.patreon.com/newmind

SOCIAL MEDIA LINKS
Instagram — www.instagram.com/newmindchannel

How Do Touchscreens Work?


We use touchscreen displays for hours every day, but do you know about all the intricate layers and components that make them work? This episode goes into the structure and basic function of a touchscreen display. What goes into making toughened glass strong, how do capacitive touchscreens work, and how do OLEDs work? The merging of these technologies is what arguably makes the smartphone what it is! Take a look and learn more.

Do you want to support in-depth engineering and technology education? Join the Branch Education community on our Patreon page found here: www.patreon.com/brancheducation
We need more engineers throughout the world, and to do that we need better engineering education!

Table of Contents:
00:53 The Layers
01:35 Section 1: Toughened Glass
03:18 Section 2: Capacitive Touchscreen
05:07 Section 3: OLED Display
07:18 Section 4: Summary
07:48 Section 8: Outro

Key Branches from this video are: Multitouch, Electric Fields, Capacitors, OLEDs, LCDs, Material Transparency, Interface Aesthetics

Made by Teddy Tablante

Addendum