Thread: Counter chips
View Single Post
  #5   Spotlight this post!  
Unread 09-02-2003, 23:31
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
Ohhhh... you already thought of that.. lol. yeah,im great at interpreting this stuff..

What we did was hook the 555 into one of the digital inputs and just stuck this into the main program loop..

timer_in VAR rc_sw1
timer VAR byte
last_time VAR misc_varible.bit0


if timer_in <> last_time then
timer = timer + 1
last_time = timer_in
endif

Hmm.. im sure you can do that in a PIC too somehow..
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}

Visit my completely useless website! http://randomperson.cjb.net