Search found 117 matches

by George_B
Thu Jun 17, 2021 11:59 am
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 11
Views: 512

Re: FAT SD Card Data Logger

will let you know the results the soonest.


Finger crossed.



Many thanks!
by George_B
Thu Jun 17, 2021 11:02 am
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 11
Views: 512

Re: FAT SD Card Data Logger

Hi,


I am using two Li-ion 3.7V in series and a switching step down (3A maX) to power the hardaware.

Have you ever tried to read the L76X GPS module with the current flowcode GPS component?
by George_B
Mon Jun 14, 2021 7:20 am
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 11
Views: 512

Re: FAT SD Card Data Logger

Hello Ben, The crystal speed is configures correctly in flowcode at 19.6608MHz. If i use a different GPS module from another manufacturer the same program works fine but then i have accuracy issues. I would like to build a device that it will track a route and keep a log with the gps position every ...
by George_B
Wed Jun 02, 2021 11:41 am
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 11
Views: 512

Re: FAT SD Card Data Logger

Hello,

still i am trying to find a solution for gps module L76X but no success with the flowcode.


Would it be possible to check the attached txt file and see the reason that the flowcode component can not get the right information ?


Thanks in advance
George
by George_B
Mon May 17, 2021 12:39 pm
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 11
Views: 512

Re: FAT SD Card Data Logger

Hello Ben note that this program works with anothe gps module that i have which unfortunately gives me totaly wrong coordinates in relation to when i am at that point. I couldn't read data from the L76X GPS module(which gives me correct data) using the attached program. Can you check and let me know...
by George_B
Wed May 12, 2021 12:15 pm
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 11
Views: 512

Re: FAT SD Card Data Logger

Hi, For a project it is required to log GPS positioning data in an SD card every few seconds. I have a few GPS modules available for testings but i get correct and valid position only with L76X module using U-center software. Unfortunately i can not read the module's data when i try to write a simpl...
by George_B
Sat May 01, 2021 7:57 pm
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 11
Views: 512

Re: FAT SD Card Data Logger

I just figure out that the problem has to do with the string variable in the program. The string "filestring" could not hold the sum of all other strings that i wanted. I made a small change in the structure of the program and now i am able to write the way i want in SD. Here is the solution for me....
by George_B
Sat May 01, 2021 12:52 am
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 11
Views: 512

FAT SD Card Data Logger

Hello ! I would like to use the SD componet. I read in the forum a few topics for reading from and writing to sd card and based on the examples i implement a data logger with gps data. The simulator working good. The created file in the PC does contain the correct data as i want to be desplayed. The...
by George_B
Sat Mar 20, 2021 2:06 pm
Forum: 8-Bit PIC
Topic: Look Up Table - Size of elements
Replies: 6
Views: 524

Re: Look Up Table - Size of elements

I focused on the solution to my problem and not so much on how to write huge tables in the microcontroller. Therefore i am wondering if it is good idea to use an external EEPROM chip to do the job. With what characteristics should i choose the EEPROM chip in order to be able to holt the amount of da...
by George_B
Fri Mar 19, 2021 9:58 pm
Forum: 8-Bit PIC
Topic: Look Up Table - Size of elements
Replies: 6
Views: 524

Re: Look Up Table - Size of elements

This doesn’t make sense. If you have 4000 elements of 1 byte (let alone a larger integer) you need 4000 memory locations to store those values. None of the memory allocations in your output has 6 times 4000 elements = 24000 elements allocated. My guess is the lookup tables are truncated or the opti...
by George_B
Fri Mar 19, 2021 9:20 pm
Forum: 8-Bit PIC
Topic: Look Up Table - Size of elements
Replies: 6
Views: 524

Re: Look Up Table - Size of elements

just an update after some time trying different things.. I created 6 LUT droping 6 different components in my project's panel. I then paste on each table the 4000 values. So in total i have 25000 values in those 6 LUT ! I compile the project and the result of the used space was amazingly vesy small!...
by George_B
Fri Mar 19, 2021 2:40 pm
Forum: 8-Bit PIC
Topic: Look Up Table - Size of elements
Replies: 6
Views: 524

Re: Look Up Table - Size of elements

The amount of elements you can add to a LUT depends on the microcontroller you want to use. For 8 bit pic 50000 would be a huge amount and I don’t thing it can be done. For int alone that would be 100000 flash positions in flash. Thanks for your comment. I checked the LUT component again using larg...
by George_B
Fri Mar 19, 2021 2:19 pm
Forum: 8-Bit PIC
Topic: Look Up Table - Size of elements
Replies: 6
Views: 524

Look Up Table - Size of elements

Hi, I have a question about the size of LUT in FC7. Would it be possible to store large quantities of data such as 50000 elements as integers in first LUT and another 50000 as float in a second LUT. :? At the moment as far as i tested the component, it accepts approximately 6000 values. Best Regards...
by George_B
Fri Mar 19, 2021 11:14 am
Forum: 8-Bit PIC
Topic: convert two Int to one Float
Replies: 7
Views: 986

