Search found 790 matches

by Jan Lichtenbelt
Thu Jul 25, 2019 9:29 am
Forum: Feature Requests
Topic: automatically change local variable names
Replies: 2
Views: 2776

Re: automatically change local variable names

Hi Ben

Rename_Local_Variables.jpg
Rename_Local_Variables.jpg (137.49 KiB) Viewed 2755 times
Change variable names with left arrow procedure, changes all equal variables. Using the procedure with the right arrow, the variables does not change.
I always uses the last one, which resulted in my request.

Kind regards

Jan
by Jan Lichtenbelt
Wed Jul 24, 2019 1:38 pm
Forum: Flowcode V8
Topic: ICSP
Replies: 5
Views: 3469

ICSP

ISCP is working fine with a 10 cm connection between the programming BL0080 board and the microchip 16F1847. If I exchange the microchip with the 16F18857, ISCP is not working correctly. Programming shows the procedure works correctly , but in practice the program does not work. In both cases the lo...
by Jan Lichtenbelt
Tue Jul 23, 2019 3:53 pm
Forum: Feature Requests
Topic: automatically change local variable names
Replies: 2
Views: 2776

automatically change local variable names

If you change the name of a global variable, in all places of this variable in the program, the variable name will be changed at the same time. If you change the name of a local variable, the same variable in the macro does NOT change into the new name. Perhaps can the automatically change of local ...
by Jan Lichtenbelt
Sat Jul 20, 2019 6:37 pm
Forum: Flowcode V8
Topic: Floating Point Math
Replies: 2
Views: 1928

Re: Floating Point Math

Hi Smartmultienergy

The result of a comparision will be in general a boolean instead of byte.

boolean= float_eq(float, float)
The boolean will be true or false (with values 1 and 0 respectively)

If you use byte= float_eq(float, float), byte will also be 1 or 0.

kind regards

Jan
by Jan Lichtenbelt
Fri Jul 19, 2019 1:33 pm
Forum: Flowcode V8
Topic: EEPROM losses data
Replies: 5
Views: 4677

Re: EEPROM losses data

Hi Etsdriver, Thanks for your help. The problem is, if you expect the EEPROM to be erased by loading the hex file, you have to take other actions compared to the case the EEPROM will not be erased. Fortunately it can be easily checked by the particular EEPROM address to be 255 or <255. Kind regards ...
by Jan Lichtenbelt
Wed Jul 17, 2019 7:45 pm
Forum: Flowcode V8
Topic: EEPROM losses data
Replies: 5
Views: 4677

Re: EEPROM losses data

Hi Martin, What can be more simple as programming an EEPROM? It tooks me a lot of testing and puzziling. But let me first thanks you for help with the flowcode V2. Indeed I made a lot of errors in version 1. Perhaps to long puzzeling and thus making errors? This is what I found. In the attached vers...
by Jan Lichtenbelt
Wed Jul 17, 2019 12:52 pm
Forum: Flowcode V8
Topic: EEPROM losses data
Replies: 5
Views: 4677

EEPROM losses data

A simple flowcode reads first and then writes data from and to an EEPROM. In this case a simple string "Hello" has been used. After programming the microchip the string read should be empty. So far so good. The second and following starts of this microchip should read "Hello" from the EEPROM. I foun...
by Jan Lichtenbelt
Mon Jul 15, 2019 6:18 pm
Forum: Flowcode V8
Topic: Keypad 4x4
Replies: 10
Views: 4693

Re: Keypad 4x4

Never to old (74) to learn something!

Thanks a lot

Jan
by Jan Lichtenbelt
Mon Jul 15, 2019 4:28 pm
Forum: Flowcode V8
Topic: Keypad 4x4
Replies: 10
Views: 4693

Re: Keypad 4x4

Hi Martin,

It looks perfect your solution, but I could not find it.

I'm sorry.

Kind regards

Jan
-------

Hi Ben

It works fine! How a simple solution can make someone happy!

Kind regards

Jan
Keypad_4x4_V2.fcfx
(17.07 KiB) Downloaded 247 times
by Jan Lichtenbelt
Mon Jul 15, 2019 1:03 pm
Forum: Flowcode V8
Topic: Keypad 4x4
Replies: 10
Views: 4693

Re: Keypad 4x4

Hi Ben

That would be wonderfull. Please find the picture of the keypad attached.
Keypad_4x4_Alfa_Column4.jpg
Keypad_4x4_Alfa_Column4.jpg (100.28 KiB) Viewed 4632 times
Kind regards

Jan
by Jan Lichtenbelt
Sun Jul 14, 2019 3:14 pm
Forum: Flowcode V8
Topic: ACSII <--> String
Replies: 6
Views: 3575

Re: ACSII <--> String

something like:
String S[0]=char(65) with results S="A"

and

Byte B= asci(S[0]) which should be 65

Kind regards
by Jan Lichtenbelt
Sun Jul 14, 2019 1:31 pm
Forum: Flowcode V8
Topic: Keypad 4x4
Replies: 10
Views: 4693

Re: Keypad 4x4

Some like this.
Keypad_4x4_V1.fcfx
(21.81 KiB) Downloaded 242 times
Essential is the global definition Keypad_to_Acsii with the wanted characters. This can be easily changed. This list must be extended with 255 for "not pressed". Two macros completes all: Get_Keypad and WiatUntilRealeased.

Kind regards

Jan
by Jan Lichtenbelt
Sun Jul 14, 2019 12:13 pm
Forum: Flowcode V8
Topic: ACSII <--> String
Replies: 6
Views: 3575

ACSII <--> String

