PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : int2 Fehler



masabuana
24.09.2007, 11:28
Config Int2 = Low Level
On Int2 Sensorkontakt
Enable Int2
Enable Interrupts



Error: 212 LOW LEVEL, RISING or FALLING expected


Bascom Version 1.11.8.1


Was mach ich falsch? Rising oder Falling compiliert ohne Probleme...


MfG

for_ro
24.09.2007, 13:36
Interessant wäre noch welcher µC.
Ein Mega8 z.B. hat glaube ich gar keinen INT2.

Gruß

Rolf

masabuana
24.09.2007, 14:17
Mega32 auf RNBFRA

for_ro
24.09.2007, 14:48
Seite 66 im Mega32 Datenblatt unter "External Interrupts":
The External Interrupts are triggered by the INT0, INT1, and INT2 pins. Observe that, if enabled,
the interrupts will trigger even if the INT0..2 pins are configured as outputs. This feature provides
a way of generating a software interrupt. The external interrupts can be triggered by a falling or
rising edge or a low level (INT2 is only an edge triggered interrupt).