Forum: Mikrocontroller und Digitale Elektronik Timerstand bei PWM auslesen


Announcement: there is an English version of this forum on EmbDev.net. Posts you create there will be displayed on Mikrocontroller.net and EmbDev.net.
von Tom (Gast)


Lesenswert?

Hallo,

kurze Frage.

Ich hab ein PWM Signal, das wie folgt initialisiert wird:

  TCCR4A = (1<<COM4B1) | (1<<WGM41);
  TCCR4B = (1<<WGM43) | (1<<WGM42) | (1<<CS40) | (1<<CS42);

  ICR4 = OCR4B_VAL;
  OCR4B = OCR4B_VAL;



Gibt es eine Möglichkeit den aktuellen Stand des Timers abzufragen?

Grüße
von Tom (Gast)


Lesenswert?

Sorry, habs jetzt doch gefunden

TCNT4 müsste es sein
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.