datasheetbank_Logo
数据手册搜索引擎和 Datasheet免费下载 PDF

CS8900 查看數據表(PDF) - Cirrus Logic

零件编号
产品描述 (功能)
生产厂家
CS8900 Datasheet PDF : 132 Pages
First Prev 101 102 103 104 105 106 107 108 109 110 Next Last
CS8900
5.7.7 Transmit in Interrupt Mode
In interrupt mode, Rdy4TxiE bit (Register B
“BufCFG”, Bit 8) must be set for transmit opera-
tion. Transmit operation occurs in the following
order and is shown in Figure 5.13
1. The host bids for frame storage by writing the
Transmit Command to the TxCMD register
(memory base + 0144h in memory mode and
I/O base + 0004h in I/O mode).
2. The host writes the transmit frame length to
the TxLength register (memory base + 0146h
in memory mode and I/O base + 0006h in I/O
mode). If the transmit length is erroneous, the
command is discarded and the TxBidErr, bit
7, in BusST register is set.
3. The host reads the BusST register. This read is
performed in memory mode by reading Regis-
ter 18, at memory base + 0138h. In I/O mode,
the host must first set the PacketPage Pointer
at the correct location by writing 0138h to the
PacketPage Pointer Port (I/O base + 000Ah),
it than can read the BusST register from the
PacketPage Data Port (I/O base + 000Ch).
After reading the register, the Rdy4TxNOW
bit is checked. If the bit is set, the frame can
be written to CS8900 memory. If
Rdy4TxNOW is clear, the host will have to
wait for the CS8900 buffer memory to be-
come available at which time the host will be
interrupted. On interrupt, the host enters the
interrupt service routine and reads ISQ regis-
ter (Memory base + 0120h in memory mode
and I/O base + 0008h in I/O) and checks the
Rdy4Tx bit (bit 8). If Rdy4Tx is clear then
the CS8900 waits for the next interrupt. If
Rdy4Tx is set, then the CS8900 is ready to
accept the frame.
4. When the CS8900 is ready to accept the
frame, the host transfers the entire frame from
host memory to CS8900 memory using
104
“REP” instruction (REP MOVS to memory
base + 0A00h in memory mode, and REP
OUT to Receive/Transmit Data Port (I/O base
+ 0000h) in I/O mode).
5.7.8 Completing Transmission
When the CS8900 successfully completes trans-
mitting a frame, it sets the TxOK bit (Register 8,
TxEvent, Bit 8). If the TxOKiE bit (Register 7,
TxCFG, bit 8) is set, the CS8900 generates a
corresponding interrupt.
5.7.9 Rdy4TxNOW vs. Rdy4Tx
The Rdy4TxNOW bit (Register 18, BusST, bit 8)
is used to tell the host that the CS8900 is ready
to accept a frame for transmission. This bit is
used during the Transmit Request process or af-
ter the Transmit Request process to signal the
host that space has become available when inter-
rupts are not being used (i.e. the Rdy4TxiE bit
(Register B, BufCFG, Bit 8) is not set). Also, the
Rdy4Tx bit is used with interrupts and requires
the Rdy4TxiE bit be set.
Figure 5.12 provides a diagram of error free
transmission without collision.
5.7.10 Committing Buffer Space to a
Transmit Frame
When the host issues a transmit request, the
CS8900 checks the length of the transmit frame
to see if there is sufficient on-chip buffer space.
If there is, the CS8900 sets the Rdy4TxNOW bit.
If not, and the Rdy4TxiE bit is set, the CS8900
waits for buffer space to free up and then sets the
Rdy4Tx bit. If Rdy4TxiE is not set, the CS8900
sets the Rdy4TxNOW bit when space becomes
available.
Even though transmit buffer space may be avail-
able, the CS8900 does not commit buffer space
to a transmit frame until all of the following are
true:
DS150PP2

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]