adcon0,adcon1


Closed Thread
Results 1 to 5 of 5

Thread: adcon0,adcon1

  1. #1
    Join Date
    Feb 2006
    Location
    france
    Posts
    47

    Default adcon0,adcon1

    Hello

    I have an example program that melanie is very good.
    I have a problem with the port configuration registers and
    ADCON0 and ADCON1
    device 16f876a
    Trisa:% 00001110 'output RA0, RA1, RA2, RA3 input

    ADCON0 =% 11,000,000
    ADCON1 =% 00,000,111

    Thank you for your help
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    I have an example program that melanie is very good.
    I have a problem with the port configuration registers and
    ADCON0 and ADCON1
    device 16f876a
    Trisa:% 00001110 'output RA0, RA1, RA2, RA3 input

    ADCON0 =% 11,000,000
    ADCON1 =% 00,000,111
    Are you sure you are typing it as shown in Melanie's code? The way you've shown here will give compilation errors. Or maybe I don't understand your question.

    Trisa = %00001110
    ADCON0 = %11000000
    ADCON1 = %00000111

  3. #3
    Join Date
    Feb 2006
    Location
    france
    Posts
    47


    Did you find this post helpful? Yes | No

    Default

    Hello


    This model melanie and I'll add my program routines.
    And I need to use the port and having output RA0 and RA1 RA2 RA3
    Input, and my question is about the ADCON registers?
    I do not configured.

    Thank you

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jonas2 View Post
    Hello


    This model melanie and I'll add my program routines.
    And I need to use the port and having output RA0 and RA1 RA2 RA3
    Input, and my question is about the ADCON registers?
    <font color=red>I do not configured. </font color>

    Thank you
    Hello Jonas2,"I do not configured"means . . . you have changed from Melanie's code ?
    Anyway, to address your question, I hope. . .
    From the DATA SHEET:
    ADCON0 = %11000000
    bit 0 = 0 ADCON is turned off
    bit 1 = 0 unimplemented (not used) read as 0
    bit 2 = 0 A/D Go Done conversion not in progress
    bit 3 -5 = all zeros A/D channel select bits
    bit 5-7 = 11 FRC (clock derived from the internal A/D RC oscillator)

    ADCON1 = %00000111
    sets all ports to digital
    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.

  5. #5
    Join Date
    Feb 2006
    Location
    france
    Posts
    47


    Did you find this post helpful? Yes | No

    Default

    Hello

    Thank you for your help, I'll keep the program melanie.
    But I would like to change the initialization of the RTC, and to do so USArt
    Send frame by rs232.je seeks a routine as an example.

    Thank you

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