AnsweredAssumed Answered

SPC570s ADC initializing

Question asked by Michael Obieglo-Diete on Oct 11, 2017
Latest reply on Oct 11, 2017 by Michael Obieglo-Diete

Main target is to send an ADC-value to the CAN-BUS.

I took the SPC570xx_RLA CAN Test Application for Discovery

Modified Pin Settings:



in main.c I tried to initialize and use the ADC:



Without ADC-code CAN example works fine.

But if I try to get Access to the ADC-regs, System crashes:



The system always stays at the _IVOR1 after SAR_ADC_12BIT_B0.xxxxx = x command.

My hardware is the SPC570S-DISP-Board.

What do I wrong?