RANDOM and 12F683 - generates same values each time


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,158


    Did you find this post helpful? Yes | No

    Default Re: RANDOM and 12F683 - generates same values each time

    Tested the above code. On power up, it gives 3 and 6 on 16f870 and 2 and 4 on 12f683, same results on each power up.

    however, if I place it in the loop, results on 16f870 are changing, while on 12f683 they remain 2 and 4.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: RANDOM and 12F683 - generates same values each time

    Hi,
    OK, the fact that you don't get the exact same sequence from the two devices could possibly (I don't know) come from the different instruction width (12 vs 14 bits) between the two. But why the 12F683 doesn't continue the sequence when the routine is looped is beyond me.

    /Henrik.

Similar Threads

  1. Adding values one at a time and sending them serially
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st August 2013, 15:56
  2. Why does this PBP statement post the wrong time values?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2011, 04:10
  3. DS1904 RTC - How to Convert Binary Time into Real Time/Date?
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 2nd December 2010, 11:45
  4. LCDOUT generates errors.
    By PICante in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th September 2009, 18:58
  5. Linx RF -> HSERIN time delay / time critical app...
    By batee in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th October 2004, 16:04

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