| Creating a Digital Clock using PIC16F877A, LCD and DS1337 Clock IC from Dallas To make LCD display real time clock and date, we need the following: 1. PIC16F877A microcontroller 2. LCD 3. DS1337 real time clock IC DS1337 is connected to the PIC16F877A as shown below. Pin 18 and 23 on the PIC16F877A were used. LCD is connected to Port B of the PIC16F877A. CCS C compiler already included the driver file for LCD function. Just call this driver and connect the LCD to the PIC. The LCD will immediately work even without clear understanding how the LCD displayed the character. LCD Connection Normal LCD have 16 pin. 8 pin for data and 8 pin for other use. Connect the LCD pin to PIC Port B as below. LCD pin consists of Enable pin, RS pin, RW pin, D4,D5,D6 and D7. // B0 enable // B1 rs // B2 rw // B4 D4 // B5 D5 // B6 D6 // B7 D7 // // LCD pins D0-D3 are not used and PIC B3 is not used. The LCD Display should display the Time and Date. Time Date 09:30:21 17/12/2005 Next Page >> |