Thanks for the reply. Actually, I got the displaying the digits thing all set. The display chip is quite handy as it handles all the multiplexing of the digits. Just have to send it what digit to update and then the micro can go do what ever else it needs to do. To rephrase the question , I need to know how to set a certain number of bits in a byte or word variable. For instance if the byte is %00011111, how would I easily set the first 5 bits to on? Since this part of the display shows the bargraph I need to make sure if led 5 is on, so are all the other led's (0-4).
As far as the formula part goes if anyone is following along, I decided Im just going to have to pass in an upper and lower bound to the micro to tell it how to scale the bargraph. So I will just send in an Upper bound of 260, and a lower bound of 100 for the temp display, and then the micro can subtract the lower from the upper and divide by 16.
Resolution = (Upperbound - lowerbound)/16
I know this will give me a resolution of 10 degrees for each LED. Im VERY tired and probably need to sleep.. just cant seem to get the rest of it.
Bookmarks