Someone please help me out?


Results 1 to 4 of 4

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: Someone please help me out?

    Hello avanomi & welcome,
    ADCS1 is bit 7 of the ADCON0 register, you would " set " this bit as ADCON0.7 = 1 or ADCON0 = %10000000 Microchip Data sheet PP 129 .

    What it appears you are trying to do is to Disable the Synchronous Serial Port and use Port A as Digital I/O.
    Data sheet PP 83/84 SSPCON register bit 5 enables / disables SSP set it to zero and you are golden. Remember this chip has several
    Analog registers which have to be set to get digital I/O. ADCON0, ADCON1, ADRESH ADRESL . . . see page 43 for PortA registers, DO Use the index
    of the Data Sheet under registers.
    HTH
    EDIT:
    Page numbers could be off a bit due to Adobe reader showing different number from printed page, but close.
    EDIT EDIT: PortE ADCON1, TRISE 0:2 For port E, watch out for TRISE.4 if set will upset PortD's use as I/O. PP50:52
    Last edited by Archangel; - 19th July 2013 at 03:32.
    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.

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