Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Finding a PIC18F with specific Comparator

Status
Not open for further replies.

AtomSoft

Well-Known Member
how can i select a PIC Micro which has a CCP that i can select whether C2 VIN+ > C2 VIN- or something like that?

i see most pics if not all have it where i can compare a timer against a CCPRx Register which i have no clue how to do since i want to compare to a external pin.

Like the 16F627A:

a-jpg.48868


Most 18F has this:

11.3 Compare Mode
In Compare mode, the 16-bit CCPRx register value is
constantly compared against either the TMR1 or TMR3

register pair value. When a match occurs, the CCPx pin
can be:
• driven high
• driven low
• toggled (high-to-low or low-to-high)
• remain unchanged (that is, reflects the state of the
I/O latch)
The action on the pin is based on the value of the mode
select bits (CCPxM<3:0>). At the same time, the interrupt
flag bit, CCPxIF, is set.
 

Attachments

  • a.jpg
    a.jpg
    37.6 KB · Views: 276
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top