Re: PIC16F88, PORTA strange behaviour
From: Frank Bemelman (f.bemelmanx_at_xs4all.invalid.nl)
Date: 12/02/04
- Next message: Robert Scott: "Re: PIC16F88, PORTA strange behaviour"
- Previous message: Mark A. Odell: "Re: PIC16F88, PORTA strange behaviour"
- In reply to: Mark A. Odell: "Re: PIC16F88, PORTA strange behaviour"
- Next in thread: Robert Scott: "Re: PIC16F88, PORTA strange behaviour"
- Reply: Robert Scott: "Re: PIC16F88, PORTA strange behaviour"
- Reply: Anthony Fremont: "Re: PIC16F88, PORTA strange behaviour"
- Reply: Mark A. Odell: "Re: PIC16F88, PORTA strange behaviour"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 2 Dec 2004 15:23:17 +0100
"Mark A. Odell" <odellmark@hotmail.com> schreef in bericht
news:Xns95B35A85127CFCopyrightMarkOdell@130.133.1.4...
> "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.
No, it's not that. When I pick two outputs on B there is no problem.
With two outputs on A, presto. Also happens with milisecond delay in
between. The code I included was just to demonstrate this behaviour.
I really start thinking it's a flaw in the F88, on the other hand I can
hardly believe that this has to be discovered on my workbench ;)
I'll try a workaround, updating the entire port instead of single
pins.
-- Thanks, Frank. (remove 'x' and 'invalid' when replying by email)
- Next message: Robert Scott: "Re: PIC16F88, PORTA strange behaviour"
- Previous message: Mark A. Odell: "Re: PIC16F88, PORTA strange behaviour"
- In reply to: Mark A. Odell: "Re: PIC16F88, PORTA strange behaviour"
- Next in thread: Robert Scott: "Re: PIC16F88, PORTA strange behaviour"
- Reply: Robert Scott: "Re: PIC16F88, PORTA strange behaviour"
- Reply: Anthony Fremont: "Re: PIC16F88, PORTA strange behaviour"
- Reply: Mark A. Odell: "Re: PIC16F88, PORTA strange behaviour"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|