Timer unit with 8Bit counter and no output compare unit. More...
#include <hwtimer.h>
Public Member Functions | |
HWTimer8_0C (AvrDevice *core, PrescalerMultiplexer *p, int unit, IRQLine *tov) | |
void | Reset (void) |
Perform a reset of this unit. | |
Public Attributes | |
IOReg< HWTimer8_0C > | tccr_reg |
control register | |
Protected Member Functions | |
void | Set_TCCR (unsigned char val) |
Register access to set control register. | |
unsigned char | Get_TCCR () |
Register access to read control register. | |
Protected Attributes | |
unsigned char | tccr_val |
register value TCCR |
Timer unit with 8Bit counter and no output compare unit.
This timer unit is used by following devices: ATMega8. It has only 1 mode: normal counting!
TCCRx register contains the following configuration bits (x=timer):
+---+---+---+---+---+----+----+----+ | - | - | - | - | - |CSx2|CSx1|CSx0| +---+---+---+---+---+----+----+----+
Definition at line 328 of file hwtimer.h.
HWTimer8_0C::HWTimer8_0C | ( | AvrDevice * | core, | |
PrescalerMultiplexer * | p, | |||
int | unit, | |||
IRQLine * | tov | |||
) |
Definition at line 886 of file hwtimer.cpp.
References HWTimer8::ChangeWGM(), and BasicTimerUnit::WGM_NORMAL.
unsigned char HWTimer8_0C::Get_TCCR | ( | ) | [inline, protected] |
void HWTimer8_0C::Reset | ( | void | ) | [virtual] |
Perform a reset of this unit.
Reimplemented from HWTimer8.
Definition at line 902 of file hwtimer.cpp.
References tccr_val.
void HWTimer8_0C::Set_TCCR | ( | unsigned char | val | ) | [protected] |
Register access to set control register.
Definition at line 897 of file hwtimer.cpp.
References BasicTimerUnit::SetClockMode(), and tccr_val.
control register
Definition at line 339 of file hwtimer.h.
Referenced by AvrDevice_at90s4433::AvrDevice_at90s4433(), AvrDevice_at90s8515::AvrDevice_at90s8515(), and AvrDevice_atmega8::AvrDevice_atmega8().
unsigned char HWTimer8_0C::tccr_val [protected] |
register value TCCR
Definition at line 331 of file hwtimer.h.
Referenced by Get_TCCR(), Reset(), and Set_TCCR().