TCON - Timer/Licznik 0 i 1

czwartek, 16 października 2008 00:08 Dominik Łuczak
Drukuj
Ocena użytkowników: / 2
SłabyŚwietny 

TCON                Timer/Licznik
Adres SFR               88H
Domyślna wartość    00H
Bitowo adresowalny  Tak

 

 Bit  Nazwa  Opis
 7  TF1 Timer 1 flaga przepełnienia
Bit ustawiany sprzętowo oznaczający przepełnienie Timera/Licznika 1.
Bit czyszczony sprzętowo po wejściu w funkcję przerwania 

 6  TR1 Bit uruchamiający Timer 1
1 – Ustawiany przez użytkownika programowo aby uruchomić licznik/timer
0 – Kasowany przez użytkownika programowo aby wyłączyć licznika/timer

 5  TF0

Timer 0 flaga przepełnienia
Bit ustawiany sprzętowo oznaczający przepełnienie Timera/Licznika 0.
Bit czyszczony sprzętowo po wejściu w funkcję przerwania 

 4  TR0 Bit uruchamiający Timer 0
1 – Ustawiany przez użytkownika programowo aby uruchomić licznik/timer
0 – Kasowany przez użytkownika programowo aby wyłączyć licznika/timer


 3  IE1* Flaga 1 przerwania zewnętrznego
Set by hardware by a falling edge or zero level being applied to external interrupt Pin INT1, depending on bit IT1 state.
Cleared by hardware when the PC vectors to the interrupt service routine only if the interrupt was transition-activated. If level-activated, the external requesting source controls the request flag, rather than the on-chip hardware.

 2  IT1* Flaga 1 przerwania typu spustowego
Set by software to specify edge-sensitive detection (i.e., 1-to-0 transition). Cleared by software to specify level-sensitive detection (i.e., zero level).

 1  IE0* Flaga 0 przerwania zewnętrznego
Set by hardware by a falling edge or zero level being applied to external interrupt Pin INT0, depending on bit IT0 state.
Cleared by hardware when the PC vectors to the interrupt service routine only if the interrupt was transition-activated. If level-activated, the external requesting source controls the request flag, rather than the on-chip hardware.

 0  IT0* Flaga 0 przerwania typu spustowego
Set by software to specify edge-sensitive detection (i.e., 1-to-0 transition). Cleared by software to specify level-sensitive detection (i.e., zero level).

 *Bity te nie są używane podczas sterowania timerem/licznikiem

Timer/Licznik 0 i 1 rejestry danych
Każdy timer składa się z dwóch rejestrów 8-bit. Mogą być używane osobno, lub razem jako 16 bitowy rejestr.

TH0 i TL0
 Starszy i młodszy byte Timer 0
SFR Adres = 8CH, 8AH

TH1 i TL1
  Starszy i młodszy byte Timer 1
SFR Adres = 8DH, 8BH

 

Źródło: dokumentacja ADuC831