17.11.2012 Aufrufe

steht die TNT als PDF zum Download - ISI-Design

steht die TNT als PDF zum Download - ISI-Design

steht die TNT als PDF zum Download - ISI-Design

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

Application Briefs<br />

LIST p=16F877 ;<br />

PIC16F877 Controller<br />

#include <br />

___CONFIG _CP_OFF &<br />

_WDT_ON &<br />

_BODEN_ON &<br />

_PWRTE_ON &<br />

_RC_OSC & _WRT_ENA-<br />

BLE_ON & _LVP_ON &<br />

_DEBUG_OFF &<br />

_CPD_OFF<br />

Beim Kompilieren wird <strong>die</strong>seKonfigurationseinstellung<br />

- <strong>die</strong> natürlich angepaßt<br />

werden kann - in den<br />

Hex-Code und in das geöffnete<br />

Windows-Fenster<br />

„Configuration Bits“ übernommen.<br />

Diese Vorgehensweise<br />

empfiehlt sich<br />

besonders nach Abschluß<br />

der Entwicklung für <strong>die</strong> Serienprogrammierung.<br />

Selbstverständlich können<br />

trotzdem Änderungen der<br />

Konfiguration im Fenster<br />

„Configuration Bits“ vorgenommen<br />

und in <strong>die</strong><br />

Programmierung übernommen<br />

werden.<br />

2. Einstellung der Konfigurationsbits<br />

(fuses) per Windows-Fenster„Configuration<br />

Bits“,<br />

z.B. PIC16F877<br />

Da bei jedem neuen Kompilieren<br />

<strong>die</strong> Konfigurationseinstellung<br />

in das geöffnete<br />

Windows-Fenster „Configuration<br />

Bits“ übernommen<br />

wird, empfiehlt es sich, für<br />

<strong>die</strong> Entwicklung <strong>die</strong> Direktive<br />

_CONFIG,<br />

<strong>die</strong> sich aus dem Template-<br />

File ergibt, durch einen<br />

Strichpunkt auszublenden.<br />

;___CONFIG _CP_OFF &<br />

_WDT_ON &<br />

_BODEN_ON &<br />

_PWRTE_ON &<br />

_RC_OSC & _WRT_ENA-<br />

BLE_ON & _LVP_ON &<br />

_DEBUG_OFF &<br />

_CPD_OFF<br />

Dadurch kann <strong>die</strong> Konfiguration<br />

bequem durch das<br />

Windows-Fenster „Configuration<br />

Bits“ geändert und<br />

gleichzeitig der Source Code<br />

verändert und kompiliert<br />

wird. Eine versehentliche<br />

Überschreibung der aktuellenKonfigurationseinstellung<br />

im Windows-Fenster<br />

ist somit ausgeschlossen .<br />

LIST p=16F877 ;<br />

PIC16F877 Controller<br />

#include <br />

___CONFIG _CP_OFF &<br />

_WDT_ON &<br />

_BODEN_ON &<br />

_PWRTE_ON &<br />

_RC_OSC & _WRT_ENA-<br />

BLE_ON & _LVP_ON &<br />

_DEBUG_OFF &<br />

_CPD_OFF<br />

During compilation this<br />

configuration setting –<br />

which of course can be adjusted<br />

– will be taken over<br />

into the Hex code and the<br />

currently open Windows<br />

“Configuration Bits”window.<br />

This procedure is<br />

especially recommended<br />

for series programming,<br />

after the design has been<br />

completed. Naturally changes<br />

to the configuration can<br />

nevertheless be implemented<br />

within the “Configuration<br />

Bits” window and taken<br />

over to the programming.<br />

2. Setting the configuration<br />

bits (fuses) via Windows<br />

“Configuration Bits” window,<br />

e.g. PIC16F877<br />

As during each compilation<br />

process the configuration<br />

settings are taken over into<br />

the open “Configuration<br />

Bits” window, we recommend<br />

to blind out the Direktive<br />

_CONFIG, which arises<br />

from the template file, by a<br />

semicolon.<br />

;___CONFIG _CP_OFF &<br />

_WDT_ON &<br />

_BODEN_ON &<br />

_PWRTE_ON &<br />

_RC_OSC & _WRT_ENA-<br />

BLE_ON & _LVP_ON &<br />

_DEBUG_OFF &<br />

_CPD_OFF<br />

Therefore the configuration<br />

can be changed easily<br />

using the "Configuration<br />

Bits" window, while the<br />

source code is simultaneously<br />

changed and compiled.<br />

The danger to accidentally<br />

overwrite the current<br />

configuration settings<br />

within the window thus is<br />

eliminated.<br />

Home<br />

Previous Next

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!