cancel
Showing results for 
Search instead for 
Did you mean: 

ST10F276 more than 4 X-Peripheral Interrupt

p-alain
Associate II
Posted on July 13, 2005 at 08:30

ST10F276 more than 4 X-Peripheral Interrupt

3 REPLIES 3
p-alain
Associate II
Posted on June 28, 2005 at 08:16

Hello,

Do you know if it is possible to configure more than 4 interrupt on the X-bus. For my application, I need CAN1, CAN2, XASC Transmit, XASC Receive and PLL Unlock.

Thank you.

p-alain
Associate II
Posted on June 28, 2005 at 13:16

Ok thank you but I have an other question ?

I have a ST10F276-CAA with Keil.

I try to use the XASC. Here you can see my configuration.

The pb is that I have no Serial tansmit interrupt (0x42), when i execute

XS1TBUF = c; .

I able to simulate it with the debuger : Peripherals --> Interrupt system --> XP2INT clic on request.

In the Startup :

XPERCON = 0x06DC // I have verify vith the debuger

Here is the configuration of the XASC :

XS1CON = 0x8011;

// receive on XP1IC

XIR1SEL =0x8080;

XP1IC = (0X0005<

// transmit on XP2IC

XIR2SEL =0x4040;

XP2IC = (0x0005<

XP1IE = 1;

XP2IE = 1;

void serial_transmit_1 (void) interrupt 0x42

{

}

Could somebody help me.

Thank you.

charles239955_st
Associate II
Posted on July 13, 2005 at 08:30

Hello,

Do not set the Flags t=in the XIRzSEL registers.

Meaning:

XIR1SEL =0x8000;

XIR2SEL =0x4000;

And in the Interrupt routines you have to clear the flags.

I recommend to use the following:

XIR1CLR = 0x0080;

Bye

XIR2CLR = 0x0040;