home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.energy.homepower      Electrical part of living of the grid      2,576 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 932 of 2,576   
   Jim Wilkins to Curbie   
   Re: 1kW $50 E-Cat ?   
   30 Jan 12 19:06:54   
   
   From: muratlanne@gmail.com   
      
   "Curbie"  wrote in message   
   news:io9ei757hpr2m3boi2sg06pn939rr0p45q@4ax.com...   
   > Jim.   
   >   
   > I just do it in software, also illustrates the use of a timing   
   > variable.   
   >   
   > Curbie   
   >   
   > buttonState = newbuttonState;   
   > [20mS timer expires]   
   > newbuttonState = readButtons();   
   > if (newbuttonState == buttonState) {   
   > }   
      
   Thanks, that's nice and logical. I suppose if I had to use 55mS PC system   
   clock ticks for the delay I would have to check that TIMER had incremented   
   twice to guarantee that I didn't sample the buttons just before and just   
   after a ~20uS tick interrupt.   
      
   jsw   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca