1-wire PD Kit - Plattform MSP430 Compiler IAR

Gast #259992
Lesenswert?
• ▲
▼
A Note On Portability

All of the platform-specific code in the Public Domain Kit is organized
into just a few files ("TODO" templates) for easy porting to different
platforms. These files represent the lowest level of the API that is
hardware-dependent. As long as these few files are coded correctly, the
rest of the API (and sample apps), should compile and run nicely. There
are two standard ways to code the lowest level of the API. The first is
called "general" and the second is called "userial". The general
build requires an implementation of the primitive link-level 1-Wire
communication functions. The "userial" build assumes that the user
has a serial port (RS232) and wishes to utilize Dallas Semiconductor's
'Universal Serial 1-Wire Line Driver Master Chip' called the DS2480B.
This chip receives commands over the serial port, performs 1-Wire
operations and then sends the results back to the serial port. The
source code converts the intended 1-Wire operations into serial
communications packets to the DS2480B. The only thing that needs to be
provided for a userial platform are the serial port read/write
primitives. Dallas Semiconductor sells several DS2480B-based serial
adapters, such as the DS9097U-009, DS9097U-S09, DS9097U-E25 or DS1411.
A third category of implementation "other" provides the standard
1-Wire Public Domain base API but may diverge in its implementation of
this API by taking advantage of particular system or adapter features.

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.