
it reaches 100, it is reset back to 0. The loop is repeated after a 1 second delay
between each output value. The displayed data is:
012345678910... 98 99 0 1 2 ...
Function out2_til311 receives the data to be displayed (x) as its argument. This
data is then divided by 10 and assigned to integer variable msd and is the data
for the MSD display. The LSD data is calculated by subtracting 10*msd from
input variable x and then assigning this to an integer variable named lsd. The
top 2 bits of msd data are set to 1 by logical ORing the msd data with
hexadecimal constant 0xC0. This freezes both displays and avoids any
unwanted changes in the displayed data. ...