Search found 647 matches

by stefan.erni
Thu Mar 04, 2021 2:27 pm
Forum: General Programming
Topic: Ads 1115 16bit adc module
Replies: 5
Views: 204

Re: Ads 1115 16bit adc module

Hi Bob The component ADS1118 is ready to download. I think it's a very good and fast working Homepage Hi Qmesar Thank you for the component. It would be nice if there would also be a 2khz sampling rate converter I had a look for one and found some from TI. 2-kSPS, 16-Bit ADC with Integrated PGA and ...
by stefan.erni
Wed Feb 17, 2021 4:45 pm
Forum: Deutsch Support-Forum
Topic: PIC32mx150F128B hat kein USB
Replies: 3
Views: 339

Re: PIC32mx150F128B hat kein USB

Hallo Speed64


Wenn Du mich fragst hat nur die Version 2xx USB
Schau mal auf Seite 3 im PDF.

Funktioniert bei Dir schon ein PIC32 mit USB?

Gruss

Stefan

0900766b81344eca.pdf

https://docs.rs-online.com/ef06/0900766b81344eca.pdf

PIC32MX2XX USB FAMILY FEATURES
by stefan.erni
Wed Feb 10, 2021 11:15 am
Forum: Flowcode V7
Topic: Low Baud Rate speeds- How to set up using C code
Replies: 15
Views: 600

Re: Low Baud Rate speeds- How to set up using C code

Hi George

remove BAUDCONbits.BRG16=0; // You don't need it necessarily.
just

Code: Select all

TXSTAbits.BRGH=0;

SPBRG=32
;

regards

Stefan
by stefan.erni
Wed Feb 10, 2021 11:05 am
Forum: Flowcode V7
Topic: Low Baud Rate speeds- How to set up using C code
Replies: 15
Views: 600

Re: Low Baud Rate speeds- How to set up using C code

Hi Martin
Thanks a lot
I think you are right;

Code: Select all

TXSTAbits.BRGH=0;
BAUDCONbits.BRG16=0;
SPBRGH=0;
SPBRG=32;
regards

Stefan
by stefan.erni
Tue Feb 09, 2021 10:14 am
Forum: Flowcode V7
Topic: Low Baud Rate speeds- How to set up using C code
Replies: 15
Views: 600

Re: Low Baud Rate speeds- How to set up using C code

Hi Georg

Yes, something like this:

TXSTAbits.BRGH=0;

SPBRGbits.BRG16=0;

SPBRGH=0;
SPBRG=32;


regards

Stefan

https://docs.rs-online.com/a168/0900766b81382af8.pdf
by stefan.erni
Tue Jan 19, 2021 4:44 pm
Forum: Deutsch Support-Forum
Topic: PIC32MZ2048EFH064 mit 252MHz funktioniert nicht
Replies: 6
Views: 512

Re: PIC32MZ2048EFH064 mit 252MHz funktioniert nicht

Hallo Speed64 Ja Du kannst den Wert anpassen Ich habe Dir nur berechnete Werte Gruss Stefan You can insert a C Code with a line like this. This C Code has to be after the init the Uart! U1BRG=2592; // setzt uart 1 auf 9600 U4BRG=216; // setzt uart 4 auf 115200 bei 200Mega U4BRG=259; // setzt uart 4 ...
by stefan.erni
Tue Jan 19, 2021 1:54 pm
Forum: Deutsch Support-Forum
Topic: PIC32MZ2048EFH064 mit 252MHz funktioniert nicht
Replies: 6
Views: 512

Re: PIC32MZ2048EFH064 mit 252MHz funktioniert nicht

Hallo Speed64 Ich weis schon das Pic laufen mit 250 Mega. Ich habe das auch schon gemacht Du kannst zum testen dort 200Mega eingeben. Diese Zahl ist nur für das delay gebraucht. Also wenn Du delay 1Sekunde wählst dann hast du nur ein delay von 0.8 Sekunden. Probiere Mal. Noch ein kleine Hinweis, Der...
by stefan.erni
Mon Jan 18, 2021 12:21 pm
Forum: Deutsch Support-Forum
Topic: PIC32MZ2048EFH064 mit 252MHz funktioniert nicht
Replies: 6
Views: 512

