B4X FEED Simple interrupt in B4R

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Simple interrupt in B4R است. این موضوع تا کنون 71 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Simple interrupt in B4R
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
71
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,517
4,383
I have a C++ app running on an Arduino Nano which has at its core a fast A/D read triggered by a pin interrupt. So, a shaft running at around 3000rpm has a sensor which triggers the interrupt every revolution. I then need to save the time this occurs and then do several hundred fast A/D converter reads of each of two other sensors, noting the time of each read. The values are saved for later use.

Sensing the interrupt is the only time critical job. Since I need better than one degree of resolution, the interrupt latency variation cannot exceed 28uS, which it appears I cannot achieve with the polled mechanism in B4R. Note, I can calibrate out the interrupt latency but I must have a latency variation of less than 28uS.

The A/D is read as fast as possible for many revolutions and the data stashed away. After enough revolutions there is data for every degree of position. If not it doesn't matter because it is all done again the next time the interrupt is enabled at which time the...



 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا