This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

28335 McBSP Frame Sync Detection

I'm attempting inter-processor communication between two 28335s using McBSP. I'm trying to send messages, which I must divide into units (frames) suitable to send over the McBSP.

As far as I can tell from from the McBSP reference guide, I can only get RINT and XINT interrupts at frame synchronization, or at each word, but not both. What's the best way to detect a frame and transmit/receive words with that knowledge?

The only thing I can think of right now is either:

  • A) to use X/RINTM = 2 (interrupt on frame-sync) and poll for X/RRDY = 1 in the ISR (not pretty and error prone).
  • B) use X/RINTM = 0 (interrupt on each word) which in turns gives me no hint where in the frame the word is, meaning I'll just be sending/receiving a stream of words with not defined start or end and must use a protocol taking that into account.

I might add that I'm not an expert in digital communications so there's quite possibly some more efficient method than I'm aware of.