DBus hardware access - From TI view (registers)
Well, the whole doc is focused on link from a PC view. This topic
add a TI view.
While I was working on TiEmu II, I had to fix linkport support which
was quite broken. Unfortunately, I didn't know very much about how
linkport works on TI side. This was quite annoying. Then, I decided to
dis-assemble low-level linkport routines and the result of this work is
below.
DBus
Control & Status |
|||||||||||||||
Control ($60000C) |
Status ($60000D) | ||||||||||||||
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
AE |
LD |
LTO |
CLE |
CA |
CTX |
CRX |
SLE |
STX |
SRX |
SLI |
SA |
EA? |
AE |
Autostart Enable |
Bit set and bit 3 of $600005 set
: wake-up calc on Dbus activity. |
LD |
Link Disable |
Set it to 1 when you want to use
direct access to register $60000E. Disable byte sender/receiver. |
LTO |
Link Time-out Disable |
Disable link time-out (red/white
are low for more than 2 seconds). |
CLE |
Link Error Interrupt Enable |
Allow SLE to trigger interrupt. |
CA |
AutoStart Interrupt Enable | Allow SA to trigger interrupt. |
CTX |
TX buffer empty Interrupt Enable | Allow STX to trigger interrupt (and triggers interrupt immediately given that STX is usually set). |
CRX |
RX buffer full Interrupt Enable | Allow SRX to trigger interrupt. |
SLE |
Link Error |
Dbus error (timing or protocol
violation). |
STX |
TX buffer empty |
Transmit buffer is empty. |
SRX |
RX buffer full |
Receive buffer is empty. |
SLI |
Link Interrupt |
Never used (at least in TI AMS).
SLI = SLE | STX | SRX | SA. |
SA |
AutoStart |
Link activity on DBus port. |
EA ? |
External Activity ? |
External activity (DBus lines
are toggling). Used by AMS >= 2.08 |
Always 1. | ||
Always 0. |
DBus
Direct & Data |
|||||||||||||||
Direct ($60000E) |
Data ($60000F) | ||||||||||||||
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
D1I (white) |
D0I (red) |
D1O |
D0O |
RX/TX
1-byte buffer |
D1I |
D1 input |
Live status of
D1/ring/white (1=pulled down). |
D0I |
D0 input |
Live status of D0/tip/red
(1=pulled down). |
D1O |
D1 output |
Activate (pull down)
D1/ring/white. |
D0O |
D0 output |
Activate (pull down)
D1/ring/white. |
You may find some informations in the TIGCC documentation.