Example: Program Acceptance Filter

Zynq UltraScale+ Device Technical Reference Manual (UG1085)

Document ID
UG1085
Release Date
2023-12-21
Revision
2.4 English

Each acceptance filter has its own mask (can.AFMR{1,2,3,4}) and ID register (can.AFIR{1,2,3,4}).

1.Disable acceptance filters. Write a 0 to the can.AFR register.

2.Wait for the filter to not be busy. Poll the can.SR[ACFBSY] bit for a 0.

3.Write a filter mask and ID. Write to a pair of AFMR and AFIR registers (see examples in Program the AFMR and AFIR Registers section).

4.Write additional filter masks and IDs. Go to step 2.

5.Enable one or more filters. To enable all filters, write 32'h0F to the can.AFR register.