simulavr  1.1.0
attiny2313.h
Go to the documentation of this file.
1  /*
2  ****************************************************************************
3  *
4  * simulavr - A simulator for the Atmel AVR family of microcontrollers.
5  * Copyright (C) 2001, 2002, 2003 Klaus Rudolph
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  ****************************************************************************
22  *
23  * $Id$
24  */
25 
26 #ifndef ATTINY2313
27 #define ATTINY2313
28 
29 #include "avrdevice.h"
30 #include "hardware.h"
31 #include "rwmem.h"
32 #include "hwtimer/timerprescaler.h"
33 #include "hwtimer/timerirq.h"
34 #include "hwtimer/hwtimer.h"
35 #include "externalirq.h"
36 #include "hwuart.h"
37 #include "hwacomp.h"
38 #include "hwusi.h"
39 
42 
43  public:
47 
54 
60 
71 
74 };
75 
76 #endif
Basic AVR device, contains the core functionality.
Definition: avrdevice.h:66
AVRDevice class for ATTiny2313.
Definition: attiny2313.h:41
HWPort portd
port D (only 7 bit)
Definition: attiny2313.h:46
GPIORegister * gpior0_reg
GPIOR0 Register.
Definition: attiny2313.h:49
OSCCALRegister * osccal_reg
OSCCAL IO register.
Definition: attiny2313.h:53
Implement CLKPR register.
Definition: rwmem.h:135
PrescalerMultiplexerExt premux1
prescaler multiplexer for timer 1
Definition: attiny2313.h:63
Defines a Port, e.g. a hardware device for GPIO.
Definition: hwport.h:43
GPIORegister * gpior2_reg
GPIOR2 Register.
Definition: attiny2313.h:51
Definition: hwusi.h:41
CLKPRRegister * clkpr_reg
CLKPR IO register.
Definition: attiny2313.h:52
A register in IO register space unrelated to any peripheral. "GPIORx" in datasheets.
Definition: rwmem.h:113
Handler for external IRQ's to communicate with IRQ system and mask/flag registers.
Definition: externalirq.h:41
IOSpecialReg gtccr_reg
GTCCR IO register.
Definition: attiny2313.h:48
PrescalerMultiplexerExt premux0
prescaler multiplexer for timer 0
Definition: attiny2313.h:62
HWUsart * usart
usart unit
Definition: attiny2313.h:68
GPIORegister * gpior1_reg
GPIOR1 Register.
Definition: attiny2313.h:50
Implements the I/O hardware necessary to do USART transfers.
Definition: hwuart.h:149
ICaptureSource * inputCapture1
input capture source for timer1
Definition: attiny2313.h:64
IOSpecialReg * mcucr_reg
MCUCR IO register.
Definition: attiny2313.h:58
Timer unit with 16Bit counter and 2 output compare units, but 3 config registers. ...
Definition: hwtimer.h:593
TimerIRQRegister * timer01irq
timer interrupt unit for timer 0 and 1
Definition: attiny2313.h:67
HWPrescaler prescaler01
prescaler unit for timer 0 and 1
Definition: attiny2313.h:61
HWTimer8_2C * timer0
timer 0 unit
Definition: attiny2313.h:65
Provices flag and mask register for timer interrupts and connects irq lines to irqsystem.
Definition: timerirq.h:61
IOSpecialReg * pcmsk_reg
PCMSK IO register.
Definition: attiny2313.h:59
IOSpecialReg * eifr_reg
EIFR IO register.
Definition: attiny2313.h:57
HWTimer16_2C3 * timer1
timer 1 unit
Definition: attiny2313.h:66
IOSpecialReg * gimsk_reg
GIMSK IO register.
Definition: attiny2313.h:56
Prescaler unit for support timers with clock.
ExternalIRQHandler * extirq
external interrupt support
Definition: attiny2313.h:55
HWAcomp * acomp
analog compare unit
Definition: attiny2313.h:69
Class, which provides input capture source for 16bit timers.
Definition: icapturesrc.h:34
Timer unit with 8Bit counter and 2 output compare unit.
Definition: hwtimer.h:416
HWPort portb
port B
Definition: attiny2313.h:45
HWPort porta
port A (only 3 bit)
Definition: attiny2313.h:44
HWUSI * usi
usi unit
Definition: attiny2313.h:70
PrescalerMultiplexer with external count pin.
Definition: prescalermux.h:55
Analog comparator peripheral.
Definition: hwacomp.h:42
Implement OSCCAL register.
Definition: rwmem.h:174