Hello
Entries in vector tables are 16-bit wide. So you have to make sure your interrupt function gets allocated in non banked memory.
#ifndef __SMALL__
#pragma CODE_SEG __NEAR_SEG NON_BANKED
#endif
#pragma TRAP_PROC
void TEST(void) {
TCHAR = SCI0DRL;
}
#ifndef __SMALL__
#pragma CODE_SEG DEFAULT
#endif
NON_BANKED section is allocated in non banked memory in the default linker command file we are delivering.
CrasyCat
Message Edited by J2MEJediMaster on 2006-08-24 09:47 AM