DS1820 and 18f2550


Results 1 to 8 of 8

Threaded View

  1. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Did you disable Porta Comparators ??? looks no ...

    Default setting ... ok, but ...

    EXAMPLE 10-1: INITIALIZING PORTA

    CLRF PORTA ; Initialize PORTA by
    ; clearing output
    ; data latches
    CLRF LATA ; Alternate method
    ; to clear output
    ; data latches
    MOVLW 0Fh ; Configure A/D
    MOVWF ADCON1 ; for digital inputs
    MOVLW 07h ; Configure comparators
    MOVWF CMCON ; for digital input

    MOVLW 0CFh ; Value used to
    ; initialize data
    ; direction
    MOVWF TRISA ; Set RA<3:0> as inputs
    ; RA<5:4> as outputs

    Even Microchip does it !!! ...

    Alain
    Last edited by Acetronics2; - 2nd October 2007 at 17:11.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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