PIC16F690 Comparator C1 - some helpage needed!


Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Mar 2009
    Posts
    653

    Default PIC16F690 Comparator C1 - some helpage needed!

    I'm not getting anything out of the C1 comparator, have I missed anything with my register settings

    Code:
    ANSEL =  %00000110      ' AN1-AN2 enabled - the rest all digital
    CM1CON0 = %10100000     ' C1 On, C1 Output enable, take VREF from C1In+ pin, Select C1In0- channel
    TRISA.0 = 0
    TRISA.1 = 1
    TRISA.2 = 1
    
    ANSELH = %00000011      ' AN7-AN8 enabled
    CM2CON0 = 0             'C2 off.
    I'm connecting a VREF DC level externally to pin 19 PortA.0 (which is C1IN+), something ain't right - when I scope Pin 19 -it's the yellow trace here - there's some random high/low switching going on (it should be steady DC - I checked the DC when removed from the PIC - it's rock solid...this pulseing is coming out of the PIC pin!)





    and an analogue sine wave to PortA.1 (which is C12IN0-) ...I'm scoping PortA.2 (which is C1OUT) - nothing there :-(

    Many thanks for any help!
    Last edited by HankMcSpank; - 12th March 2010 at 01:47.

Similar Threads

  1. PIC16F690 code help please
    By hysteria92 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 24th February 2010, 16:17
  2. PIC16f690 LCD Not Working
    By hhosteam in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 3rd June 2009, 06:26
  3. Replies: 1
    Last Post: - 19th February 2009, 13:35
  4. Replies: 0
    Last Post: - 13th February 2009, 03:34
  5. gps rikaline x5 to pic16f690
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 9th May 2008, 11:21

Members who have read this thread : 0

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

Posting Permissions

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