Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: Error in starting a new workspace with M16C/26A

$
0
0
ta0ic enables the interrupt routine. So if your software crashes after you enable the interrupt routine, it seems likely that the software does not return from the interrupt routine correctly. This could have 3 possible reasons: 1. The interrupt vector is not set up correctly. In this case the processor would not jump to the interrupt routine but may be to some address where no valid code is located. 2. The interrupt routine is not declared as interrupt routine. In this case the return from the function would not work because interrupt functions and normal function use different data ioon the stack and have different return instructions. 3. The stack is not set up properly. If the stack pointer does not point to RAM with sufficient space or if the RAM used as stack area is also used by the debug monitor as work area, then the return from the interrupt routine does not work. Frank

Viewing all articles
Browse latest Browse all 59170

Trending Articles