Joined: 03 Oct 2004 Posts: 235 Location: Gothenburg, Sweden
Posted: Wed Jan 23, 2019 2:31 pm Post subject:
Hi Enniom
This kind of buffer building followed by length calculation and then transmission was actually my first approach, but in a slightly different way.
I first converted the strings and numerics into a single string and then calculated the length using the LEN function.
Finally I printed the length+1 followed by this long string in the ordinary way using buffered print (Interrupt driven)
This works fine, but is a bit cumbersome.
I like your idea using DMA for sending a byte array, as I am actually already running this product on an XMEGA128D4
MWS method is even more elegant, but stumble on the need for turning off global interrupt while building the message.
Could these two ideas perhaps be combined? MWS style using your DMA …
The beauty would be that we could use the Print syntax very much unchanged.
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 vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum