Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AT91SAM7X256 SSC

1 view
Skip to first unread message

Ali

unread,
Dec 1, 2009, 6:15:28 AM12/1/09
to
Hi every body
I have a problem with AT91SAM7X256 SSC. I want to point to multipoint
communication link between some microcontrollers using SSC. I have
used AT91SAM7X256 in the slave part.

I want the receiver start receiving based on a pattern on RSHR and its
working ok.

*AT91C_SSC_RCMR = AT91C_SSC_CKS_RK | AT91C_SSC_CKO_NONE |
AT91C_SSC_STTDLY | AT91C_SSC_STOP | AT91C_SSC_START_0 |
AT91C_SSC_PERIOD ;
*AT91C_SSC_RFMR = AT91C_SSC_DATNB | AT91C_SSC_DATLEN |
AT91C_SSC_FSLEN | AT91C_SSC_FSOS_NONE ;

I want the transmitter to start as the receiver start but the receiver
doesn’t trigger the transmitter.

*AT91C_SSC_TCMR = AT91C_SSC_CKS_SEND_RK | AT91C_SSC_CKO_NONE |
AT91C_SSC_STTDLY | AT91C_SSC_STOP | AT91C_SSC_START_RX |
AT91C_SSC_PERIOD;
*AT91C_SSC_TFMR = AT91C_SSC_DATNB | AT91C_SSC_DATLEN |
AT91C_SSC_FSLEN | AT91C_SSC_FSOS_NONE | AT91C_SSC_DATDEF ;

When I change the start event AT91C_SSC_START_RX to
AT91C_SSC_START_FALL_RF it starts working (but it’s not the desired
event that I want).

*AT91C_SSC_TCMR = AT91C_SSC_CKS_SEND_RK | AT91C_SSC_CKO_NONE |
AT91C_SSC_STTDLY | AT91C_SSC_STOP | AT91C_SSC_START_FALL_RF |
AT91C_SSC_PERIOD;
*AT91C_SSC_TFMR = AT91C_SSC_DATNB | AT91C_SSC_DATLEN |
AT91C_SSC_FSLEN | AT91C_SSC_FSOS_NONE | AT91C_SSC_DATDEF ;

So it seems that the problem is relating to AT91C_SSC_START_RX the
AT91C_SSC_START_RX event.
Does anyone have experienced this problem or have any idea to come
over this problem.
Best regards

0 new messages