I am making a component for the MCP320x ADC which has an SPI interface ,I would like to ask some ideas regarding the simulation of the device(chip)
I have made makros which read the slider value(Voltage ) and then output a corresponding bit value as the ADC would do ,this functions ok as I then place the bit value to 2 ports and works correctly and yes I also read the slider voltage value and the sim can use the bit value of the voltage value.
my confusion is that it is not possible to simulate the actual chip inner workings so what I am doing is basically that -- Correct?
secondly should I use 4 sliders for the component to represent the 4 channels or is there away to only use 1 slider and link it in code to a user selected CH1-4 ,this is actually how the real code works it selects the channel to read ,any hints Ideas will be appreciated
