Hi Guys, I put this as [EE] as at the moment I am using an ARM processor but will apply to using a PIC to. is more like a programming generic question. Been looking into a project where I have a few analogue inputs using the ADCs. I will be reading different physical signals with them and I would like to be able to change what they represent easily. to be clear I will, lets say, be reading temperature on the input one day and the other I would like to the reading some pressure value or something else. The input will still be an ADC value but will need to be scaled and handled differently. for the moment I would like not to look at speed of required sampling and so on, I would just like to be able to define a logical sensor entity ie pressure sensor, temperature sensor type x and so on and the code to deal with it. I am struggling to define it all... This is what I came up with as a system and also regarding the analogue sensors connected to the ADC module, at the moment i have no code just the concept of it: - The sensor(s) are physically attached to the local ADC although later I may want to make them remote, but lets not complicate things at the moment. - I called the system a module, the module communicates with the PC via the USART using a packet system which I already have working but not doing much= .. - I created an adc_SubModule. - the module will have an 8bit "address" for the moment. - the Sub modules will have also an 8bit "address. - the logical sensor is identified by a number which at this point will be predefined. To start with there will not be configuration on the fly, configuration and initialisation of the ADC will be done at startup and sensors created at the startup too. What I am strugling with is the handling routines, I can get the packet to the module which in turn can pass it to the submodule as a request for data but I am getting a bit bogged down on how the all scheme will work. I found a few papers on how this can be done but nothing that concrete. Any info, links or tips welcomed. Thanks Best Regards Luis --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .