I'm really a beginner with programming so I need some technical advise on this matter. I'm trying to build a system such that when a person enter some parameter values in a C program, it will determine a voltage that would be applied to a load. I'm guessing that the data would be transmitted to a microcontroller for the control of the voltage across the load resistor. The voltage is a DC voltage and Pulse Width Modulation would be used to get the desired DC voltage. Having these problems, I'm still uncertain whether a computer in Windows environment can talk to a microcontroller through RS232. I've talked to some computer guru and they told me that in Windows the C compiler will never be able to talk to a hardware directly. It must go through some API or something (I really don't know what he means by that!). Is that true or are there some ways to work around it? Is using C under Windows a wise choice?
My project is quite simple, the computer program will do some math to determine the DC voltage across the load, then tell the microcontroller what the DC value of the voltage should be and the microcontroller set the output voltage to that value. So hopefully, some kind person would be able to help me out with this.
Thank you very much.
0 · ·