Re: Confusing DMA-CRC Results
2019/09/09 19:52:16
(permalink)
☄ Helpfulby masterpic 2020/11/26 14:24:56
I implemented the CRC-16/CCITT in assembler when I rewrote the PIC32 programming executives and did get it to work. This is my only experience with the DMA/CRC module so I will only talk about CRC-16/CCITT.
You need to initialize:
DCRCDATA = 0x84CF
DCRCXOR = 0x11021 // (I think 0x1021 may also work as it is only 16-bits)
After the CRC completes you need to do an additional one-word "dummy" CRC on a memory location holding 0x00000000.