How to set external clock source in PBP


Results 1 to 29 of 29

Threaded View

  1. #25
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    you can but if you check a specific DIGITAL pin, you can't do the Analog conversion on the same pin without changing something.
    AND what is the use of converting a digital signal ... 0v or 5volt ADC=0 or 255

    BUT if your waiting for a digital signal to do a analog conversion on another pin... for sure.
    Code:
    If PushButtonOnPORTABIT0 = 1 then
         ADCIN PORTA.1,Myvar
         SEROUT PORTC.0,N2400,[#Myvar]
    endif
    be sure of your setting of ADCONx register
    Last edited by mister_e; - 18th February 2005 at 23:31.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. HW PWM not working
    By comwarrior in forum General
    Replies: 5
    Last Post: - 31st July 2009, 17:16
  2. Microcode studio - PIC16F877A Interrupts
    By mcbeasleyjr in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th January 2009, 06:10
  3. Data Out From External Clock
    By Quin in forum Serial
    Replies: 2
    Last Post: - 25th October 2008, 09:11
  4. Wierd sleep issue
    By orca in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th March 2006, 22:06
  5. error on compiling
    By parker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th June 2005, 14:31

Members who have read this thread : 1

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