Synchronized serial IN interface in GPIF

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

cross mob
E_521156
Level 4
Level 4
100 sign-ins 50 replies posted 50 sign-ins

Hi,

I used Serial interface using GPIF II .
I connected two boards
back to backand connect pin15 and pin14 by a jumper. one board send data out and another one recieve it.

I did another test : I send constant data(x0EF) by streamer EP 0x01, and tried to get it in another streamer EP 0x81, it has shift by each stop and start in bulk in streamer: 0xbf, 0xfd, 0xfe, 0xef, 0x7f, 0xf7,....  and it goes to zero even when I don't sent anythingit is WORD_SIZE based and all time it takes zeros as data.I want data after SOF.  But when I change bi8:9 (sof to sof - sof to eof) in CY_U3P_PIB_GPIF_SERIAL_IN_CONFIG , I got error 997.


My questions are:

1- How can I get stream data without shift(Synchronized with SOF)?

2- How can I receive  whatever that i sent(data with each SOF), not more than that? 


Thanks

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

Please test the attached firmware

usbtogpif -  FX3 Transmitter

gpiftousb - FX3 Receiver

Hardware setup

gpif_serial.PNG

The results will be as follows

Bulk OUT from transmitter

gpif_serial_in.PNG

Bulk IN from reciever

gpif_serial_in1.PNG

Please check at your end and let me know the results

Regards,

Rashi

Regards,
Rashi

View solution in original post

0 Likes
4 Replies
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

Please share the configuration settings of the following registers so that i can reproduce the same at my end (shifting problem on every start and stop)

1) CY_U3P_PIB_GPIF_CONFIG

2) CY_U3P_PIB_GPIF_SERIAL_IN_CONFIG */

3)  CY_U3P_PIB_GPIF_SERIAL_OUT_CONFIG

Please mention the settings for both the firmware running on two FX3.

Regards,

Rashi

Regards,
Rashi
0 Likes

Hi,
for serial input:

0x8000C380,  /*  CY_U3P_PIB_GPIF_CONFIG */

0x00007C83,  /*  CY_U3P_PIB_GPIF_SERIAL_IN_CONFIG */  

0x00001F82,  /*  CY_U3P_PIB_GPIF_SERIAL_OUT_CONFIG */

for serial output:

0x8000C380,  /*  CY_U3P_PIB_GPIF_CONFIG */

0x00007c82,  /*  CY_U3P_PIB_GPIF_SERIAL_IN_CONFIG */  

0x00001F83,  /*  CY_U3P_PIB_GPIF_SERIAL_OUT_CONFIG */


By these setting, I get shifted data.
and for serial input, when I change  CY_U3P_PIB_GPIF_SERIAL_IN_CONFIG = 0x00007D83   to get SOF to SOF, I get error 997.

Thanks

0 Likes
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

As per the last response in thread Re: Serial IN Interface in GPIF II i will update you on the sof-sof settings as i am able to reproduce the same at my end

Regards,

Rashi

Regards,
Rashi
0 Likes
lock attach
Attachments are accessible only for community members.
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

Please test the attached firmware

usbtogpif -  FX3 Transmitter

gpiftousb - FX3 Receiver

Hardware setup

gpif_serial.PNG

The results will be as follows

Bulk OUT from transmitter

gpif_serial_in.PNG

Bulk IN from reciever

gpif_serial_in1.PNG

Please check at your end and let me know the results

Regards,

Rashi

Regards,
Rashi
0 Likes