ВУЗ: Не указан
Категория: Не указан
Дисциплина: Не указана
Добавлен: 12.06.2025
Просмотров: 8211
Скачиваний: 1
© MCS Electronics, 1995-2007 |
||
INT1 |
External Interrupt 1 |
|
OVF0,TIMER0, COUNTER0 |
TIMER0 overflow interrupt |
|
OVF1,TIMER1, |
TIMER1 overflow interrupt |
|
COUNTER1 |
||
CAPTURE1, ICP1 |
INPUT CAPTURE TIMER1 interrupt |
|
COMPARE1A,OC1A |
TIMER1 OUTPUT COMPARE A interrupt |
|
COMPARE1B,OC1B |
TIMER1 OUTPUT COMPARE B interrupt |
|
SPI |
SPI interrupt |
|
URXC |
Serial RX complete interrupt |
|
UDRE |
Serial data register empty interrupt |
|
UTXC |
Serial TX complete interrupt |
|
SERIAL |
Disables URXC, UDRE and UTXC |
|
ACI |
Analog comparator interrupt |
|
ADC |
A/D converter interrupt |
|
By default all interrupts are disabled.
To disable all interrupts specify INTERRUPTS.
To enable the enabling and disabling of individual interrupts use ENABLE INTERRUPTS.
The ENABLE INTERRUPTS serves as a master switch. It must be enabled/set in order for the individual interrupts to work.
The interrupts that are available will depend on the used microprocessor.
See also
ENABLE
Example
'----------------------------------------------------------------------------- |
|
------------ |
: serint.bas |
'name |
|
'copyright |
: (c) 1995-2005, MCS Electronics |
'purpose |
: serial interrupt example for AVR |
'micro |
: 90S8535 |
'suited for demo |
: yes |
'commercial addon needed |
: no |
'-----------------------------------------------------------------------------
------------
$regfile = "8535def.dat" |
' specify the used |
micro |
' used crystal |
$crystal = 4000000 |
|
frequency |
' use baud rate |
$baud = 19200 |
|
$hwstack = 32 |
' default use 32 |
for the hardware stack |
' default use 10 |
$swstack = 10 |
|
for the SW stack |
' default use 40 |
$framesize = 40 |
|
for the frame space |
|
Const Cmaxchar = 20 |
'number of |
characters |
|
Dim B As Bit |
'a flag for |
page -460- |