CD2231

Manufacturer Part NumberCD2231
DescriptionCD2231 Intelligent Two-channel Lan And Wan Communications Controller
ManufacturerIntel Corporation
CD2231 datasheet
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Page 51
52
Page 52
53
Page 53
54
Page 54
55
Page 55
56
Page 56
57
Page 57
58
Page 58
59
Page 59
60
Page 60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
Page 51/178

Download datasheet (3Mb)Embed
PrevNext
Intelligent Two-Channel LAN and WAN Communications Controller — CD2231
size count — ARBCNT. The CD2231 writes the value of the actual received byte count into
the same register — ARBCNT. (Note that the host has written the maximum buffer size in
ARBCNT when the buffer is given to the CD2231. But when the buffer is returned back to the
host, the CD2231 has written the actual byte count of the received buffer into ARBCNT.)
6. The CD2231 sets the EOB and EOF bits. This notifies the host that the end of the buffer and
frame have been reached. The CD2231 also clears the 2231own bit to return the buffer to the
host.
Example 2
Receive a frame on channel 0, which consists of three buffers chained together. The frame is 240
bytes long, and the maximum buffer size is 100.
1. The host checks the Nrbuf bit (DMABSTS[1]) register for channel 0 to determine which
buffer is next. In this example, Nrbuf is set to ‘1’ indicating that Buffer B is used next.
2. The host sets up the starting address — BRBADR. Buffer size is set to ‘100’ in this example.
Thus, the host sets BRBCNT to ‘100’.
3. The host then sets the 2231own bit to relinquish ownership to the CD2231.
4. The host should know the amount of time it takes to receive 100 bytes, because this is the
minimum time the host has to set up the next buffer link. If the host fails to do this in time,
there is a receiver overrun, and the received frame is lost.
5. Suppose that the CD2231 starts receiving data into Buffer B of channel 0. When this is started,
the Nrbuf bit is cleared to ‘0’ by the CD2231 to help the host keep track of which buffer is
next. (During or prior to this, the host has made Buffer A ready.)
6. After the CD2231 has received the first link of the frame into Buffer B, it sets the EOB bit and
clears the EOF bit. This indicates that the first link in a chain has been received. Also, the
CD2231 clears the 2231own bit, and returns ownership of the buffer to the host.
For the first received link, the received byte count (BRBCNT) remains unchanged at 100,
since the received data filled the buffer.
7. The CD2231 optionally interrupts the host with bit EOF clear and bit EOB set in the RISR to
indicate that the received buffer is complete, and that there was chaining.
8. The ARBSTS register indicates that the CD2231 has ownership of Buffer A for transmission
of the next link.
9. As the frame continues to be received, the data goes into Buffer A. This is the second link,
which is 100 bytes long. During this time, the host must set up a new Buffer B for the third and
final link.
10. After the CD2231 has received the second link into Buffer A, the CD2231 sets the EOB bit
and clears the 2231own bit in the ARBSTS. This returns ownership of the buffer to the host.
As with the first link, the received byte count — ARBCNT, remains unchanged at 100 since
the received data filled the buffer.
11. The CD2231 optionally interrupts the host with bit EOF clear and bit EOB set in the RISR to
indicate that the received buffer is complete and that there was chaining.
12. By this time the host has set up a new buffer for Buffer B.
13. The CD2231 receives data into Buffer B in the same manner, as previously explained.
Datasheet
51