How many bytes are in the fifo now?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 Hi, all

   

 

   

 

   

 

   

 

   

 

   

 

   

 

   

 

   

 

   

 

   

 

   

 

   

 

   

 

   

 

   

Im working with a cmos sensor connected to the slave fifo of 68013, the frame sync signal of the cmos is captured by INT0. In the INT0 service routine, i want to insert some user defined bytes to the cmos data stream. My question is, how can i exactly know how many bytes are in the fifo now? Because the inserted bytes should not overwrite any cmos data that are already in the fifo. Can the EPxBCH:L register or Autopointer be helpful?

   

Thanks!

0 Likes
1 Reply
Anonymous
Not applicable

 Hi,

   

 

   

EPxBCH:L will reflect the count (number of bytes) in  the endpoint. To modify the data using 8051, you need to configure it in manual mode. Please refer Technical reference manual (http://www.cypress.com/?rID=38232) and http://www.cypress.com/?rID=45850 for more info.

   

 

   

Regards,

   

Gayathri

0 Likes