Example: Program the AFMR and AFIR for Extended Frames

Zynq UltraScale+ Device Technical Reference Manual (UG1085)

Document ID
UG1085
Release Date
2022-09-15
Revision
2.3 English

This example setups up the acceptance filter for extended frames. The frame ID number is shown as 55Eh, but could be set to a specific value based upon your application.

1.Configure the filter mask for extended frames. Write FFFF_FFFFh to the can.AFMR register.

a.Enable the substitute remote transmission request mask for frame, [AMSRR] = 1.

b.Compare all bits in the compare for the standard message ID, [AMIDH] = 7FFh.

c.Enable the extended frame, [AIIDE] = 1.

d.Extended ID, [AIIDL] = 3_FFFFh.

e.Remote transmission request bit for extended frame, [AIRTR] = 1.

2.Configure the filter ID for extended frames. Write ABDF_9BDEh to the can.AFIR register.

a.Standard ID, [AIIDH] = 55Eh.

b.Remote transmission request bit for standard frame, [AISRR] = 1.

c.Select standard/extended frame, [AIIDE] = 1.

d.Extended ID, [AIIDL] = 3_CDEFh.

e.Remote transmission request bit for extended frame, [AIRTR] = 0.