PIC12F675 Comparator Module Code + Simulation
Category: PIC12F675
Designer: RANA MUHAMMAD ADNAN KHALIL
Notes
This circuit is simulated in Proteus 7.10, while code is written in MPLAB X IDE using XC8 compiler. This program is for very beginners. Working of this circuit and program is given below: 1. In this circuit you will learn how comparator module of PIC12F675 is used. 2. The inputs of comparator module are available at GP0 and GP1 pin and these pin is configured as input. 3. The GP0 pin is non-inverting (+ive) input of comparator while GP1 pin is inverting (-ve) input of comparator. 4. The comparator module is configured in simple mode, that is, when voltage at GP0 pin is greator then the GP1 pin, the output of the comparator is 1, otherwise the outpu remains zero. 5. The output of comparator is shown using LED at GP2 pin, when thre output of comparator (COUT) is logic 1, then LED is also turn ON otherwise LED remains OFF. 6. You can also read code file by clicking on "View" button under Program File. Application: 1. This code is used to understand the working of comparator module. Note. More circuits and projects are coming soon. So keep visit and use this app daily.