Yahoo Groups archive

Lpc2000

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

Message

What is ERROR encounted in table of LUT of CAN module?

2005-12-31 by pjm_sample

I have read the User Manual of LPC2292 for many times. But I have not 
get a clear explaination about the ERROR encounted in LUT.

In order to generate this kind of error. I coded a simple example 
like this:

#define   CANAFRAMBase       (*((volatile unsigned long *)0xE0038000))
#define   CANAFMR            (*((volatile unsigned char *)0xE003C000))
#define   CANSFFSa           (*((volatile unsigned long *)0xE003C004))
#define   CANSFFGrpSa        (*((volatile unsigned long *)0xE003C008))
#define   CANEFFSa           (*((volatile unsigned long *)0xE003C00C))
#define   CANEFFGrpSa        (*((volatile unsigned long *)0xE003C010))
#define   CANEndTbl          (*((volatile unsigned long *)0xE003C014))
#define   CANLUTErrAddr      (*((volatile unsigned long *)0xE003C018))
#define   CANLUTErr          (*((volatile unsigned char *)0xE003C01C))

void  CANInitTest (CHAR8  ch)
{
    unsigned char  c;
    unsigned long  i;


    CANAFMR      = 0x02;
    CANSFFSa     = 0x00000000;
    CANSFFGrpSa  = 0x00000000;
    CANEFFSa     = 0x00000004;
    CANEFFGrpSa  = 0x00000004;
    CANEndTbl    = 0x00000004;
    CANAFRAMBase = 0x200F2000;
    CANAFMR      = 0x00;

    c = CANLUTErr;
    i = CANLUTErrAddr;
}

when the function above is called, I found value of c and i are still 
kept zero.

why this function did not generate LUT ERROR? How can I do to watch 
it?

Thanks a lot!

Attachments

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.