このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Pascalite 金物類/武器類: 反対する HOME - - - - - - - - - Other 構成要素 for programmers - - - - - - - - - Pascalite, "How To Use It" main page

Pascalite 金物類/武器類: 反対する


The 反対する



The に引き続いて assumes you've got your Pascalite 始める,決める up and working. If it gives you what you want, 広大な/多数の/重要な. Be advised, however, that this page is subordinate to others. Visit my Pascalite, "How To Use It" main page if you (機の)カム drectly here and there are things "行方不明の".




(You can show numbers on the LCD if you have one, but the に引き続いて programs will also send at least part of every number to the four LEDs for those of you without an LCD 陳列する,発揮する.)

The Pascalite has a 反対する. Unless you've met 反対するs before, you may not realise how clever this little 施設 is. Read on! It is very useful! To make sure it is working....

Connect a momentary switch to the 反対する input (Pins 1&2 on the Pascalite 加える). Connect the other 味方する of the switch to GND. Also connect the 反対する input to an 18K resistor. (Other values would do... c. 5k 最小限, 50k max). Connect the other 味方する of the resistor to 5v. In other words, do again almost what you did for IntTut2.

program IntTutCount;
var bNum:byte;

手続き NumToLCD(bTmp:byte);
begin
(As in IntTut4)
end.

begin
def_out(d0,d1,d2,d3);
令状(LCD,255); {(疑いを)晴らすs LCD}
令状(反対する,0);
repeat
read(反対する,bNum);
NumToLCD(bNum);
令状(portd,bNum);
延期する(100);
until 4=5;
end.



When you start the program, it should 陳列する,発揮する "00". Each time you 圧力(をかける) the switch connected to the 反対する, the 生産(高) should go up by 1. (Don't be alarmed if it goes up by more than one. See below.)

Why is the 反対する so 冷静な/正味の? It counts inputs even when the 加工業者 is doing other things. See also the interrupt handler, which 原因(となる)s a 手続き to run every time the 反対する reaches its 最大限 value (255). If the 反対する then receives another pulse, it rolls over 支援する to 無.

Now... I について言及するd above that the 反対する may go up by more than one each time you 圧力(をかける) the button. This is because mechanical switches are imperfect. As they open or の近くに, they いつかs make and break the 関係 several times befor the 終結 or opeing becomes "final". You won't usually be counting 圧力(をかける)s on a mechnical switch. Use google to find out about "de-bouncing" if you need help here.
To search THIS 場所/位置.... (Go to the 場所/位置's above, and use their search buttons if you want to seach them.)... Way to search this 場所/位置 without using forms
Search this 場所/位置 or the web 力/強力にするd by FreeFind

場所/位置 search Web search

広告 from page's editor: Yes.. I do enjoy 収集するing these things for you... hope they are helpful. However.. this doesn't 支払う/賃金 my 法案s!!! If you find this stuff useful, (and you run an MS-DOS or Windows pc) please visit my freeware and shareware page, download something, and 循環させる it for me? Links on your page to this page would also be 高く評価する/(相場などが)上がるd!
Click here to visit editor's freeware, shareware page.

Link to editor's (Arunet) homepage
How to email or 令状 this page's editor, Tom Boyd