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

ID look up table LPC1768

Hey,
I tried to generate a look up table for my Can Controller but I have a lot of troubles.
In the user manual on page 374 stands that the SFF_sa is disabled when the Value is <0 . But on page 395 you can see in the example, that they start at 0x00 ... is that right?

I program it this way, but i can not receive a special message:

void CAN_SetACCF_Lookup( void )
{
  uint32_t address = 0;
  uint32_t ID_high, ID_low;

  // Set explicit standard Frame
  LPC_CANAF->SFF_sa = address;

  ID_low = (0x001 << 29) | (0x2C1 << 16) | (1<<27);
  ID_high = (0x001 << 13) | (0x320 << 0) | (1<<11);
  *((volatile uint32_t *)(LPC_CANAF_RAM_BASE + address)) = ID_low | ID_high;
  address += 4;


  // Set group standard Frame
  LPC_CANAF->SFF_GRP_sa = address;
  // Set explicit extended Frame
  LPC_CANAF->EFF_sa = address;
    // Set group extended Frame
  LPC_CANAF->EFF_GRP_sa = address;
  // Set End of Table
  LPC_CANAF->ENDofTable = address;
  return;
}

0