Hi,
I would like to know how to clear the CRC unit OUTP when I want to start a new CRC check sequence and abandon all the history values. This seems not an option based on the reference manual. Is it possible?
Or does the history value get auto cleared after the OUTP reading?
Thanks,
I recently worked on a SW driver for the CRC unit on MPC5748G, i faced the same problem and i found a way to solve this.
when i get the final CRC value i clear the INP register by writing 0x0000000 to it, then i clear the CSTAT register by writing 0xFFFFFFFF, this clears directly the OUTP register and you can restart a new CRC calculation without resetting your MCU ☺.
Hi Peter,
Thanks for the reply. But how do you define "new check is started"? Can you give a more detailed explanation? It was not described in the reference manual. And if I start to write new data, the HW seems still calculate continued with the old value.
Hi Peter,
Thanks for the reply. But what is the definition of "new check is started"? Can you give a more detailed explanation? It was not described in the reference manual. And if I start to write new data, the HW seems still calculate continued with the old value.
Hello,
This register is read only. Writes has no effect.
After reset it contains value 0xFFFF_FFFF
I expect that register is not cleared on read. I will verify it tomorrow in office and let you know.
Peter