Author Topic: Interrupts for PAYLOADLEN > 64 ?  (Read 612 times)

DrZippy

  • NewMember
  • *
  • Posts: 1
Interrupts for PAYLOADLEN > 64 ?
« on: July 23, 2021, 09:35:43 PM »
Hi,
Has anyone considered using interrupts to TX/RX single-packet payloads up to 255 bytes (or greater) ?
Im thinking of mp3 streaming app and wondering whats best sustainable bitrate . ( bigger packets mean better data:overheads ratio)
Maybe its because the cost of implementing ( extra int pin? more coding?) isnt worth the mere milliseconds(?)- overhead of eg 4 x 64-byte packets?
THe datasheet says its clearly designed for such packets..
Quote
1) Prefill FIFO (in Sleep/Standby first or directly in Tx mode) until FifoThreshold or FifoFull is set
2) In Tx, wait for FifoThreshold or FifoNotEmpty to be cleared (i.e. FIFO is nearly empty)
3) Write bytes into the FIFO until FifoThreshold or FifoFull is set.
4) Continue to step 2 until the entire message has been written to the FIFO (PacketSent will fire when the last bit of the
packet has been sent).

I havent yet done the math on the possible average bit-rate improvement. If its more than 10% better, I might look into it further.