portA.0 cannot be set


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: portA.0 cannot be set

    Henrik,

    It was a read-write-modify issue.
    a simple PAUSEUS 1 between instructions solved it.
    Thanks!

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


    Did you find this post helpful? Yes | No

    Default Re: portA.0 cannot be set

    Bonjour Patrice,

    Or simply Write " HIGH or LOW PortA.0 " ... it will automatically add a little time ... ( equal to TRISA.0 = 0 ... )

    hé,hé ... soyons flemmards !!!

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  3. #3
    Join Date
    Nov 2007
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: portA.0 cannot be set

    Bonjour Alain,

    You are right, I had noticed that writing "high" or "Low" indeed worked as well.
    This is the first time I design a project running at 40 Mhz, so I am dealing with new issues I have not seen before.

    You learn every day!

    A+

    Pat

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


    Did you find this post helpful? Yes | No

    Default Re: portA.0 cannot be set

    Salut Patrice,

    With PIC18, there's LAT port made to avoid this problem

    You write to LAT ... but read from PORT
    LATA.0=1
    LATA.1=1
    LATA.2=1
    LATA.3=1
    Steve

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

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