Re: convert two Int to one Float

hi Benj Thank you very much for your reply. This is the Union as you said. In my case ineed to do the "Seperation" from one Float to two Integers. Would it be the same as it is for bytes? Temp.AsByte[0] = FCV_BYTE0; Temp.AsByte[1] = FCV_BYTE1; Temp.AsByte[2] = FCV_BYTE2; Temp.AsByte[3] = FCV_BYTE3; ...
by George_B
Thu Mar 18, 2021 10:28 am
Forum: 8-Bit PIC
Topic: convert two Int to one Float
Replies: 7
Views: 986

Re: convert two Int to one Float

Hi Steve, thanks for the reply and help. I am using Flowcode 7, at the moment i can not use FC8. I thought it would be easy somehow to implement this conversion using C code. I have seen this post with 4 bytes but i could not figure out any result since in my case i need to use two integer values. R...
by George_B
Thu Mar 18, 2021 10:01 am
Forum: 8-Bit PIC
Topic: convert two Int to one Float
Replies: 7
Views: 986

Re: convert two Int to one Float

Hi Stafan, nice to hear from you. Maybe i was not describe the issue with details. In Modbus, when you define the address you read as float type, it will automatically read two addresses with one integer on each address in order to obtain the float value. For example: If you want to read the registe...
by George_B
Thu Mar 18, 2021 8:15 am
Forum: 8-Bit PIC
Topic: convert two Int to one Float
Replies: 7
Views: 986

convert two Int to one Float

Hello to everyone ! In modbus, sometimes, we need to obtain float variables to describe a value. As i have understand so far there will be need to send two integer variables in order to describe this float variable. My question is, if i have a float variable = 24.256, how it is possible to split tha...
by George_B
Wed Mar 17, 2021 9:06 pm
Forum: Flowcode V6
Topic: Float Calculation
Replies: 6
Views: 4821

Re: Float Calculation

Hello to everyone ! I know this is an old post but lets take it a little bit further. In modbus, sometimes, we need to obtain float variables to describe a value. As i have understand so far there will be need to send two integer variables in order to describe this float variable. My question is, if...
by George_B
Tue Mar 16, 2021 12:43 pm
Forum: 8-Bit PIC
Topic: Getting Error when using UART on 16F1825
Replies: 2
Views: 248

Re: Getting Error when using UART on 16F1825

Hi Benj,

Great job!
You gave the solution fast and sharp as always, now it is working perfect.


Thank you very much!
George
by George_B
Tue Mar 16, 2021 11:04 am
Forum: 8-Bit PIC
Topic: Getting Error when using UART on 16F1825
Replies: 2
Views: 248

Getting Error when using UART on 16F1825

Hi, i am trying to use UART with device 16F1825 and i am getting the error below. When i remove the UART components from the project, it compiles with no errors. I would like to configure the uart so i can set the baud rate value at 1200 using C code. is there anyone how faced the same issue? Thanks...
by George_B
Wed Feb 10, 2021 11:34 am
Forum: Flowcode V7
Topic: Low Baud Rate speeds- How to set up using C code
Replies: 15
Views: 1371

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

worked fine!


Thanks Again Stefan, i hope one day i can "payback" this to all you guys.
by George_B
Wed Feb 10, 2021 11:09 am
Forum: Flowcode V7
Topic: Low Baud Rate speeds- How to set up using C code
Replies: 15
Views: 1371

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

medelec35 wrote:
Tue Feb 09, 2021 8:36 pm
Hi George,
How about

Code: Select all

BAUDCONbits.BRG16=0;
?
Hi Martin and Stefan

no luck with this code, i am getting error on C code again. :(
Screenshot_3.jpg
Screenshot_3.jpg (27.2 KiB) Viewed 1018 times
by George_B
Tue Feb 09, 2021 10:52 am
Forum: Flowcode V7
Topic: Low Baud Rate speeds- How to set up using C code
Replies: 15
Views: 1371

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

Hi Stafan, thank you once again for helping me out.

I got this error after compiling with the code you provided.

I am looking the datasheet so i can familiarise myself and learn about it.
Screenshot_2.jpg
Screenshot_2.jpg (20.63 KiB) Viewed 1054 times
Regards
George
by George_B
Tue Feb 09, 2021 9:58 am
Forum: Flowcode V7
Topic: Low Baud Rate speeds- How to set up using C code
Replies: 15
Views: 1371

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

Hi again, In my previous posts, with the help of Stefan, i manage to set the baud rate at 1200 on a 18F4680 device. I am trying to set the same baud rate value on a 16F88 device but i am getting an error for the C code. Should i use any other code than this i used for 18F device? Thanks George
by George_B
Fri Dec 18, 2020 8:22 pm
Forum: Flowcode V7
Topic: Low Baud Rate speeds- How to set up using C code
Replies: 15
Views: 1371

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

Thanks to Stefan i manage to have the program working at 1200 baudrate.

The trick was to change( use grater than 1) the timeout value from UART Receive component.



I wish you all be well and health.


Regards
George