Hey guys,
I'm a bit confused in the understanding of the TMS570 DCAN module parity error generation mechanism. Please shed some light ...
In one hand, DCAN1 as an example, there is a "DCAN1 - parity" error source under ESM Group 1 at channel 21 that I can read within the VIM as "ESM High level interrupt (VMI)" as request 0. I can apparently enable this error source to generate interrupt by setting appropriate bit inside the ESMIESR1 register. Where can I turn ON the parity function of this parity check? PMD bits in the DCAN1CTRL register?
In other hand, there is also a "Parity Error" that can be enabled by configuring the DCAN1CTL register within the DCAN module, error which will pass-thru to the VIM as "DCAN1 level 0 interrupt" as request 16. I should enable this error generation by enabling PMD (parity function enable), EIE (error interrupt enable) and IE0 (interrupt line 0 enable) of the DCAN1CTL register. (right?)
So my question is: Which is which?
Thanks for any help.
Regards,
Chuck.