sorry to write again, I am still working on comparators. They seems not working properly on my dspic33ep256mc506. Even with a fixed threshold, without DAC output and without filtering and blanking. So that, using them like a normal comparator seems not working.
So that, I have a Microstick II that I have bought for testing the Simulink blocksets. I have a dsPIC33FJ128MC802 and I set up comparator 1 with a fixed reference. An error occur always during compilation because of there is no Vcomp- found.
It is strange because the dsPIC has the C1IN- pin but on the comparator block it says that C1IN- pin is not found. Then, I set to have the voltage reference on the negative input of the comparator , I click ok. If I re-open the blockset, it has lost the configuration and on the negative input there is again "C1IN- pin not found". I don't know if it is clear, if you have the possibility to try it is faster to catch the problem, I attach the model.
I cannot go ahed of this situation :) I would like to try the comparators on other dsPICs and try to find where I do mistakes.
Thank you :)
Have a good day