Hi Richard,
you are correct that there are only 8 registers like B1 or B2 D0. Those are only the data registers for one buffer. There are, however, 276 registers associated with the other elements in the CAN module. Mask registers, filter registers, registers that can be either transmit or receive. There are 14 registers associated with the B0 buffer. B0CON, B0D0 - B0D7, B0DLC, high and low address bytes and high and low extended address bytes. There are six "B" arrays. What I want to do is point at one of registers and load them with the 14 bytes of data from a Temp_CAN array with 14 elements. That way I can make use of any of the buffers without having to hard code B0CON .... B1CON .... etc. I hope this makes more sense now.
Thanks,
Paul
Bookmarks