Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: SSC: RXSYN interrupt doesn't trigger
PostPosted: Sat May 01, 2010 10:59 am 
Offline

Joined: Thu Feb 04, 2010 3:44 pm
Posts: 9
Hi there,
I'm trying to receive some data using an AT91SAM7 micro-controller as slave and a device master that has such an output:

Image

The following lines from my code explains the SSC configuration I'm using:
Code:
   /* Setting up external clock source from pin RK, no clock output, clock
    * is falling-edge triggered, clock enabled only if RF is low */
   AT91C_BASE_SSC->SSC_RCMR = AT91C_SSC_CKS_RK | AT91C_SSC_CKO_NONE |
         AT91C_SSC_CKG_RFLOW | AT91C_SSC_START_CONTINOUS;

   /* Data length is 5 bits (SSC_RFMR+1), RXSYN interrupt is
    * positive-edge triggered */
   AT91C_BASE_SSC->SSC_RFMR = (AT91C_SSC_DATLEN & 4);

.....

   /* Enable RXSYN and RXBUFF interrupts */
   AT91C_BASE_SSC->SSC_IER = AT91C_SSC_RXBUFF | AT91C_SSC_RXSYN;



What I'd like to have here is SSC to send me an interrupt whether the RF line gets high (i.e. on its rising edge), I thought RXSYN interrupt would have been OK for this purpose.

Corresponding pins of RK, RD and RF are exclusively assigned to the SSC. Furthermore using a scope I can clearly see that signals successfully reach the micro-controller's pins. Thus hardware is OK.

The problem here is that RXSYN interrupt will never be set by the SSC in its control register, hence no interrupt is being triggered by the AIC.
With some debugging I discovered that SSC successfully receives data, anyway it does not set RXSYN in the SSC, never.

Now the real question (I didn't manage to find an answer to this in the datasheet) is: Does RXSYN interrupt work whether continuous mode is used?


Top
 Profile  
 
 Post subject: Re: SSC: RXSYN interrupt doesn't trigger
PostPosted: Sat May 01, 2010 1:20 pm 
Offline

Joined: Thu Mar 02, 2006 1:32 pm
Posts: 127
Location: Switzerland
Hi

I can't expressly answer your question since I don't think that I used this status/interrupt. What I did find is a problem with Tx synchronisation in a particular mode. The driver (in the particular mode) is documented here:
http://www.utasker.com/docs/uTasker/uTaskerSSC.PDF

Regards

Mark

www.uTasker.com


Top
 Profile  
 
 Post subject: Re: SSC: RXSYN interrupt doesn't trigger
PostPosted: Sat May 01, 2010 7:20 pm 
Offline

Joined: Thu Feb 04, 2010 3:44 pm
Posts: 9
Hi there,

that's a nice piece of document, thanks for pointing it out :) !

I tried all the day and so far I think the answer to the question I've proposed is no.

For the lost soul that someday may have the same problem: a convenient and relatively painless workaround is using IRQ0 interrupt which can be triggered from the same pin of RF (PA20) :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: chasmopolitan and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: