I would like to read the output for the COMP (Comparator) block for a TI C2000 processor, such that I can use the value inside my model. The COMP block outputs to the GPIO1 pin, as specified in 'Configuration Parameters > Hardware Implementation > Target hardware resources > COMP', but I am not able to access this value.
I have tried doing this by using the GPIO Digital Input block, but I get the following error:
Error evaluating 'InitFcn' callback of C280x GPIO Digital Input block (mask) 'Comparator/Digital Input'.
Callback string is 'validateC280xGPIO;'
Caused by:
The GPIO pin GPIO1 is already used by another block.
What other block should I be using?
Best Answer