Search found 33 matches

by PIC-Speed32
Tue Oct 30, 2012 7:17 pm
Forum: Flowcode V5
Topic: PIC18F46K80 ADC reference selection error
Replies: 0
Views: 1524

PIC18F46K80 ADC reference selection error

Hello User, I still have the ongoing problem with this V5 and CHIP. In my opinion, the fault lies in BoostC compiler. First mistake: If I put the PIN AN6 to 0V indicated 4.99. There are a few millivolt the display jumps to 0.00. Second error: The ADwandler should take the 5 volt supply to the chip a...
by PIC-Speed32
Sat Oct 27, 2012 10:45 am
Forum: Deutsch Support-Forum
Topic: PIC18F46K80 AD Referenzauswahlfehler
Replies: 0
Views: 7269

PIC18F46K80 AD Referenzauswahlfehler

Hallo User, ich habe immer noch das ungelöste Problem mit V5 und diesem CHIP. Nach meiner Meinung liegt der Fehler im BOOSTC Kompiler. Erster Fehler: Wenn ich den PIN AN6 an 0V lege wird 4,99 angezeigt. Sind es ein paar millivolt springt die Anzeige auf 0,00. Zweiter fehler: Der ADwandler soll die 5...
by PIC-Speed32
Thu Oct 25, 2012 9:11 am
Forum: Flowcode V5
Topic: PIC18F46K80 ADC Config Adcon1 in C-Code
Replies: 10
Views: 7255

Re: PIC18F46K80 ADC Config Adcon1 in C-Code

ADC PIC18f46K80

Sent: Thu Oct 25, 2012 8:09 am
From: PIC-Speed32
To: Benj
hi Benj.
sorry I'm writing again
is there a solution?
I have not heard anything.
Please see (viewtopic.php? f = 40 & t = 11366)
I have made new measurements.
The PIC is not set correctly

Sincerely
Uwe
by PIC-Speed32
Tue Oct 23, 2012 5:09 pm
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hallo alle, ich glaube der Fehler liegt in der Konfiguration des PIC. Der PIC hat 2 Referenzspannungen. 2,048V und 4,096V. Ich glaube, der PIC ist auf 4,096V eingestellt. Bei 0Volt am Eingang misst er 4,99V. Bei 12mV am Eingang misst er 0,00V. Bei 3,98V am Eingang misst er 4,02V Bei 4,4V am Eingang ...
by PIC-Speed32
Tue Oct 23, 2012 8:13 am
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hi Benj,

ich teste heute mal nur den Analogeingang.
Die Datei schicke ich Ihnen.

Mit freundlichem Gruß
Uwe


Hi Benj,

I test today times the analog input only.
I'll send you the file.

Sincerely
Uwe
by PIC-Speed32
Wed Oct 17, 2012 4:03 pm
Forum: Flowcode V5
Topic: PIC18F46K80 ADC Config Adcon1 in C-Code
Replies: 10
Views: 7255

Re: PIC18F46K80 ADC Config Adcon1 in C-Code

Hi Benj,
in Main
Macro is measured in the ADC call.
Prozent_Wert in the output.

Sincerely
Uwe
by PIC-Speed32
Wed Oct 17, 2012 10:31 am
Forum: Flowcode V5
Topic: PIC18F46K80 ADC Config Adcon1 in C-Code
Replies: 10
Views: 7255

Re: PIC18F46K80 ADC Config Adcon1 in C-Code

Hello Benj.

Here a file can help.
The software reads only once the ADC port.
I hope this helps.

Sincerely
Uwe
by PIC-Speed32
Tue Oct 16, 2012 5:40 pm
Forum: Flowcode V5
Topic: PIC18F46K80 ADC Config Adcon1 in C-Code
Replies: 10
Views: 7255

Re: PIC18F46K80 ADC Config Adcon1 in C-Code

Hi Benj,

again.
I had changed the file already.
I had (TYPE 28) copies to (TYPE 32).
This was the same result.

Can make the compiler a mistake?

Sincerely
Uwe
by PIC-Speed32
Tue Oct 16, 2012 5:30 pm
Forum: Flowcode V5
Topic: PIC18F46K80 ADC Config Adcon1 in C-Code
Replies: 10
Views: 7255

Re: PIC18F46K80 ADC Config Adcon1 in C-Code

Hi Benj,

my main problem is still present.
At 0 V input voltage to get 4.99 Displayed.
That was the reason to test it with Microbesic Pro.
Micro Basic shows here really to 0.

Therefore, I know that my hardware is ok.
There is still a bug.

Sincerely
Uwe
by PIC-Speed32
Mon Oct 15, 2012 7:25 am
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hallo alle. Ich habe in PICBasic Pro (Mikroelektronika)den Analogeingang abgefragt. Diese Software macht es richtig. Das heist, meine Hardware ist richtig aufgebaut. Ich habe mal die Beschreibungsdatei des PIC angehängt. Ich hoffe das hilft. Mit freundlichem Gruß Uwe Hello all. I queried in PICBasic...
by PIC-Speed32
Sat Oct 13, 2012 11:21 pm
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Noch eine Frage: Vom PIC18f46K80 gibt es eine Version mit 40 PIN und 44 PIN Gehäuse. Die FCD Datei ist für die 40PIN Version. Ich benutze die 44 PIN Version. Die Belegung der PINs ist komplett unterschiedlich. Gibt es keine 2 unterschiedlichen FCD Dateien ? Kann dadurch der Fehler kommen, das ich 4,...
by PIC-Speed32
Sat Oct 13, 2012 8:39 am
Forum: Flowcode V5
Topic: PIC18F46K80 ADC Config Adcon1 in C-Code
Replies: 10
Views: 7255

Re: PIC18F46K80 ADC Config Adcon1 in C-Code

