|
發表於 2012-2-11 15:00:38
|
顯示全部樓層
節錄自http://www.parallax.com/tabid/385/Default.aspx
Does the BASIC Stamp module support interrupts?
No, the interpreter chip used in the BASIC Stamp microcontroller does not support interrupts. In many cases, a fast polling routine may be used to accomplish the same effect, however, depending on the number and size of the tasks involved in some applications, this will not be fast enough and the BASIC Stamp microcontroller may not be a plausible solution. While not true interrupts, the BS2p24, BS2p40 and BS2px24 modules support 「polled interrupts.」 The 「polling」 commands allow the BASIC Stamp modules to respond to certain I/O pin events at a faster rate than what is normally possible through manual PBASIC programming. In this case the interpreter periodically checks the state of the designated polled-input pins. It 「polls」 these pins after the end of each PBASIC command and before it reads the next PBASIC command from the user program; giving the appearance that it is polling 「in the background.」
http://www.phanderson.com/stamp/stamp-pic.html
Stamp 2 is the lack of interrupts and lack of a real time clock / counter.
簡單來說,BS2沒有中斷機制,沒有硬體Timer(即使上面的uC有)。
BS2p24, BS2p40 and BS2px24 支援所謂 「polled interrupts."也非硬體的中斷(即便使用的uC有) |
|