Re: PIC32MZ2048EFH064 mit 252MHz funktioniert nicht

Hallo Speed64

Ja Du kannst bei den Projekt Optionen sehr viele Clock Funktionen einstellen.
Meistens kannst Du Multiplizieren oder Dividieren. Es gibt auch extra Exceltabellen dazu.
Bei mir habe ich auf 100Mega eingestellt um Strom zu sparen.
Gruss

Stefan
ProjektOptionen_2021-01-18_12-15-24.png
ProjektOptionen_2021-01-18_12-15-24.png (127.75 KiB) Viewed 503 times
by stefan.erni
Thu Jan 07, 2021 11:51 am
Forum: General Programming
Topic: Measure PIC's own battery voltage
Replies: 10
Views: 1304

Re: Measure PIC's own battery voltage

Hi picolino You are using Vref as reference Voltage on pin 6 and which pin is for the AD input? You need a stable voltage for vref (not dependent on the battery) that can be done with a small Ic with 3Pin, or you use a regulator for the PIC for 3.3volt and use VDD as Vref. or to test the battery you...
by stefan.erni
Wed Jan 06, 2021 10:53 am
Forum: General Programming
Topic: Measure PIC's own battery voltage
Replies: 10
Views: 1304

Re: Measure PIC's own battery voltage

Hi picolino That's no problem. I've done this many times. Can you post your program? I have a pic 12F675 powered by a single 4.2v lithium battery. Is your pic on the battery or do you have a 3.3volt psu additionally ? I use a voltage divider to take the sample of battery by Pin 6 (GP1/Vref) using a ...
by stefan.erni
Fri Dec 18, 2020 4:58 pm
Forum: Flowcode V7
Topic: Low Baud Rate speeds- How to set up using C code
Replies: 15
Views: 600

Re: Low Baud Rate speeds- How to set up using C code

Hi George Can you post your program? I guess I forgot something... bits TXSTAbits.BRGH=0; BAUDCONbits.BRG16=0; For some baudrate you need a 16bit value. In a 8bit Pic you need two register for this value. You can choose if you just use a 8 bit Value (in SPBRG) If you set the bit BAUDCONbits.BRG16=0 ...
by stefan.erni
Fri Dec 18, 2020 9:13 am
Forum: Flowcode V7
Topic: Low Baud Rate speeds- How to set up using C code
Replies: 15
Views: 600

Re: Low Baud Rate speeds- How to set up using C code

Hi Georg I hope it will help. You can read in the manual from page 216 - 229 how to calculate the value for SPBRG SPBRGH The C Code has to be after the init the Uart! You will "overwrite" the part with the speed for the uart from FC REGISTER 18-1: TXSTA: TRANSMIT STATUS AND CONTROL REGISTER bit 2 BR...
by stefan.erni
Thu Dec 17, 2020 8:59 am
Forum: Bug Reports
Topic: PIC32MX with 24C32 EEProm
Replies: 1
Views: 174

Re: PIC32MX with 24C32 EEProm

Hi Patrick

Can you post you program?
What are value of the pull up resistor?
And is your EEprom with an A on the end? like 24AA32A
Is this IC pluggable with 8Pin?
regards

Stefan
by stefan.erni
Tue Dec 15, 2020 6:37 pm
Forum: Flowcode V8
Topic: ESP8266 as target chip
Replies: 43
Views: 4094

Re: ESP8266 as target chip

Hi Leigh

Thank you very much. Scanning is working now and I changed the array so it starts at 0.
For me is ok to work with 8 SSID.

regards

Stefan
by stefan.erni
Tue Dec 15, 2020 9:10 am
Forum: Flowcode V8
Topic: ESP8266 as target chip
Replies: 43
Views: 4094

Re: ESP8266 as target chip

Hi Ben

I went into the basement and there are only 9. But still no SSID in the display.

regards

Stefan
by stefan.erni
Tue Dec 15, 2020 9:01 am
Forum: Programming Tips & Tricks
Topic: Display!
Replies: 2
Views: 537

Re: Display!

Hi Jorgen

Thank you, I like it.

regards

Stefan
by stefan.erni
Tue Dec 08, 2020 12:39 pm
Forum: Flowcode V8
Topic: ESP8266 as target chip
Replies: 43
Views: 4094

Re: ESP8266 as target chip

