Instructions
281 C-Control Pro IDE
© 2013 Conrad Electronic
int cnt;
void ISR(void)
{
cnt=cnt+1;
#if AVR32
Irq_GetCount(INT_100HZ);
#else
Irq_GetCount(INT_TIM2COMP);
#endif
}
void main(void)
{
cnt=0;
#if AVR32
Irq_SetVect(INT_100HZ, ISR);
#else
Irq_SetVect(INT_TIM2COMP, ISR);
#endif
while(true); // endless loop
}
5.14 Keyboard (Mega)
One part of these keyboard routines is implemented in the Interpreter, another can be called up after
appending library "LCD_Lib.cc". Since the functions in
"LCD_Lib.cc" are realized through Bytecode they are slower when executed. Library functions how-
ever have the advantage that they can be taken from the project by omitting the library in case they
are not needed. Direct Interpreter functions are always present, will however take up flash memory.
There is no keyboard included with the AVR32 Application Board, so there are no keyboard
routines in the library.
5.14.1 Key_Init
Keyboard Functions (Library "Key_Lib.cc")
Syntax
void Key_Init(void);
Sub Key_Init()
Description
The global keymap array gets initialized with the ASCII values of the keyboard.