> Bob > I've moved the cs activation code before the pulse code. > I am confused here? Do I add the Label srupdate or come up with some code to > update the srlo and sr hi registers. The later. You'll need code to convert from hours/minutes/seconds to whatever you have to send to the Max7219. Hold ona sec... I'll go look up the 7219 datasheet and give you more details... Ah.... The 7219 is a pretty smart beast. Here are the steps you'll have to perform, which are non-trivial: (1) Set the 7219 up in 'decode mode' so you don't have to figure out exactly what segments to turn on in your own code. This can be done at program start up, or to make sure it doesn't get corrupted, on a periodic basic. (2) Convert the values of hours/minutes/seconds to the values/commands that need to be sent to the 7219. This will involve converting from the internal binary format, to BCD. I would probably make this simpler by changing the way I keep time to keep each digit in a separate register: ie: sec1 (units of seconds), sec10 (tens digit of seconds), min1, min10, hour1, hour10. (3) You will need to convert the code that writes to the Max into a subroutine, because you'll need to call it repeatedly to output all the digits. I know that sounds a bit overwhelming, but you should start tackling it a bit at a time. First, I'd recommend modifying your counting code to keep each digit in a separate values as described in (2) above. When you think you have that right, post back to thelist. Bob Ammerman RAm Systems -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu