I'm not an electrical engineer, but in reading the documentation of the system I work on, I'm coming across a lot of references to multiplexing. I'm wondering if my understanding of multiplexing is accurate and I've come up with an example. If someone could verify my understanding, I'd really appreciate it.
Assume I am working with a 10Hz, 16 bit message. If I have two quantities, A (12 bits) and B (6 bits), I immediately come across the problem of not having enough "space" (not sure the word) in the message to send A and B. But if I don't really need A and B at 10 Hz and say 2Hz will work, can I convert my 10Hz message into five 2Hz messages?
In other words, can I do this:
Group 1: A, 12 bits
Group 2: B, 6 bits
Group 3: Spare 1, n<=16 bits
Group 4: Spare 2, n<=16 bits
Group 5: Spare 3, n<=16 bits
Where each group is a 2 Hz message. I'm assuming that by splitting a 10 Hz message into five 2 Hz messages, I expand my "space" to 16 bits * 5 groups = 80 bits?
Follow-up Question: Here's what confuses me. I'm looking at some work an (ex)-coworker did. They laid out a plan that basically goes like this:
Lets assume I have a bar that has five different super complicated lights on it. I have a two word message that has 16 bits per word that is capable of sending the message at up to 10 Hz.
My coworker dedicated 2 words (16 bits each) to one particular cause --sending three quantities, A (6 bits), B (8 bits), and C (8 bits), at 2 Hz. All five lights are controlled using this same message, so my coworker decided to multiplex these word and have five different mux groups for each word. So each light gets its command update every 0.2 seconds.
My question is this: how can all five commands fit in two 16 bit words?
I know the following:
(1 word/1 message) * (16 bits/1 word) * (1 message/0.1 sec) = 160 bits/second
So if I apply that same logic to my coworkers plan:
(5 words/2 message) * (16 bits/1 word) * (1 message/0.2 sec) = 200 bits/second
So in that case, I am exceeding my allowable bit rate (is this the right term?).
Could you point out the flaw in my logic? I'm pretty confident that he was correct, I think I'm just misunderstanding.
He ended up with A on one word with 10 spares, and B and C on another word with 0 spares.