>....voltage_HB1 and voltage_HB2 are voltages that I get from the A/D- >module. At the end I have to show the voltage on a LCD- Display. But the >display shows always the wrong value. Now, I don=B4t know, if the proble= m is >about the variable "voltage", because I don=B4t know what happens, if >voltage_HB2 is greater then voltage_HB1? But maybe the problem is caused= by >another thing! I suspect your problem is that you are using "float" to describe the valu= e from the ADC, when it should be "integer". If it is not properly type cas= t then you will end up with funny things happening. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics