simulavr  1.1.0
at8515.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 AT8515
27 #define AT8515
28 #include "avrdevice.h"
29 
30 #include "hwspi.h"
31 #include "hwuart.h"
32 #include "hwacomp.h"
33 #include "hwtimer/timerprescaler.h"
34 #include "hwtimer/hwtimer.h"
35 #include "externalirq.h"
36 #include "hwport.h"
37 
40 
41  private:
42  HWPort portx; // only used for oc1b and icp (Timer1)
43 
44  public:
64 
67 };
68 #endif
69 
Basic AVR device, contains the core functionality.
Definition: avrdevice.h:66
HWTimer16_2C2 * timer1
timer 1 unit
Definition: at8515.h:59
AVRDevice class for AT90S8515.
Definition: at8515.h:39
Pin class, handles input and output to external parts.
Definition: pin.h:98
IOSpecialReg * gimsk_reg
GIMSK IO register.
Definition: at8515.h:61
Defines a Port, e.g. a hardware device for GPIO.
Definition: hwport.h:43
ExternalIRQHandler * extirq
external interrupt support
Definition: at8515.h:60
IOSpecialReg * mcucr_reg
MCUCR IO register.
Definition: at8515.h:63
Handler for external IRQ's to communicate with IRQ system and mask/flag registers.
Definition: externalirq.h:41
PrescalerMultiplexerExt premux1
prescaler multiplexer for timer 1
Definition: at8515.h:55
HWPort portc
port C
Definition: at8515.h:47
IOSpecialReg * gifr_reg
GIFR IO register.
Definition: at8515.h:62
HWTimer8_0C * timer0
timer 0 unit
Definition: at8515.h:57
TimerIRQRegister * timer01irq
timer interrupt unit for timer
Definition: at8515.h:56
Pin & ocr1b
output pin for output compare B on timer 1
Definition: at8515.h:49
HWAcomp * acomp
Definition: at8515.h:52
Timer unit with 16Bit counter and 2 output compare units and 2 config registers.
Definition: hwtimer.h:528
HWPort portd
port D
Definition: at8515.h:48
HWPort portb
port B
Definition: at8515.h:46
PrescalerMultiplexerExt premux0
prescaler multiplexer for timer 0
Definition: at8515.h:54
Provices flag and mask register for timer interrupts and connects irq lines to irqsystem.
Definition: timerirq.h:61
Definition: hwspi.h:38
HWPrescaler prescaler
prescaler unit for timer
Definition: at8515.h:53
Prescaler unit for support timers with clock.
Timer unit with 8Bit counter and no output compare unit.
Definition: hwtimer.h:347
HWSpi * spi
spi unit
Definition: at8515.h:50
HWUart * uart
uart unit
Definition: at8515.h:51
Class, which provides input capture source for 16bit timers.
Definition: icapturesrc.h:34
ICaptureSource * inputCapture1
input capture source for timer1
Definition: at8515.h:58
Implements the I/O hardware necessary to do UART transfers.
Definition: hwuart.h:38
PrescalerMultiplexer with external count pin.
Definition: prescalermux.h:55
HWPort porta
port A
Definition: at8515.h:45
Analog comparator peripheral.
Definition: hwacomp.h:42