• AVR Freaks

AnsweredHot!Comparator block

Starting Member
  • Total Posts : 32
  • Reward points : 0
  • Joined: 2017/11/03 03:10:15
  • Location: 0
  • Status: offline
2019/07/08 01:31:15 (permalink)

Comparator block

Dear Lubin,
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
  • Total Posts : 397
  • Reward points : 5
  • Joined: 2007/03/31 07:38:15
  • Location: Bayonne, France
  • Status: offline
Re: Comparator block 2019/08/03 01:27:36 (permalink) ☼ Best Answerby FilippoMonti 2019/08/20 04:39:55
Hi Filippo,
Comparator variants for this chip family is handled.
This update is published in the latest blockst release (v3.45.02). 
Jump to:
© 2020 APG vNext Commercial Version 4.5