Hi Ben

It found 25 SSID and shows the counting up number but no SSID on the display.

regards

Stefan
FC9_heltec_esp32_wlan_scanning.fcfx
(17.63 KiB) Downloaded 29 times
by stefan.erni
Tue Dec 08, 2020 11:06 am
Forum: Flowcode V8
Topic: ESP8266 as target chip
Replies: 43
Views: 4094

Re: ESP8266 as target chip

Hi Ben

Wlan accespoint is working, I can see the "heltec" network, but scanning SSID is scanning but all the string later are empty.

Bluetooth init gives an error.


regards

Stefan
FC9_heltec_esp32_wlan_ap_BT_SSP.fcfx
(17.87 KiB) Downloaded 24 times
by stefan.erni
Mon Dec 07, 2020 5:40 pm
Forum: Flowcode V8
Topic: ESP8266 as target chip
Replies: 43
Views: 4094

Re: ESP8266 as target chip

Hi Ben, Hi Leigh Nice to hear that you have already chosen the same module. It's working fine this Heltec Board together with the new FC9. For my computer a have additionally to download and install this USB driver: https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers And for the Oled Di...
by stefan.erni
Thu Dec 03, 2020 10:29 am
Forum: Flowcode V8
Topic: ESP8266 as target chip
Replies: 43
Views: 4094

Re: ESP8266 as target chip

Hi Ben

On the Heltec wifi-kit-32 is an OLED 128*64.
How can I use this OLED?

regards

Stefan



https://heltec.org/project/wifi-kit-32/
Heltec.png
Heltec.png (142.57 KiB) Viewed 903 times
by stefan.erni
Wed Dec 02, 2020 12:25 pm
Forum: Flowcode V8
Topic: ESP8266 as target chip
Replies: 43
Views: 4094

Re: ESP8266 as target chip

Hi Ben

Thank you very much Ben.
I have installed FC9 and the ESP toolchain.
A small program written and everything looks fine.
Now I have to get some ESP boards and try the hardware.
It's brilliant!

regards

Stefan
FC9_ESP32_2020-12-02_12-10-39.png
FC9_ESP32_2020-12-02_12-10-39.png (12.07 KiB) Viewed 948 times
by stefan.erni
Fri Nov 27, 2020 4:56 pm
Forum: Flowcode V8
Topic: ESP8266 as target chip
Replies: 43
Views: 4094

Re: ESP8266 as target chip

Thanks Ben.

That's good news..

Can you tell us which ESP boards are supported?

regards

Stefan
by stefan.erni
Fri Nov 20, 2020 5:10 pm
Forum: Bug Reports
Topic: Interrupt component fails on PIC32MZ
Replies: 2
Views: 214

Re: Interrupt component fails on PIC32MZ

Hi Brendan

Just go to the:
Build/Project Options/
Then to the:
BOOTISA and change form
Bootcode and Exeption code is micromips
to
Bootcode and Exeption code is mips


regards

Stefan
2020-11-20_17-03-30.png
2020-11-20_17-03-30.png (45.81 KiB) Viewed 203 times
by stefan.erni
Fri Nov 20, 2020 4:33 pm
Forum: Bug Reports
Topic: PIC18F46K42 ISSUE WITH 12 BIT ADC RESULT
Replies: 19
Views: 932

Re: PIC18F46K42 ISSUE WITH 12 BIT ADC RESULT

Hi B.Senthil Thats good news. You can have a look to the ADCON0 register regards Stefan 36.1.6 RESULT FORMATTING The 12-bit ADC conversion result can be supplied in two formats, left justified or right justified. The FM bits of the ADCON0 register controls the output format. bit 2 FM: ADC results Fo...
by stefan.erni
Fri Nov 20, 2020 12:04 pm
Forum: Bug Reports
Topic: PIC18F46K42 ISSUE WITH 12 BIT ADC RESULT
Replies: 19
Views: 932

Re: PIC18F46K42 ISSUE WITH 12 BIT ADC RESULT

Hi B.Senthil


With different PIC, for example PIC32MZ2048efg, you can choose the AD bit resolution (8,10,12), but not with this PIC18F46K42, this has always 12 bits.

Can you control, if your potmeter is on 5volt and not on 3.3volt?


regards

Stefan