Who to change an ACSII value into a string?
Who to change a string (one symbol) into an ASCII value?

Kind regards

Jan
by Jan Lichtenbelt
Sat Jul 13, 2019 8:15 pm
Forum: Flowcode V8
Topic: Keypad 4x4
Replies: 10
Views: 4693

Keypad 4x4

Does someone has a MACRO for a 4x4 keypad (with A, B, C and D in the 4th column)?

Kind regards

Jan
by Jan Lichtenbelt
Thu Jul 11, 2019 10:29 am
Forum: Flowcode V8
Topic: ADC FVR (Fixed Voltage Reference)
Replies: 1
Views: 1699

Re: ADC FVR (Fixed Voltage Reference)

In the meanwhile I found a solution by entering the c-code after the RawEnable macro: //ADC Vref+=FVR=2.048 Volt FVRCON= FVRCON | 0x82; // set bit 1 (FVR 2.048 V) and 7 (FVR enable) FVRCON= FVRCON & 0xFE; // clear bit 0 (FVR 2.048 V) This gives ADC values between 0-1024 for voltages between 0-2.48 V...
by Jan Lichtenbelt
Thu Jul 11, 2019 9:35 am
Forum: Flowcode V8
Topic: ADC FVR (Fixed Voltage Reference)
Replies: 1
Views: 1699

ADC FVR (Fixed Voltage Reference)

I want to use the ADC Fixed Voltage Reference FVR in case of the 16F18857 microchip. http://www.microchip.com/wwwproducts/Devices.aspx?product=PIC16F18857/documents I choose a potentiometer as example for input of an ADC. There is a possibility to choose "FVR" as Vref option in the ADC macro. But th...
by Jan Lichtenbelt
Wed Jul 10, 2019 11:15 am
Forum: Flowcode V8
Topic: One wire problems
Replies: 3
Views: 2470

Re: One wire problems

Hi Kersing

I tried more DS1820 samples. The third is working fine now. Indeed a rather crital IC.

Kind regards

Jan
by Jan Lichtenbelt
Wed Jul 10, 2019 10:42 am
Forum: Flowcode V8
Topic: One wire problems
Replies: 3
Views: 2470

Re: One wire problems

Hi Kersing

Thanks a lot for your advise. I changed to microchip 16F18857 with 32 MHz oscillator. Now I get the temperature reading of 85.0 C, which does not change in time. It is not (yet) that hot here in the Netherlands.
What can I do now?

Kind regards

Jan
by Jan Lichtenbelt
Tue Jul 09, 2019 11:33 am
Forum: Flowcode V8
Topic: One wire problems
Replies: 3
Views: 2470

One wire problems

I use the temperature sensor DS18S20 with the Flowcode as given in wiki: https://www.matrixtsl.com/wikiv7/index.php?title=Component:_One_Wire_(Comms:_Interface) I changed the microchip into 16F1847 with pin A7 for the one-wire communications. This pin has a 4k7 resistance connected to 5V. This is as...
by Jan Lichtenbelt
Sun Jun 30, 2019 11:06 am
Forum: Flowcode V8
Topic: How to send GSM international phone code?
Replies: 9
Views: 5038

Re: How to send GSM international phone code?

Hi Chipfreyer27, Thanks for your suggestion for improvements. I found that the problem was a hardware problem. The +31 (or general +country code) plus phone number (without preceeding 0) works fine. But I have an other question I used the flowcode as attached. There is one problem. To send a SMS I u...
by Jan Lichtenbelt
Sat Jun 29, 2019 4:24 pm
Forum: Flowcode V8
Topic: How to send GSM international phone code?
Replies: 9
Views: 5038

How to send GSM international phone code?

I use the maco SendTextMessage to send a SMS to a moble phone. This works OK for national phone numbers. But if I use +44 (for UK) or +31 (for NL), it does not work.

How to handle this?

kind regards

Jan
by Jan Lichtenbelt
Sat Jun 29, 2019 11:42 am
Forum: Flowcode V8
Topic: GSM pin code
Replies: 2
Views: 3422

Re: GSM pin code

I found a solution. I delete the pin code from my SIM card, using a cell phone. And now it works.

Kind regards

Jan
by Jan Lichtenbelt
Sat Jun 29, 2019 11:00 am
Forum: Flowcode V8
Topic: GSM pin code
Replies: 2
Views: 3422

GSM pin code

I use the SIM800L GSM unit and tried it with the flowcode GSM_Test.fcfx as given in the wiki GSM page https://www.matrixtsl.com/wikiv7/index.php?title=Component:_GSM_(EB066,_Generic_AT)_(Wireless) . It does not work and gives an init fail 69. This can be probably due to the fact that my SIM card is ...
by Jan Lichtenbelt
Sun Jun 16, 2019 1:23 pm
Forum: Flowcode V8
Topic: Stop Bluetooth
Replies: 2
Views: 2033

Stop Bluetooth

To start bluetooth will be done by initialising UART. If the microchip will be connected, everything is OK. But what if the connection failes? In that case I want to stop the bluetooth unit to send signals, to save power consumption. But how to do manage to stop the bluetooth unit (it stays LED flic...
by Jan Lichtenbelt
Sun Jun 16, 2019 12:54 pm
Forum: Flowcode V8
Topic: Timer0
Replies: 3
Views: 2685

Re: Timer0

Hi Ben I still have problems with the frequency of the timers with the PIC16LF18857 microchip. Above problems with timer1. But thesame problem will be met with timer0, which is 4 times faster as expected. The settings are: Clock source: HFINTOSC Input Asyn.: FOSC/4 Prescaler: 1:512 Postscaler: 1:1 C...