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
Page 41
42
Page 42
43
Page 43
44
Page 44
45
Page 45
46
Page 46
47
Page 47
48
Page 48
49
Page 49
50
Page 50
51
52
53
54
55
56
57
58
59
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 48/178

Download datasheet (3Mb)Embed
PrevNext
CD2231 — Intelligent Two-Channel LAN and WAN Communications Controller
5. The CD2231 completes frame transmission by adding any necessary CRCs and trailing frame
delimiters.
6. When the CD2231 completes the transmission, it clears the Tbusy bit. Then, it sets the EOB
bit and clears the 2231own bit in the ATBSTS. This notifies the host that the transmission is
complete, and returns ownership of the buffer back to the host.
7. The CD2231 optionally interrupts the host, with EOF and EOB in the TISR both set to indicate
that the transmission is complete and there was no chaining.
Example 2
Transmit out of channel 0 and chain three buffers into one frame. The frame is 240 bytes long, and
the maximum buffer size is 100.
1. The host checks the Ntbuf bit in the DMABSTS register for channel 0 to determine which
buffer is next. In this example, Ntbuf is set to ‘1’ indicating that Buffer B is used next.
2. The host sets up the buffer data, the starting address (BTBADR), and the buffer byte count
(BTBCNT) for the first ‘link’ of the chain to be transmitted. For this example, BTBCNT is set
to ‘100’.
3. The host sets up the BTBSTS (‘B’ Buffer Status) register. The EOF bit is cleared to indicate
that this buffer is the first link in a chain. The 2231own bit is set to give ownership to the
CD2231. By setting 2231own, the host commands the CD2231 to start transmission. Thus,
everything must be ready (starting address, buffer, and data count) prior to setting 2231own.
4. At this point, the host has enough time to transmit 100 bytes to set up the next buffer link. If
the host fails to do this in time, there is a transmitter underrun, and the frame is aborted in
HDLC.
5. The CD2231 starts transmitting Buffer B from channel 0. When this is started, the Ntbuf bit is
cleared to ‘0’ to indicate that Buffer A is next. This helps the host keep track of which buffer is
next. As transmission progresses, the current buffer pointer, TCBADR, is updated by the
CD2231. During or prior to this update, the host has readied Buffer A. For Buffer A, the EOF
bit in the ATBSTS register is cleared by the host, indicating that the buffer is not at the end of
the chain.
6. At the end of transmission of this buffer, the CD2231 does not add any CRCs nor end of frame
delimiters because there is more data for the current frame.
7. After the CD2231 has completed transmission of the first link out of Buffer B, the CD2231
sets the EOB bit and clears the 2231own bit in the BTBSTS. This notifies the host that the
transmission is complete, and returns ownership of the buffer back to the host.
8. The CD2231 optionally interrupts the host with EOF clear and EOB set in the TISR to indicate
that the transmission is completed, and that there was chaining.
9. The ATBSTS register indicates that the CD2231 has ownership of Buffer A for transmission of
the next ‘link’. The EOF is cleared so that this link is not the last link in the transmitted chain.
10. The CD2231 continues transmission of the current frame, but now transmission is from 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. The BTBCNT for the last link is set to 40 bytes.
11. After the CD2231 has completed transmission of the second link out of Buffer A, it sets the
EOB bit and clears the 2231own bit in the ATBSTS. This notifies the host that the
transmission has complete, and returns ownership of the buffer back to the host. As with the
first link, the CD2231 does not add CRCs or ending frame delimiters to this link.
48
Datasheet