CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

How to drive 2-digit seven-segment display using 16F690 ?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
swapnil



Joined: 15 Dec 2016
Posts: 13
Location: delhi

View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger

How to drive 2-digit seven-segment display using 16F690 ?
PostPosted: Wed Mar 08, 2017 9:43 am     Reply with quote

Dear friend, please help me out to drive two-digit seven-segment display.

For adc 10-bit resolution, 16F690 is suitable for me using 2.5 volt reference. Please suggest the code.
_________________
heroswap1981
temtronic



Joined: 01 Jul 2010
Posts: 9170
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Mar 08, 2017 5:58 pm     Reply with quote

Start with the 1Hz LED program, to confirm you can cut code/compile/burn and run the PIC.

Then decide on which 7 I/O pins will go to your 1s digit, then which 7 for the 10s digit. You can onlydisplay 00 to 99, so really don't need a 10bit ADC.

cut code to display 0...9 on each digit.
cut code to display 00 to 99 on the displays
cut code to read pot on ADC input pin and display on LEDs

note: you will need to translate 0-255 to 00-99
note: be sure to use current limiting resistors on LEDs

this is a start, should take 1-2 days

Jay
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group