HWTimer8_0C Class Reference

Timer unit with 8Bit counter and no output compare unit. More...

#include <hwtimer.h>

Inheritance diagram for HWTimer8_0C:
Inheritance graph
[legend]
Collaboration diagram for HWTimer8_0C:
Collaboration graph
[legend]

List of all members.

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_0Ctccr_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

Detailed Description

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.


Constructor & Destructor Documentation

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.

Here is the call graph for this function:


Member Function Documentation

unsigned char HWTimer8_0C::Get_TCCR (  )  [inline, protected]

Register access to read control register.

Definition at line 336 of file hwtimer.h.

References tccr_val.

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.

Here is the call graph for this function:


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:52:21 2012 for Simulavr by  doxygen 1.6.3