Re: Need hardware (chip) guru
From: Willy Tarreau
Date: Wed Dec 29 2004 - 00:40:28 EST
Hi Gene,
On Tue, Dec 28, 2004 at 09:10:59PM -0500, Gene Heskett wrote:
> I've read through the Intel pdf doc sheets on the Intel 82c55 about 4
> times now, looking for clues, but everything about the control
> register seems to be write only. Their logic diagrams don't even
> acknowledge the existance of the control register.
Look at Table 1 page 2 (pin description). There is a table which details
which data goes on the bus for each address in read and in write mode.
If you read address 3, it should return the control reg (according to
the table).
> Is there anyone here who can tell me how to read the current status of
> the ctl register in an 82C55?
>
> The std inb(ctl_address, byte); is returning 0xff regardless of what I
> write with the corresponding outb statement <10 microseconds in front
> of the read.
Have you tried delaying more ?
Honnestly, I don't remember if I have ever read the control reg. Since it's
more of a command than a register, it does not make much sense (depending
on bit 7, it does different things). So at most, you would read the last
command sent to the chip. I don't know if this can be very useful.
Regards,
Willy
PS: for any replies, please post off-list, it seems a little off-topic
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/