HWTimer8_1C Class Reference

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

#include <hwtimer.h>

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

List of all members.

Public Member Functions

 HWTimer8_1C (AvrDevice *core, PrescalerMultiplexer *p, int unit, IRQLine *tov, IRQLine *tcompA, PinAtPort *outA)
void Reset (void)
 Perform a reset of this unit.

Public Attributes

IOReg< HWTimer8_1Ctccr_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 one output compare unit.

This timer unit is used by following devices: ATMega128.

TCCRx register contains the following configuration bits (x=timer):

  +----+-----+-----+-----+-----+----+----+----+
  |FOCx|WGMx0|COMx1|COMx0|WGMx1|CSx2|CSx1|CSx0|
  +----+-----+-----+-----+-----+----+----+----+ 

Definition at line 358 of file hwtimer.h.


Constructor & Destructor Documentation

HWTimer8_1C::HWTimer8_1C ( AvrDevice core,
PrescalerMultiplexer p,
int  unit,
IRQLine tov,
IRQLine tcompA,
PinAtPort outA 
)

Definition at line 907 of file hwtimer.cpp.


Member Function Documentation

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

Register access to read control register.

Definition at line 366 of file hwtimer.h.

References tccr_val.

void HWTimer8_1C::Reset ( void   )  [virtual]

Perform a reset of this unit.

Reimplemented from HWTimer8.

Definition at line 937 of file hwtimer.cpp.

References tccr_val.

void HWTimer8_1C::Set_TCCR ( unsigned char  val  )  [protected]

Member Data Documentation

unsigned char HWTimer8_1C::tccr_val [protected]

register value TCCR

Definition at line 361 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:24 2012 for Simulavr by  doxygen 1.6.3