Programming of built in timer of arduino

OP #7268773
Lesenswert?
• ▲
▼
Hello Everyone ,
I am new to programming in IDE. I am using built-in timer of arduino.I 
am using TDR method to capture reflection from fault location in cable 
and for that I am using timer.Timer should start as soon as output is 
send and stop at reflection. I have a reference code for it but I dont 
able to understand it, so if anyone know about it , it would be great.I 
have attached the code for it.
Thank you
Angehängte Dateien:
Gast #7296535
Lesenswert?
• ▲
▼
In your example there is code that directly uses the hardware without 
help of Arduino functions. This results in being bound to one kind of 
microcontroller. So this software won't run on all Arduinos. Looks like 
its for ATmega328P, which is used in NANO, UNO and MINI, but not in 
the DUE.

If you like to understand, what's going on there, you should download 
the complete datasheet of the ATmega328P from the microchip website and 
study the chapter about the timer used in your code in detail.

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.