Hi, I have a problem. First The PIC18F46K80 has 12 bit analog inputs. In PIC_Cal_ADC_c for this PIC family only 10 and 8 is provided. (As far as I understand it) Second The PIC has differential inputs as analog input. That means it can directly measure the voltage between 2 analog inputs. Here come ...
by PIC-Speed32
Sat Oct 13, 2012 8:36 am
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hallo, habe noch ein Problem. 1. Der PIC18F46K80 hat 12Bit Analogeingänge. In der PIC_Cal_ADC_c ist für diese PIC Familie nur 10 und 8 vorgesehen.(Soweit ich das verstehe) 2. Der PIC besitzt Differenzeingänge als Analogeingang. Das Heist er kann direkt die Spannungswerte zwischen 2 Analogeingängen m...
by PIC-Speed32
Fri Oct 12, 2012 7:44 pm
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hi Benj, is this ok? // ADC Type 32 Supported Devices *********************************************************** // 18F2xK80, 18F4xK80, 18F6xK80 // *****************************************************************************************/ #ifdef MX_ADC_TYPE_32 void FC_CAL_Enable_ADC (MX_UINT8 Chann...
by PIC-Speed32
Fri Oct 12, 2012 3:46 pm
Forum: Flowcode V5
Topic: Simulation (RS232 component)
Replies: 2
Views: 2388

Re: Simulation (RS232 component)

Hello Benj.

exactly what it was.

Thank you very much

Uwe
by PIC-Speed32
Fri Oct 12, 2012 11:05 am
Forum: Flowcode V5
Topic: Simulation (RS232 component)
Replies: 2
Views: 2388

Simulation (RS232 component)

RS232 simulation component In the project, I have two (RS232 ports). RS232 (0) is used. RS232 (1) is not being used. In the panel I have the (UART1 and UART2) replaced more often. When I turn on the simulation, always RS232 (0) disappears. No matter if selected (UART1 or UART2) After the simulation,...
by PIC-Speed32
Fri Oct 12, 2012 8:38 am
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hallo Jojo1981,

das Überschreiben ist weg, soweit ich es getestet habe.


Danke und Gruß Uwe
by PIC-Speed32
Fri Oct 12, 2012 8:22 am
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hi, habs selbst gefunden. Das Xinst bit wird unter Projekt-Optionen Konfiguriere Chip Extendet Instruction Set Disablet. Unten rechts im Fenster, geht dann Config1L von 0x59 auf 0x19. Config Chip.jpg Werde es testen. Ich habe bei der Simulation festgestellt, das im Panel die RS232 Schnitstelle versc...
by PIC-Speed32
Fri Oct 12, 2012 8:06 am
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hallo Jojo1981, habe vorher nur in Basic programmiert. Finde mich schwer zurecht im C-Code. hier ein Ausschnitt des C-Code //Konfigurations-Daten #ifdef _BOOSTC #pragma DATA 0x300000, 0x59 #endif #ifdef _HI_TECH_C %C__CONFIG(%A, %V); #endif #ifdef _BOOSTC #pragma DATA 0x300001, 0x12 #endif #ifdef _H...
by PIC-Speed32
Thu Oct 11, 2012 10:01 pm
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hier mein Code.

Here is my code.
HTK4fcf.fcf
(201.52 KiB) Downloaded 511 times
by PIC-Speed32
Thu Oct 11, 2012 9:58 pm
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hi Jojo 1981, Hi Benj Meinst Du: Did you mean: 28.1 Configuration Bits The Configuration bits can be programmed (read as ‘0’) or left unprogrammed (read as ‘1’) to select various device configurations. These bits are mapped starting at program memory location, 300000h. The user will note that addres...
by PIC-Speed32
Thu Oct 11, 2012 9:36 pm
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hallo Benj, Ich schicke über RS232 zum Display Daten. Eine Variable minwert, maxwert, und ADC0. Alle 3 Variable sind Strings. In minwert und in maxwert stehen zweistellige Zahlenwerte, die beim Start der Software aus dem EEprom gelesen werden. In der Software kann ich diesen Variablen über den Touch...
by PIC-Speed32
Thu Oct 11, 2012 8:56 pm
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Hallo Jojo 1981, schon mal Danke. Die Simulation in Flowcode nutze ich nicht. Hintergrund ist ein Touchdisplay mit Serieller Schnittstelle. 480 x 272 Pixel von der Firma 4D Systems. Ich programmiere ein wenig und schicke es zum PIC. Da teste ich es bevor ich weiter programmiere. Das ist zwar Zeitauf...
by PIC-Speed32
Wed Oct 10, 2012 2:09 pm
Forum: Deutsch Support-Forum
Topic: ADC PIC18F46K80 keine Funktion
Replies: 19
Views: 20745

Re: ADC PIC18F46K80 keine Funktion

Die ADC Abfrage funktioniert. Neues Problem: Der ADC Wert überschreibt ein Stringvariable S minwert(29) die nichts mit dem ADC Wert S ADC0(20) zu tun hat. Ich habe deshalb eine neue Variable angelegt S Analog1(20), die im Makro ADC das erste mal verwendet wird. Das zweite mal wird sie in der seriell...
by PIC-Speed32
Wed Oct 10, 2012 11:07 am
Forum: Flowcode V5
Topic: PIC18F46K80 ADC Config Adcon1 in C-Code
Replies: 10
Views: 7255

Re: PIC18F46K80 ADC Config Adcon1 in C-Code

The ADC query works. New problem: The ADC value overwrites a string variable S minvalue (29) has nothing to do with the ADC value S ADC0 (20). I have therefore created a new variable S Analog1 (20), the ADC is in the macro for the first time used. The second time it is used in the serial output. Now...