Random seed using the ds1307 RTC


Results 1 to 8 of 8

Threaded View

  1. #7
    Join Date
    Oct 2007
    Location
    Vancouver, BC, Canada
    Posts
    33


    Did you find this post helpful? Yes | No

    Default

    Base on Darrel code, this line >>> Scale CON MaxCnt - MinCnt << should be Scale CON MaxCnt - MinCnt +1, so the maximum range will be reached.

    Thanks Darrel.

    I also attached a little file making a set of 6 random numbers range from 10 to 30 based on Darrel code.
    Attached Files Attached Files
    Last edited by KVLV; - 25th November 2007 at 11:31. Reason: commented out some code

Similar Threads

  1. DS1307 RTC example
    By malc-c in forum Code Examples
    Replies: 13
    Last Post: - 12th November 2012, 20:56
  2. 16F628 and an RTC DS1307
    By aurbo in forum General
    Replies: 2
    Last Post: - 7th March 2011, 23:06
  3. PIC 16F877 I2C communications
    By sigmoideng in forum General
    Replies: 7
    Last Post: - 13th July 2007, 11:28
  4. Random number seed
    By kwelna in forum mel PIC BASIC
    Replies: 10
    Last Post: - 1st February 2007, 18:33
  5. X1226 RTC - Help
    By charudatt in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th August 2006, 18:54

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