Set the starting time with ds1302 picbasic


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    That doesn't look like PicBasicPro to me...

    Code:
    Dim rtcyear as     byte
    Dim rtcday  as     byte
    Dim rtcmonth as    byte
    Dim rtcdate as     byte
    Dim rtchr   as     byte
    Dim rtcmin  as     byte
    Dim rtchr1   as     byte
    Dim rtcmin1  as     byte
    Dim rtcsec  as     byte
    Dim rtccontrol as  byte
    dim b0 as byte
    dim b1 as byte
    Delayms 100    ' Wait for LCD to startup
    print at 3,1, dec2 rtchr, ";", dec2 rtcmin		
    Shout IO,SCLK,LSBFIRST,[$8e,0]		' Enable write
    Shout IO,SCLK,LSBFIRST,[$be,rtcsec,rtcmin,rtchr,rtcdate,rtcmonth,rtcday,rtcyear,0]
    Maybe you should try the correct forums...

  2. #2
    Join Date
    Sep 2008
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    ohh...its basic plus but doesn't change so much!!!the program logic is the same..so....if you aren't able to make that simple conversione...doesn't matter!!!

  3. #3
    Join Date
    Sep 2008
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    thank you so much guys but i've solved!!! i've created a special routine that convert data and send it to ds!!

    than if you want you can close!!!


    bye bye see ya

Similar Threads

  1. RC Servo decoding/encoding using 12F683
    By ScaleRobotics in forum Code Examples
    Replies: 13
    Last Post: - 14th September 2010, 00:49
  2. INT2 anomaly in DT_INTS-18??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th February 2010, 20:07
  3. DS1302 16F628 Woes
    By idtat in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th January 2009, 14:15
  4. Working with indivividual bytes of an array
    By J_norrie in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd January 2007, 19:16
  5. How to set external clock source in PBP
    By TurboLS in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 19th February 2005, 15:56

Members who have read this thread : 0

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