simulavr  1.1.0
atmega8.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU Library General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
15  *
16  * atmega8.h
17  *
18  * Created on: 15.10.2010
19  * Author: ivica
20  */
21 
22 #ifndef ATMEGA8_H_
23 #define ATMEGA8_H_
24 
25 #include "avrdevice.h"
26 #include "hardware.h"
27 #include "rwmem.h"
28 #include "hwtimer/timerprescaler.h"
29 #include "hwtimer/timerirq.h"
30 #include "hwtimer/hwtimer.h"
31 #include "externalirq.h"
32 #include "hwuart.h"
33 #include "hwspi.h"
34 #include "hwad.h"
35 #include "hwacomp.h"
36 #include "pin.h"
37 
40 
41  public:
53 
56  HWAd *ad;
58 
73 
75  virtual ~AvrDevice_atmega8();
76 };
77 
78 #endif /* ATMEGA8_H_ */
Basic AVR device, contains the core functionality.
Definition: avrdevice.h:66
Pin adc7
adc channel 7 input pin
Definition: atmega8.h:43
IOSpecialReg sfior_reg
SFIOR IO register.
Definition: atmega8.h:60
HWPort portc
port C
Definition: atmega8.h:45
Definition: hwad.h:90
IOSpecialReg * gicr_reg
GICR IO register.
Definition: atmega8.h:48
Extends HWPrescaler with a external clock oszillator pin.
Pin class, handles input and output to external parts.
Definition: pin.h:98
HWAcomp * acomp
analog compare unit
Definition: atmega8.h:57
HWSpi * spi
SPI unit.
Definition: atmega8.h:71
Timer unit with 8Bit counter and one output compare unit.
Definition: hwtimer.h:377
Defines a Port, e.g. a hardware device for GPIO.
Definition: hwport.h:43
Handler for external IRQ's to communicate with IRQ system and mask/flag registers.
Definition: externalirq.h:41
PrescalerMultiplexerExt premux0
prescaler multiplexer for timer 0
Definition: atmega8.h:63
IOSpecialReg * mcucsr_reg
MCUCSR IO register.
Definition: atmega8.h:51
Implements the I/O hardware necessary to do USART transfers.
Definition: hwuart.h:149
HWTimer16_2C2 * timer1
timer 1 unit
Definition: atmega8.h:68
HWTimer8_0C * timer0
timer 0 unit
Definition: atmega8.h:67
OSCCALRegister * osccal_reg
OSCCAL IO register.
Definition: atmega8.h:52
IOSpecialReg * gifr_reg
GIFR IO register.
Definition: atmega8.h:49
Pin adc6
adc channel 6 input pin
Definition: atmega8.h:42
Timer unit with 16Bit counter and 2 output compare units and 2 config registers.
Definition: hwtimer.h:528
Reference source for ADC (base class)
Definition: hwad.h:35
HWPrescalerAsync prescaler2
prescaler unit for timer 2
Definition: atmega8.h:62
virtual ~AvrDevice_atmega8()
Definition: atmega8.cpp:230
IOSpecialReg * mcucr_reg
MCUCR IO register.
Definition: atmega8.h:50
HWPort portb
port B
Definition: atmega8.h:44
PrescalerMultiplexer premux2
prescaler multiplexer for timer 2
Definition: atmega8.h:65
HWUsart * usart
USART unit.
Definition: atmega8.h:72
Provices flag and mask register for timer interrupts and connects irq lines to irqsystem.
Definition: timerirq.h:61
Definition: hwspi.h:38
HWAdmux * admux
ADC multiplexer unit.
Definition: atmega8.h:54
HWTimer8_1C * timer2
timer 2 unit
Definition: atmega8.h:69
TimerIRQRegister * timer012irq
timer interrupt unit for timer 0 to 2
Definition: atmega8.h:70
HWARef * aref
ADC reference unit.
Definition: atmega8.h:55
ExternalIRQHandler * extirq
external interrupt support
Definition: atmega8.h:47
Prescaler unit for support timers with clock.
Timer unit with 8Bit counter and no output compare unit.
Definition: hwtimer.h:347
AVRDevice class for ATMega8.
Definition: atmega8.h:39
HWPort portd
port D
Definition: atmega8.h:46
PrescalerMultiplexer without external count pin.
Definition: prescalermux.h:35
ICaptureSource * inputCapture1
input capture source for timer1
Definition: atmega8.h:66
HWPrescaler prescaler01
prescaler unit for timer 0 and 1
Definition: atmega8.h:61
HWAd * ad
ADC unit.
Definition: atmega8.h:56
Class, which provides input capture source for 16bit timers.
Definition: icapturesrc.h:34
Definition: hwad.h:204
PrescalerMultiplexerExt premux1
prescaler multiplexer for timer 1
Definition: atmega8.h:64
PrescalerMultiplexer with external count pin.
Definition: prescalermux.h:55
Analog comparator peripheral.
Definition: hwacomp.h:42
IOSpecialReg assr_reg
ASSR IO register.
Definition: atmega8.h:59
Implement OSCCAL register.
Definition: rwmem.h:174