Just floating a wild thought here.
Have been looking at an application where I needed to pass data between chips and had limited inputs in the second chip but want to be able to pass a number of different 'states' or 'commands' to the second chip.
Had the brainstorm that if one varied a pwmout value then that could be read and acted upon by the receiving chip with a ReadADC.
This potentially allows the passing of up to 256 different 'states' or 'commands' to the second chip. The advantage is that this would be;
1. simple
2. be completely asynchronous
3. would not incur any delays in processing.
Naturally this would only be useful in certain types of communication. In the application being considered three different states of the same condition needed to be passed to the second chip which would take differnet actions depending on the state passed. These 'states' arise from logic decions in the the first chip program - not directly from external inputs. There was only one input available on the second chip without moving to a bigger chip with more inputs available (which is what I am doing currently).
I am not sure if a pwmout would be seen by the second chip's ADC input as a steady voltage but if not, presumably a simple Capacitor in the link would smooth this sufficiently and a current limiting resistor would be required to prevent an overcurrent when charging the capacitor.
Any thoughts?
Â
Have been looking at an application where I needed to pass data between chips and had limited inputs in the second chip but want to be able to pass a number of different 'states' or 'commands' to the second chip.
Had the brainstorm that if one varied a pwmout value then that could be read and acted upon by the receiving chip with a ReadADC.
This potentially allows the passing of up to 256 different 'states' or 'commands' to the second chip. The advantage is that this would be;
1. simple
2. be completely asynchronous
3. would not incur any delays in processing.
Naturally this would only be useful in certain types of communication. In the application being considered three different states of the same condition needed to be passed to the second chip which would take differnet actions depending on the state passed. These 'states' arise from logic decions in the the first chip program - not directly from external inputs. There was only one input available on the second chip without moving to a bigger chip with more inputs available (which is what I am doing currently).
I am not sure if a pwmout would be seen by the second chip's ADC input as a steady voltage but if not, presumably a simple Capacitor in the link would smooth this sufficiently and a current limiting resistor would be required to prevent an overcurrent when charging the capacitor.
Any thoughts?
Â