Neveth
Newbie level 6
- Joined
- Aug 17, 2009
- Messages
- 11
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Coimbatore, India
- Activity points
- 1,372
hi,
i m a newbie. And i m having trouble on reading and processing adc value for a voltmeter.
i m building a simple digital voltmeter(0-5v) using PIC 16F887, i having trouble on reading the 10bit adc_result and processing the value into 7 segment.
Pls tell me, how can i read 10bit(ADRESH:ADRESL), what is the data type should i use ? float, integer ? how to convert them into corresponding 7 segment value ?
i ve tried some sample code's available on net, but nothing worked well !
i m using Hi-Tech C complier.
Thanks in advance....
i m a newbie. And i m having trouble on reading and processing adc value for a voltmeter.
i m building a simple digital voltmeter(0-5v) using PIC 16F887, i having trouble on reading the 10bit adc_result and processing the value into 7 segment.
Pls tell me, how can i read 10bit(ADRESH:ADRESL), what is the data type should i use ? float, integer ? how to convert them into corresponding 7 segment value ?
i ve tried some sample code's available on net, but nothing worked well !
i m using Hi-Tech C complier.
Thanks in advance....