|
|
ME Labs, Inc. | 1-719-520-5323 | Example Program - RTCX.pbp
PICBASIC PRO program for LCD clock using the
Dallas 1202/1302 RTC ICs.
63 | Shiftout IO, SCLK, LSBFIRST, [$8e, 0] |
68 | Shiftout IO, SCLK, LSBFIRST, [$be, rtcsec, rtcmin, rtchr, rtcdate, rtcmonth, rtcday, rtcyear, 0] |
75 | Shiftout IO, SCLK, LSBFIRST, [$bf] |
76 | Shiftin IO, SCLK, LSBPRE, [rtcsec, rtcmin, rtchr, rtcdate, rtcmonth, rtcday, rtcyear, rtccontrol] |
85 | Lcdout $fe, 1, hex2 rtcmonth, "/" , hex2 rtcdate, "/" , hex2 rtcyear,_ |
86 | " " , hex2 rtchr, ":" , hex2 rtcmin, ":" , hex2 rtcsec |
Download the program file.
|