DSPRelated.com
Forums

Data count(DCNT) in TWI

Started by Pramod Jacob November 8, 2006
Hello Everyone,

Our design has a Video encoder ADV7171 interfaced with blackfin BF537
through the PPI port. Also to configure the encoder we have used the TWI
port of Blackfin.

I enable the Blackfin to be in Master-Transmit mode. Before enabling the
transmission, I fill in the TWI FIFO which is 2-BYTE deep. Everything works
fine if i have my *DCNT in (TWI_MASTER_CTL Register)* value as 2. If i want
to transmit data greater than 2 bytes, my transmission succeeds with the
first two bytes getting transmitted but then *ABORTS* with the message that
*Tx FIFO* is empty.

So what i understand is that, in order to transmit more than 2 bytes, we
need to do a 2-byte transmission everytime. If this is the case then whats
the use of having a *DCNT in TWI_MASTER_CTL Register? *
**
Any help would be of great use.

Thanks & Regards,

Pramod Jacob