Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Interrupt Not work .... Vic problem I think...

Interrupt Not work .... Vic problem I think...

2006-03-08 by punkandsska123

Can someone tell me where is the problem in that ?


#include <targets/LPC2148.h>


static void vI2C_ISR(void) __attribute__ ((interrupt ("IRQ")));

#define portI2C_VIC_CHANNEL_BIT	( ( unsigned long ) 0x0200 )
#define portI2C_VIC_ENABLE	( ( unsigned long ) 0x0200 )

unsigned I2CAdress;			
unsigned I2CData;				
unsigned I2CDataRead;				


int main(void)
{
//MEMMAP = 0X02;
vInitI2C();
__ARMLIB_enableIRQ();
TransfertByte (0xa4, 0x55);

while(1);
}


void vInitI2C(void)
{
  I2C0CONCLR = 0xFF;				
  PINSEL0  |= 0x50;   				
  I2C0SCLL   =16;	     			
  I2C0SCLH   =14;	
  I2C0CONSET = 0x40;    			
  VICIntSelect &= ~( portI2C_VIC_CHANNEL_BIT ); 
  VICIntEnable |= portI2C_VIC_ENABLE;		
  VICVectCntl0 = 0x00000029;             	
  VICVectAddr0 =(unsigned int) vI2C_ISR; 	
}


After executing that, He never go in vI2C_ISR;

why ?

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.