Re: PIC16F88, PORTA strange behaviour

From: Mark A. Odell (odellmark_at_hotmail.com)
Date: 12/02/04

  • Next message: Frank Bemelman: "Re: PIC16F88, PORTA strange behaviour"
    Date: 2 Dec 2004 13:53:54 GMT
    
    

    "Frank Bemelman" <f.bemelmanx@xs4all.invalid.nl> wrote in
    news:41af158c$0$566$e4fe514c@news.xs4all.nl:

    > Strange problem:
    >
    > Setting an output low on PORTA, causes another output
    > on PORTA to go low too.
    >
    > Below is the entire program. It should generate two signals:
    >
    > ---, ,---, ,---, ,---, ,---
    > '---' '---' '---' '---'
    > -, ,---, ,---, ,---, ,---
    > '- -' '---' '---' '---'
    >
    > But instead gives this:
    >
    > -, ,-, ,-, ,-, ,-
    > '-----' '-----' '-----' '-----'
    > -, ,---, ,---, ,---, ,---
    > '- -' '---' '---' '---'

    Are you doing this without delays in the inter-port pin state changes?
    That is, fast? If so, you've hit the fun errate of read-modify-write on a
    port. Try using a pin on port A and a pin on another port, the problem
    should go away. Microchip has a good description of this problem in one of
    the PIC documents. I can't find it right now. It may have been in the Q&A
    section of the PIC18 reference. Good luck.

    -- 
    - Mark ->
    --
    

  • Next message: Frank Bemelman: "Re: PIC16F88, PORTA strange behaviour"

    Relevant Pages

    • Re: PIC16F88, PORTA strange behaviour
      ... >> Setting an output low on PORTA, ... >> on PORTA to go low too. ... Try using a pin on port A and a pin on another port, ...
      (comp.arch.embedded)
    • Re: Using 74xx574 D FF to expand PIC outputs
      ... corresponding Dn pin on each of the four 574s. ... output A, portA ... lda 00000000b; to make the strobe go away ... If you're using port A for other stuff, keep a shadow copy in RAM. ...
      (sci.electronics.design)
    • Re: Accessing general I/O addresses
      ... pins you have to cook it up yourself, ... Generally the methods I've seen store a port address and offset to get to ... PORTA = PORTA or action;, where action is whatever action that I do ... only to the pin desired? ...
      (comp.arch.embedded)
    • writing bits to PORTA on p16f84
      ... would like to simulate a switchbutton on pin RA0, that when pressed, ... try to turn on the bits on PORTA RA0 to simulate the pin going high, ... skipped: 000a goto 0x0008 ...
      (comp.arch.embedded)
    • Re: PIC16F88, PORTA strange behaviour
      ... >Setting an output low on PORTA, ... >on PORTA to go low too. ... When something works on one port but not on another for ANY micro ...
      (comp.arch.embedded)