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

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren