• Nie Znaleziono Wyników

 Wykad 7 - WDT, AC, EEPROM

N/A
N/A
Protected

Academic year: 2021

Share " Wykad 7 - WDT, AC, EEPROM"

Copied!
26
0
0

Pełen tekst

(1)

Podstawy Techniki

Mikroprocesorowej

(2)

Analog Comparator (AC)

Komparator Analogowy

(3)

AC - sterowanie

• 2 rejestry:

Analog Comparator Control and Status Register

Special Function IO Register

• 1 przerwanie (zdarzenie na bicie wyniku):

17 0x010 ANA_COMP

(4)

AC - budowa

Przerwanie:

17 0x010 ANA_COMP

dr inż. Piotr Markowski © 2015

(5)

Analog Comparator Control

and Status Register

ACD << 1 =>

ACBG << 1 =>

ACO –

ACI –

dr inż. Piotr Markowski © 2015

(6)

Analog Comparator Control

and Status Register

(7)
(8)

AC

Program przykładowy

(9)
(10)

Watchdog Timer (WDT)

Licznik specjalny

(11)
(12)

WDT - budowa

(13)

WDTCR - Watchdog Timer Control

Register

WDP0..2

WDE

dr inż. Piotr Markowski © 2015

(14)

WDT – poziomy bezpieczeństwa

(15)

WDT

(16)
(17)

Dostęp do pamięci

dodatkowej

(18)

Cechy

• 512 bajtów

• adresy 0 – 511

• sekwencja zabezpieczająca zapis

• przerwanie (zapis zakończony):

EE_RDY – wektor 0x00F

• czas zapisu ~8500 CK

• Pamięć dodatkowa, użytkownika

do przechowywania danych (ROM)

(19)

Sterowanie licznikiem T/C2

• 3 rejestry specjalne:

- The EEPROM Control Register (EECR)

- The EEPROM Data Register (EEDR)

- The EEPROM Address Register (EEARH, EEARL)

dr inż. Piotr Markowski © 2015

(20)

EEPROM Data Register (EEDR)

EEPROM Address Register (EEARH, EEARL)

(21)

EEPROM Control Register (EECR)

EERIE –

EEMWE –

EEWE –

dr inż. Piotr Markowski © 2015

(22)

Zapis do EEPROM

Bit EEWE automatycznie kasowany po zapisie

lub „przeterminowaniu” (4 CK)

(23)

Odczyt z EEPROM

Odczyt z EEPROM:

(24)

EEPROM

Program przykładowy

(25)
(26)

Przykładowe zagadnienia

sprawdzające

1.

AC – ile bitów wyniku podaje komparator?

2.

AC – jakie informacje można odczytać z wyniku?

3.

AC – jakich wejść oraz wyjść używa komparator?

4.

WDT – do czego służy Watchdog?

5.

WDT – poziomy zabezpieczeń licznika Watchdog – podobieństwa, różnice.

6.

WDT – jaki jest zakres (czasowy) zliczania Watchdoga?

7.

EEPROM – ile trwa zapis/odczyt do/z pamięci? To długo czy krótko?

8.

Do czego służą poszczególne rejestry układów AC, WDT, EEPROM?

Cytaty

Powiązane dokumenty

The configuration EEPROM RESET/OE and CE pins control the tri-state buffer on the DATA output pin and enable the address counter.. When RESET/OE is driven High, the configuration

To write data to a TS register, or to the on−board EEPROM, the Master creates a START condition on the bus, and then sends out the appropriate Slave address (with the R/W bit set

To write data to a TS register, or to the on−board EEPROM, the Master creates a START condition on the bus, and then sends out the appropriate Slave address (with the R/W bit set

The Flash EEPROM Program Memory Control and Status (FLCSR) register is a byte-wide, read/write register that con- tains several status and control bits related to the program

The Flash EEPROM Program Memory Control and Status (FLCSR) register is a byte-wide, read/write register that con- tains several status and control bits related to the program

Each of the eight 2-kbit EEPROM scratchpad blocks, a 2-kbit clock configuration EEPROM block, and a 2-kbit volatile clock configuration SRAM block, have their own 7-bit device

In this paper we present the Tardigrada Register (www.tardigrada.net/register): a free, comprehensive, and standardised online data repository for tardigrade taxonomy.. We outline

This command locks (write-protects) the 32-byte block of EEPROM memory containing memory address XX. The LOCK bit in the EEPROM Register must be set to l before the Lock command