![]() |
|||||||||||||||||||
|
[?]
Subscribe To This Site
|
Custom Search
Readers
comments
|
||||||||||||||||||
12F675 Comparator use12F675 comparator test circuts and code.The PIC
comparator is the least used
peripheral but it is just as fast as the standard LM311... Sponsored Links...
So you need to control ANSEL. LinksCircuit.Download. Code. Comparator Modes. Registers associated with the comparator. CMCON Comparator control register. VRCON Comparator voltage reference control. Comparator ModesThe following table shows the eight different ways of configuring the comparator:![]() RegistersThese are the registers for controlling the Comparator and Voltage reference:The main controls are:
![]() CMCON:![]() VRCON:![]() Simple Circuit to test the comparator![]() DownloadDownload code here : Click to download.C Code for the comparatorThe following code sets up the comparator as a fully external device i.e. the internal voltage reference is not used:
Jump from 12F675 comparator pic sonar page to Best Microcontroller Projects Home Page.
|
|||||||||||||||||||
|
|||||||||||||||||||