How do I read the output of the COMP block for a TI C2000 processor?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on C2000 Microcontroller Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!