* TDM on mpc823
@ 2001-04-19 17:36 Kyle Harris
2001-04-19 18:52 ` Dan Malek
0 siblings, 1 reply; 2+ messages in thread
From: Kyle Harris @ 2001-04-19 17:36 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
Sorry if this is off-topic (not really linux related).
With Dan's help I think I understand how the TDM/CPM works. But, I'm
still having problems getting the TDM to output the correct number of
bytes. If I set the CNT field in sirp to be <=4 everything works great.
But as soon as I go above 5 bytes, the TDM fails to send the correct
number and sometimes stuffs the bits in an incorrect slot. Can anyone
help me?
Thanks, Kyle.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: TDM on mpc823
2001-04-19 17:36 TDM on mpc823 Kyle Harris
@ 2001-04-19 18:52 ` Dan Malek
0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2001-04-19 18:52 UTC (permalink / raw)
To: Kyle Harris; +Cc: linuxppc-embedded
Kyle Harris wrote:
> Sorry if this is off-topic (not really linux related).
It's OK....It's an education about how to use Linux with a TDM
interface :-).
> But as soon as I go above 5 bytes, the TDM fails to send the correct
> number and sometimes stuffs the bits in an incorrect slot.
I'm going to assume you are using an SMC (since SMC2 is a logical
choice). Here is another reason why you don't use the LAST indicator.
Unlike the SCC, the SMC doesn't start to load it's FIFO from the BD
until the TDM tells it the frame pulse has arrived. Because of this,
you can't get the first slot of the TDM to transmit from an SMC after
it achieves synchronization. You will notice my cs4218 driver
compensates for this by shifting the data in the buffer (by moving
the pointer) on the first buffer of a transfer. Once the world is
streaming, the SMC can move through the buffers and get the first
TDM slot. If you are using a processor with an available SCC (like
SCC3 on the 823e/850), I would use that instead of the SMC. The SCC
pre-loads the FIFO, and behaves as you expect. FYI, the SMC is useful
for managing the ISDN D-channel on either IDL or GCI, which isn't the
first slot and is low bandwidth.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-04-19 18:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-19 17:36 TDM on mpc823 Kyle Harris
2001-04-19 18:52 ` Dan Malek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).