So I am trying to write a function for a code in C language, im working on. Im trying to input values for voltage coming out of a wall outlet, through an input pin on my DLP- 2232MSP microcontroller, into a buffer, and then i need to output them across a UART. I have attached a fragment of the code I have done. Not sure if it works, but just to give you an idea of what im trying to do.
data sheet for the chip i am using can be found here: http://www.dlpdesign.com/usb/dlp2232msp-v11-ds.pdf

WhatsApp us