View previous topic :: View next topic |
Author |
Message |
habib
Joined: 23 Aug 2007 Posts: 2
|
PIC CCP mode |
Posted: Thu Aug 23, 2007 4:08 am |
|
|
i want to know about PIC Compratr mode how it can be programmed to achieve comprator histresis i.e to achive stability to on/off a device. |
|
|
Ttelmah Guest
|
|
Posted: Thu Aug 23, 2007 5:12 am |
|
|
The comparator, is not the CCP module. However, so long as you are 'aware' of this, no problem....
Two routes exist. The first is to use an output pin to reflect the comparator state, and use this to apply a bias to the incoming signal or the reference to implement hysteresis.
The alternative, is to use the comparator reference module, and change the tap being used on this, when the comparator interrupt occurs.
Best Wishes |
|
|
j_reza Guest
|
PIC CCP mode |
Posted: Thu Aug 23, 2007 6:06 am |
|
|
plz explain the two routes through C programming |
|
|
habib
Joined: 23 Aug 2007 Posts: 2
|
Re: PIC CCP mode |
Posted: Wed Sep 05, 2007 11:52 pm |
|
|
is there any other way to achieve comprator histresis in C programming without using PIC builin comparator module |
|
|
|