
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
Hallo Olaf Das Timer-Interface-Module (TIM) des Kontrollers bietet die Input-Capture-Funktionalität. Damit kann man unter anderem die Breite eines Impulses bestimmen. In den Interrupt des TIMs kann man ein Assemblermodul einbinden und dessen Meßergebnis in BASIC weiterverarbeiten. Hier ein Zitat aus dem Kontroller-Manual: With the input capture function, the TIM can capture the time at which an external event occurs. When an active edge occurs on the pin of an input capture channel, the TIM latches the contents of the TIM counter into the TIM channel registers, TCHxH:TCHxL. The polarity of the active edge is programmable (rising-edge, falling-edge, or any-edge input capture trigger). Input captures can generate TIM central processor unit (CPU) interrupt requests. Viele Grüße Dietmar Meine Homepage: http://ccintern.dharlos.de |
| Antwort schreiben |