use of SL811HST as Slave

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

cross mob
Anonymous
Not applicable

We want to use above IC as slave interfaced with a uC. Actual query is : Let us take example of Get_Decsriptor (Device) sent by Host to SL811HST.  This transfer has 3 transactions , each with 3 packets. So, total no. of packets.= 9 as shown below.

Host                                           Device

Set-UP Transaction:

              ----Set_UP ---->

               --- Data0 ----->

               <---- ACK ----

IN Transaction :

               -----IN --->

               <----Data1----

               ------ACK----->

OUT transaction :

               -------OUT----->

                ------Data1----->

                <------ACK------

1.  Does SL811HST  interrupt flag of endpoint occurs after every packet ?

2.  Is it required to set ARM bit in slave mode also ?

3.  After receiving SET_UP packet, what is maximum duration during which the upload data must be in endpoint buffer .

0 Likes
1 Solution
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

Please refer to the slave mode firmware present in the EZ811.zip folder and refer to the TRM for the 8051 instructions from this link​. You can also check the App Note which explains the Control Transfers.

Best Regards,

Sananya

View solution in original post

0 Likes
3 Replies
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

1.Yes, the interrupt is generated for each packet.

2.Yes, it needs to be set in the Endpoint Control Register to facilitate data transfer with the host.

3. The data can be present till an ACK is seen in the Endpoint Packet Status Register.

Best Regards,

Sananya

0 Likes
Anonymous
Not applicable

1. Can you explain for one complete Set_UP transfer using 8051 instructions.

2. Also, is ACK signal / packet sent by SL811HS automatically during an IN transaction or need to be handled in firmware by some instructions  ?

3.  How much duration should be between two transactions ?

0 Likes
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

Please refer to the slave mode firmware present in the EZ811.zip folder and refer to the TRM for the 8051 instructions from this link​. You can also check the App Note which explains the Control Transfers.

Best Regards,

Sananya

0 Likes