This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Converting UART-Source from Tasking to Keil

Hi,

We use a MM167 from Phytec with a C167CS-LM controller. We want to use the Receive Interrupt of the UART. The interrupt-out (open-drain) is connected to Port P2.0

The Tasking Code (works perfectly):

DP2_0 = 0; // init direction to input
DP2_1 = 0; // init direction to input
CCM0 = 0x0022; // UART PORT: CCMOD0 auf 010 setzen
// CCMOD1 auf 010 setzen (negativ external transition)
CC0IC = 0x0058; // enable interrupt for CC0:
//ILVL = 6; GLVL = 0; CC0IE = 1.
CC1IC = 0x0054; // enable interrupt for CC1:
//ILVL = 5; GLVL = 0; CC0IE = 1.

and the interrupts :

interrupt (0x10) void UART_r(void)
interrupt (0x11) void Port2_1(void)

In tasking there are no problems. The interrupt 0x11 also works with the keil-code but
the interrupt 0x10 does'nt work.

Are there any settings in START167.A66 which disable the interrupt? Or maybe there are some settings in the tasking
asm File which are absent in the Keil Version?

greetings
Michael Martin

Parents Reply Children
No data