Re: Using 74xx574 D FF to expand PIC outputs
- From: Rich Grise <rich@xxxxxxxxxxx>
- Date: Mon, 16 Jul 2007 21:39:59 GMT
On Mon, 16 Jul 2007 14:28:30 -0400, Peter S. May wrote:
Greetings. I'm having a problem that reaches beyond my basic knowledge
of digital logic and electronics, and so I'm hoping an expert eye can
spot the mistake. (Also, please suggest a more appropriate group if I'm
in the wrong place.)
I'm working on a seemingly straightforward means of expanding the
limited outputs of a PIC 16F88 to 32 pins by way of four 74ABT574 octal
D-type flip-flops and a 2-to-4 decoder. The way the trivial design is
supposed to work is that each RBn pin of the PIC is attached to a
corresponding Dn pin on each of the four 574s. The program would assign
their data round-robin style, assigning one word to PORTB and then
clocking the destination DFFs using the demuxer. The outputs in this
experiment are LEDs run via 1K resistors (3 or 4mA).
....
bsf PORTA,4....
bcf PORTA,4....
Aren't these instructions read-modify-write? When the pin goes
high-impedance to do the read, there could be a glitch. I'd just use
the right byte, like for example (pseudocode):
lda 00000001b ; for bit 0
output A, portA
lda 00000000b ; to make the strobe go away
output A, portA
Of course, you've already written your data to port B.
If you're using port A for other stuff, keep a shadow copy in RAM.
Good Luck!
Rich
.
- Follow-Ups:
- Re: Using 74xx574 D FF to expand PIC outputs
- From: Peter S. May
- Re: Using 74xx574 D FF to expand PIC outputs
- References:
- Using 74xx574 D FF to expand PIC outputs
- From: Peter S. May
- Using 74xx574 D FF to expand PIC outputs
- Prev by Date: Re: Do you know your future Boss?
- Next by Date: Re: Wow, first lead-free victim: Microsoft Xbox 1 billion damage
- Previous by thread: Re: Using 74xx574 D FF to expand PIC outputs
- Next by thread: Re: Using 74xx574 D FF to expand PIC outputs
- Index(es):
Relevant Pages
|