18F25K22 Help


Results 1 to 18 of 18

Thread: 18F25K22 Help

Threaded View

  1. #14
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: 18F25K22 Help

    ANSELx = ANALOG SELECT or inversely Digital Select . . .
    ADCON0 is where you choose which Analog Channel to use
    ADCON1 is where you CHOOSE what your voltage references are & Trigger Select

    ANSELA configures portA Analog or Digital
    ANSELB configures portB Analog or Digital
    ANSELC " " " " " portC Analog or Digital
    ANSELD " " " " " portD Analog or Digital
    ANSELE " " " " " portE Analog or Digital

    All about COMPARATORS Below from Data Sheet
    Code:
    TABLE 18-2: REGISTERS ASSOCIATED WITH COMPARATOR MODULE
    Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Register on Page
    ANSELA — — ANSA5 — ANSA3 ANSA2 ANSA1 ANSA0              154
    ANSELB — — ANSB5 ANSB4 ANSB3 ANSB2 ANSB1 ANSB0        155
    CM2CON1 MC1OUT MC2OUT C1RSEL C2RSEL C1HYS C2HYS C1SYNC C2SYNC 318
    CM1CON0 C1ON C1OUT C1OE C1POL C1SP C1R C1CH<1:0>    317
    CM2CON0 C2ON C2OUT C2OE C2POL C2SP C2R C2CH<1:0>    317
    VREFCON1 DACEN DACLPS DACOE — DACPSS<1:0> — DACNSS 347
    VREFCON2 — — — DACR<4:0>                                             348
    VREFCON0 FVREN FVRST FVRS<1:0> — — — —                      344
    INTCON GIE/GIEH PEIE/GIEL TMR0IE INT0IE RBIE TMR0IF INT0IF RBIF 116
    IPR2 OSCFIP C1IP C2IP EEIP BCL1IP HLVDIP TMR3IP CCP2IP   129
    PIE2 OSCFIE C1IE C2IE EEIE BCL1IE HLVDIE TMR3IE CCP2IE    125
    PIR2 OSCFIF C1IF C2IF EEIF BCL1IF HLVDIF TMR3IF CCP2IF     120
    PMD2 — — — — CTMUMD CMP2MD CMP1MD ADCMD                 57
    TRISA TRISA7 TRISA6 TRISA5 TRISA4 TRISA3 TRISA2 TRISA1 TRISA0 156
    TRISB TRISB7 TRISB6 TRISB5 TRISB4 TRISB3 TRISB2 TRISB1 TRISB0 156
    Comparators are really good at causing you to tear out your hair while trying to get the PIC to do digital too.
    Sorry this post comes too late to help you, I bet you won't forget though. Keep up the good work Tony.
    JS
    Last edited by Archangel; - 25th November 2014 at 06:59.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. migration from 16F876a to 18F25k22
    By MOUNTAIN747 in forum General
    Replies: 26
    Last Post: - 19th March 2012, 21:33
  2. Config 18F25K22
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th April 2011, 19:08

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts