RTC Problem


Closed Thread
Results 1 to 3 of 3

Thread: RTC Problem

  1. #1
    Join Date
    Feb 2006
    Posts
    89

    Default RTC Problem

    I used the schematic just as Sayzer had said. The input buttons work fine but once I finish the last step, the lcd shows 00:00:00 00/00/00. I am using PBP with a 16f876a with a 20 mhz oscilator. Here is the code and schematic (please forgive it, it was done in paint). in the original schematic, a 16f628a was used to interface with the DS1302. RB1 and RB2 were used as clk signal and I/O per the datasheet. Since I am using the 16f876a, it has three pins for the spi bus, clk, in , out. Also, the buttons are touchy, is there anyway to make them less sensitive. I appreciate and help. Thanks
    Attached Images Attached Images  
    Attached Files Attached Files

  2. #2


    Did you find this post helpful? Yes | No

    Default cheatin' with buttons

    If your pin has a schmidt trigger input (check the chip spec), you can try debouncing switches by adding a .01uF-.1uF cap between the pin and ground.

    -----------------Picster----------------

  3. #3
    Join Date
    Feb 2006
    Posts
    89


    Did you find this post helpful? Yes | No

    Default Nevermind

    Sayzer, it works great. Bruce helped me out. I still had the A/D on pins RA0-RA2. That was the problem. Thanks for all the help. I put caps 0.1uF caps on the buttons and it helped a little. Once again, thanks.

Similar Threads

  1. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  2. PIC 16F877 I2C communications
    By sigmoideng in forum General
    Replies: 7
    Last Post: - 13th July 2007, 10:28
  3. 8583 rtc date problem
    By crazyhellos in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th February 2007, 15:28
  4. X1226 RTC - Help
    By charudatt in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th August 2006, 17:54
  5. RTC date problem
    By Peder in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th January 2006, 12:33

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts