convert from binary to int

General discussion on mikroC.
Post Reply
Author
Message
veljovic
Posts: 10
Joined: 11 Mar 2012 02:59

convert from binary to int

#1 Post by veljovic » 25 Apr 2012 12:10

Hi,

I have analog value:
adc_rd = ADC_Read(1); // get ADC value from 1st channel

How I can convert this value to int or char ? Which function is
for that in mikroC PRO for PIC ?
I must write this value to LCD.


Ivan

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: convert from binary to int

#2 Post by janko.kaljevic » 26 Apr 2012 10:37

Hello,

Return value of this function is unsigned int, and it represents number of samples that were measured on ADC.

You can check our conversion library, and there you will find functions with explanations, so you can choose appropriate function for your needs.

Best regards.

Post Reply

Return to “mikroC General”