2008-10-20 10:34:29 bfin_sport and continuous write/read?
N.C. van Leeuwen (NETHERLANDS)
Message: 63950
Is it possible to configure the sport (using bfin_sport character device driver) to use continuous read and write operations while the TFS/RFS remains active?
I've tried several things but none of them work. Telling the driver to use unframed messages gives me more then one byte, but the TFS is only active during the first byte. Telling the driver to use framed messages gives me just one byte, altough I gave as parameters for the write operation for example: write(sport, BufPtr, 2). With the intention to write 2 words.
I've read the hardware reference manual of the BF-537. I use the BF-537 stamp.
On page 12-31 of that manual there is mentioned that when TFSR = 1 or RFSR = 1, a frame
sync signal is required for every data word (size 8 in my case). To allow continuous transmitting (TFS remains active) each new dataword must be loaded into the SPORT_TX hold register before the previous word is shifted out and transmitted.
Is this implemented in the driver, and if it is, how can I use it?
My config so far:
mode = NORM_MODE
lsb_first = 0
data_indep = 0
fsync = 1
act_low = 1
late_fsync = 1
tckfe = 0
sec_en = 0
int_clk = 1
serial_clk = 2000000
fsync_clk = 200
data_format = NORM_FORMAT
word_len = 8
dma_enabled = 1
Thanks in advance,
Nico
QuoteReplyEditDelete
2008-10-23 04:17:50 Re: bfin_sport and continuous write/read?
N.C. van Leeuwen (NETHERLANDS)
Message: 64109
Nobody who can help me?
QuoteReplyEditDelete
2008-10-23 10:56:34 Re: bfin_sport and continuous write/read?
Kyle Schlansker (UNITED STATES)
Message: 64122
Looking at the driver source code, it appears that those bits are set when you enable i2s mode. What is your application?