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:
Most 18F has this:
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:
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
Last edited: