Hi,
ich habe von Flowcode4 auf Flowcode5 gewechselt und habe jetzt die gleichen Probleme die ich in der Startphase mit Flowcode4 hatte.
Ich habe zu Testzwecke ein in Flowcode4 geschriebenes USB-Programm für den PIC 18F26J50 mit Flowcode5 übersetzen lassen.
Unter Flowcode5 lässt sich leider der externe Oszillator nicht konfigurieren. Ein 12MHz Quarz an den PIC angeschlossen läuft nur mit 2MHz. Alle Versuche über die "CONFIGURATION REGISTER" führten zu keinem positiven Ergebnis. Die Schaltung läuft ohne Fehler mit dem Flowcode4 Code. Das 12MHz Quarz schwingt auf seiner Sollfrequenz.
Den Fehler in der USB Initialisierung habe ich korrigiert.
Aus meiner Sicht rühren die Probleme daher, dass keine Konfigurationsdaten übertragen werden.
OSCTUNEbits.PLLEN = 1; führt zu einem Fehler
ersetzt durch
set_bit(osctune, PLLEN); korrigiert den Fehler
Meine Einstellungen sind wie folgt:
1. PIC 18F26J50
2. Der "Primary Oscillator" beträgt 12MHz
3. USB Serial
4. Die "CONFIGURATION REGISTER" sind wie unten eingestellt
//Konfigurations-Daten
#ifdef _BOOSTC
#pragma DATA 0x300000, 0x8a
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300001, 0xff
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300002, 0x15
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300003, 0xff
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300004, 0xf5
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300005, 0xf8
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300006, 0xc0
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300007, 0xf1
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
Im Voraus vielen Dank
Probleme mit dem USB (18F26J50 und 18F14K50)
Support-Forum für Deutschsprachige, die in ihrer Muttersprache schreiben möchten.
Moderator: Benj
Return to “Deutsch Support-Forum”
Jump to
- Announcements
- ↳ Announcements
- The Knowledge Exchange
- ↳ Programming Tips & Tricks
- ↳ Freelance Embedded Engineers
- ↳ Article Discussion
- Microcontroller Programming
- ↳ General Programming
- ↳ Flowcode V9
- ↳ Flowcode V8
- ↳ Feature Requests
- ↳ Bug Reports
- ↳ User Components
- ↳ Flowcode V7
- ↳ User Components
- ↳ Feature requests
- ↳ Bug reports
- ↳ Fixed bugs
- ↳ 8-Bit PIC
- ↳ 16-Bit PIC
- ↳ 32-Bit PIC
- ↳ AVR & Arduino
- ↳ 32-Bit ARM
- ↳ Poll Discussion
- ↳ Flowcode V6
- ↳ Flowcode v6 Beta
- ↳ Bug reports
- ↳ Getting Started
- ↳ User Components
- ↳ Feature requests
- ↳ Bug reports
- ↳ Flowcode V5
- ↳ Flowcode V5 Issues
- ↳ Flowcode V5 Suggestions
- ↳ Flowcode V5 Free Edition
- ↳ Flowcode V4
- ↳ Flowcode 4 Bugs
- ↳ Flowcode 4 Suggestions
- ↳ Flowcode V2 & V3
- ↳ General / Misc
- ↳ Components (Comms)
- ↳ Components (Other)
- ↳ Bugs / Application Errors
- ↳ Suggestions
- ↳ BTEC Unit 6
- ↳ C and ASM Programming
- ↳ E-blocks
- ↳ Formula AllCode
- ↳ Formula Flowcode
- ↳ MIAC
- Language Support Forums
- ↳ Deutsch Support-Forum
- ↳ Forums d'aide en français
- ↳ Foro de soporte español
- Other Matrix products
- ↳ Electronics products
- ↳ Matrix Online Courses
- ↳ Other products
- ↳ CoCo
- Hidden