MATLAB: Missing COMP Block from F28004X Library

c2000compcomparatorEmbedded Coderf28004xti

What can you do if you want to use a comparator with a TI C2000 F28004X board?

Best Answer

You cannot use the COMP blocks from other libraries with the F28004X board.
However, you can use a "Memory Copy" block to update any of its register values as they may be required in run time. This method can be used as a workaround.
The example "c28035pmsmfocdual" shows how the Memory Copy block is used. The block is inside "Hall Sensor B".
The model is explained on our website here: