I use the S12ZVMC128 chip, and i want to PTU to trigger ADC , then get DC current.
what's more, if i don't use the module as shown below ,the results of DC current I get are zero.
The code file is in the attachment.
could you help me and check the code file,find the bug .
by the way ,could you tell me how can i use PTU to trigger ADC , which registers should i pay more attention?