Beware of having him measure the baud rate of a command in clock cycles. Without any reference of time I would say it is impossible. Doug Butler Sherpa Engineering > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of John Nall > Sent: Tuesday, May 06, 2003 9:24 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: [PIC]: Can it be done??? > > > A friend of mine, who is a very experienced programmer, but knows nothing > about PIC's (at least I don't think he does) has offered to make > a bet with > me as follows: He is willing to bet, any amount I want to name, that he > can write a program which can figure out the clock speed of the > computer it > is running on. > > To rephrase it, he thinks that he can figure out, in software, the number > of MIPS of the machine he is running on. > > Since he is used to machines that have operating systems, with system > clocks and that sort of thing available to users, he might be > able to do it > on those. But I do not think there is any way whatsoever on a PIC to do > this. (No peripherals -- just the raw chip running, with his program). > > However, he is very experienced, and I have lost bets with him before. So > even thought it seems to me to be a sure thing, I am a bit hesitant to > bet. Can any of you experts think of a way to do this???? > > John > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu