Subject: Re: [PIC]: Pic Basic Pro / Pic 16f818 Problem > Larry, > I believe your problem is the following line: > RND=TMR0 I have suspected that line for a while for the reasons you give below. > > You declare RND as a word (16bits) and then try to fill it with TMR0 which is a byte (8bits). I believe the programs hangs up waiting for the other 8 bits then resets via the watchdog. Try using TMR1. It's 16 bits. I will look into that. I have had some info off list that may do the job without using any timers or random number generator so I am going to give that a try first as it may be a much easier option. Thanks for your help. Larry -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics