[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Where is for example s0bsy in the internal registers?



Hi,

Below follows a table with the relationship between the signals on the
different interfaces. Normally you should access them with R_PORT_G_DATA
in software (e.g. g5 is bit 5 in R_PORT_G_DATA). 

Example:
Writing to bit 2 in PORT_G_DATA will generate a write on s0bsy. s0bsy
is a write only pin and can't be read. If you read bit 2 in PORT_G_DATA
the read will occur on s0req_. The signals marked 'bi' are read/write.

It may be confusing that there is a out pin called s0bsy which 
and a in pin called s0bsy_ and these pins aren't mapped to the
same bit in R_PORT_G_DATA. Read the table and the schematics
carefully before writing the software.


- SCSI-8 p0| SCSI-W     | ATA         | PAR p0          | MIO          | GEN IO
s0msg_ bi  | s0msg_ bi  | iordy   in  | p0perror_   in  | pr_adr0  in  | g5  in
s0cd_  bi  | s0cd_  bi  | dmarq0  in  | p0ack_      in  | pr_adr1  in  | g4  in
s0io_  bi  | s0io_  bi  | dmarq1  in  | p0busy      in  | intio_   in  | g3  in
s0req_ in  | s0req_ in  | dmarq2  in  | p0fault_    in  | rd_wr    in  | g2  in
s0rst_ in  | s0rst_ in  | dmarq3  in  | p0select    in  | pr_req_  in  | g1  in
           |            |             |                 |              |
s0rst  out | s0rst  out | cs0_    out | p0data_oe   out | pr_int_  out | g5  out
s0ack_ out | s0ack_ out | cs1_    out | p0selectin_ out | pr_ack_  out | g4  out
s0atn_ out | s0atn_ out | a0      out | p0autofd_   out | a_sel    out | g3  out
s0bsy  out | s0bsy  out | a1      out | p0strobe_   out | g2       out | g2  out
s0oe   out | s0oe   out | a2      out | p0init_     out | g1       out | g1  out
           |            |             |                 |              |
s0p_   bi  | s0p_   bi  | dmack0_ out | g0          bi  | g0       bi  | g0  bi
           |            |             |                 |              |
s0d7_  bi  | s0d7_  bi  | d7      bi  | p0d7        bi  | pr_d7    bi  | g15 bi
s0d6_  bi  | s0d6_  bi  | d6      bi  | p0d6        bi  | pr_d6    bi  | g14 bi
s0d5_  bi  | s0d5_  bi  | d5      bi  | p0d5        bi  | pr_d5    bi  | g13 bi
s0d4_  bi  | s0d4_  bi  | d4      bi  | p0d4        bi  | pr_d4    bi  | g12 bi
s0d3_  bi  | s0d3_  bi  | d3      bi  | p0d3        bi  | pr_d3    bi  | g11 bi
s0d2_  bi  | s0d2_  bi  | d2      bi  | p0d2        bi  | pr_d2    bi  | g10 bi
s0d1_  bi  | s0d1_  bi  | d1      bi  | p0d1        bi  | pr_d1    bi  | g9  bi
s0d0_  bi  | s0d0_  bi  | d0      bi  | p0d0        bi  | pr_d0    bi  | g8  bi
           |            |             |                 |              |

- Group 1

- SCSI-8 p0| SCSI-W     | ATA         | SER p2          |              | GEN IO
s0en_  out | s0en_  out | dior0_  out | rts2_       out | -            | g7  out
s0sel  out | s0sel  out | dior1_  out | txd2        out | -            | g6  out
           |            |             |                 |              |
s0bsy_ in  | s0bsy_ in  | intrq0  in  | cts2_       in  | -            | g7  in
s0sel_ in  | s0sel_ in  | intrq1  in  | rxd2        in  | -            | g6  in
           |            |             |                 |              |

- Group 2

- SCSI-8 p1| SCSI-W     | ATA         | SER p3          |              | GEN IO
s1bsy_ in  | g31    in  | intrq2  in  | cts3_       in  | -            | g31 in
s1sel_ in  | g30    in  | intrq3  in  | rxd3        in  | -            | g30 in
           |            |             |                 |              |
s1en_  out | g31    out | dior2_  out | rts3_       out | -            | g31 out
s1sel  out | g30    out | dior3_  out | txd3        out | -            | g30 out
           |            |             |                 |              |

- Group 3

- SCSI-8 p1| SCSI-W     | ATA         | PAR p1          | MIO-W        | GEN IO
s1d7_  bi  | s0d15_ bi  | d15     bi  | p1d7        bi  | pr_d15   bi  | g23 bi
s1d6_  bi  | s0d14_ bi  | d14     bi  | p1d6        bi  | pr_d14   bi  | g22 bi
s1d5_  bi  | s0d13_ bi  | d13     bi  | p1d5        bi  | pr_d13   bi  | g21 bi
s1d4_  bi  | s0d12_ bi  | d12     bi  | p1d4        bi  | pr_d12   bi  | g20 bi
s1d3_  bi  | s0d11_ bi  | d11     bi  | p1d3        bi  | pr_d11   bi  | g19 bi
s1d2_  bi  | s0d10_ bi  | d10     bi  | p1d2        bi  | pr_d10   bi  | g18 bi
s1d1_  bi  | s0d9_  bi  | d9      bi  | p1d1        bi  | pr_d9    bi  | g17 bi
s1d0_  bi  | s0d8_  bi  | d8      bi  | p1d0        bi  | pr_d8    bi  | g16 bi
           |            |             |                 |              |
s1p_   bi  | s0p1_  bi  | dmack1_ out | g24         bi  | g24      bi  | g24 bi
           |            |             |                 |              |
s1msg_ bi  | g29    in  | dmack2_ out | p1perror_   in  | g29      in  | g29 in
s1cd_  bi  | g28    in  | dmack3_ out | p1ack_      in  | g28      in  | g28 in
s1io_  bi  | g27    in  | g27     out | p1busy      in  | g27      in  | g27 in
s1req_ in  | g26    in  | g26     in  | p1fault_    in  | g26      in  | g26 in
s1rst_ in  | g25    in  | g25     in  | p1select    in  | g25      in  | g25 in
           |            |             |                 |              |
s1rst  out | g29    out | diow0_  out | p1data_oe   out | g29      out | g29 out
s1ack_ out | g28    out | diow1_  out | p1selectin_ out | g28      out | g28 out
s1atn_ out | g27    out | diow2_  out | p1autofd_   out | g27      out | g27 out
s1bsy  out | g26    out | diow3_  out | p1strobe_   out | g26      out | g26 out
s1oe   out | s1oe   out | ext_oe  out | p1init_     out | g25      out | g25 out
           

PS. This information will be included in the chapter about pin assignments DS.

Regards
/Mikael

-----Original Message-----
From: owner-dev-etrax@xxxxxxx.com]On">mailto:owner-dev-etrax@xxxxxxx.com]On
Behalf Of Jonas Aaberg
Sent: Wednesday, May 16, 2001 12:41 PM
To: dev-etrax
Subject: Where is for example s0bsy in the internal registers?



Hi,

I've been trying to find out how many pins on the etrax
that we can use as general io pins. I did found a nice
list on page 113 in the Etrax 100 data sheet which pins
that can be used as general ios. Now my problem is that
I can't find for example s0bsy in the internal registers.

In other words, how to I change(/read) the value of s0bsy 
and all the other pins that can be used as general ios on 
page 113 from software?
Is there some documentation saying for example that:
"bit 5 on R_GEN_READ_SCSI0_STATUS (just a example name) is 
the s0bsy in SCSI mode, a1 in ATA or g2 in general io mode"
 
I hope I made myself clear.

Best regards,
 Jonas



-- 
Jonas Aaberg               Email: aberg@xxxxxxx.ch
Supercomputing Systems AG  Web:   http://www.scs.ch
Technoparkstrasse 1        Phone: +41 (0) 1 445 16 00
CH-8005 Zuerich            Fax:   +41 (0) 1 445 16 10