If you are just trying to implement a clock (no calendar) and that is all your system is going to do... skip the RTC (Real Time Clock) IC and refer to Microchip Application Note AN590 (see www.microchip.com) which implements a clock in a 16c54. Although I haven't looked at the code, I can see no good reason why it shouldn't work in an '84 with minor modification. The only exception is that you have less I/O so you will have to get fancy with the switch inputs, multiplexing I/O in some way. Refer to AN529 'Multiplexing LED Drive and a 4*4 Keypad Sampling' for some hints. -----Original Message----- From: Bonassina Ivano To: PICLIST@MITVMA.MIT.EDU Date: Tuesday, December 16, 1997 11:01 AM Subject: CLOCK-CALENDAR ... PCF8583 ... PIC CODE ? >Someone can help me to find an ASM code for PIC ( 16C84 in better ) to >realize, like an hobbiest, a simple and normal CLOCK ? >Thanks in advance. >Bye Ciao