Search found 96 matches

by frank.malik
08 May 2023 10:13
Forum: mikroC PRO for PIC General
Topic: Comparing UART received text with a pre-defined string
Replies: 10
Views: 1201

Re: Comparing UART received text with a pre-defined string

Hi,

the semicolon after the "==0" is a little bit suspicious.

Can you check the length of both strings first?
Upper/lower case issue?
What is the actual result of strcmp() if it isn't 0 ?

Instead of setting the constant string value, you may use strcpy. It might be safer.
by frank.malik
12 Apr 2023 08:45
Forum: Development Boards
Topic: Necto Studio using USB click and EEG click
Replies: 1
Views: 355

Re: Necto Studio using USB click and EEG click

Hi broadsnax,

I think you should be able to get the libraries from the Package Manager. At least for me it's visible.
NECTO Studio v3.0.0_PackageManager.png
NECTO Studio v3.0.0_PackageManager.png (25.73 KiB) Viewed 343 times
by frank.malik
01 Apr 2023 22:23
Forum: Development Boards
Topic: Flip&Click SAM3X distinguish from Arduino DUE
Replies: 7
Views: 663

Re: Flip&Click SAM3X distinguish from Arduino DUE

Soo, you want me to write the code for you? I don't have the boards, so it's impossible for me to verify my idea is working. Take this as a hint how to do it by your own. An unconnected input will float. If you activate the integrated pull-up, you will have a clear "1" on this pin. If a LED is conne...
by frank.malik
31 Mar 2023 13:26
Forum: Development Boards
Topic: Flip&Click SAM3X distinguish from Arduino DUE
Replies: 7
Views: 663

Re: Flip&Click SAM3X distinguish from Arduino DUE

Hi

your function "some_test()" will check the level of the I/Os. If a LED is connected, it will behave different to an I/O where nothing is connected.
The function will return "true" for the Flip&Click and "false" for the Arduino Due.
That's it !
by frank.malik
31 Mar 2023 07:52
Forum: Development Boards
Topic: Flip&Click SAM3X distinguish from Arduino DUE
Replies: 7
Views: 663

Re: Flip&Click SAM3X distinguish from Arduino DUE

Hi awneil, I don't any of these boards, but looking at the schematics, the connection of the LEDs might help you. Actually I think Mikroe did a great job, making the Flip&Click very compatible the Arduino Due. However, there are some small differences that might help you distinguish between these tw...
by frank.malik
27 Mar 2023 12:19
Forum: Package Manager General
Topic: Reading MPKG files
Replies: 3
Views: 1125

Re: Reading MPKG files

Hi, I like to correct myself a little bit. It seems that it's a kind of special zip file type. If you simply use a unzip utility, you will get only the documentation as html files. If you really want to get the header and c-file, you need to use the package manager. However, don't use "Open existing...
by frank.malik
27 Mar 2023 11:48
Forum: Package Manager General
Topic: Reading MPKG files
Replies: 3
Views: 1125

Re: Reading MPKG files

Hi,

basically it is a zip file. Rename it to zip and use something like 7zip or similar to unpack.
by frank.malik
16 Mar 2023 09:15
Forum: PIC32 AI Compilers
Topic: Updating items on screen while scanning event handler.
Replies: 4
Views: 684

Re: Updating items on screen while scanning event handler.

Hello, I think I've got your point and the solution might be to call vtft_process(&vtft) Here is an extract from my application. It runs a motor, updates the screen with the speed information, and checks the start/stop button at the same time. I removed some non-relevant parts, so this code is not c...
by frank.malik
13 Mar 2023 14:45
Forum: mikroC PRO for PIC General
Topic: 2-Dimensions Array as a parameter - Suspicious pointer conversion
Replies: 6
Views: 1038

Re: 2-Dimensions Array as a parameter - Suspicious pointer conversion

Hi, I tried it with NECTO Studio and the PIC32 AI Compiler. So the results might be a little bit different. First, I would suggest to use pointer to string like this char *sound_menu[] = { "SOUND + VIBR", " SOUND ", " VIBRATION " } ; The call might be change to this Write_String(62, 7, sound_menu[so...
by frank.malik
13 Mar 2023 13:39
Forum: PIC32 AI Compilers
Topic: Updating items on screen while scanning event handler.
Replies: 4
Views: 684

Re: Updating items on screen while scanning event handler.

Hello d_scheider,

I'm not sure if I understand your issue correctly.
You can update any component any time with the vtft_draw_component function.
I have made a very simple example for the progress bar. Maybe it helps you to understand the concept.

viewtopic.php?f=147&t=79511
by frank.malik
28 Feb 2023 12:43
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: "376 Integer const expected" error on passing "const unsigned int" function arg to Delay_ms()
Replies: 7
Views: 1284

Re: "376 Integer const expected" error on passing "const unsigned int" function arg to Delay_ms()

Hi,

you are right, the correct wording would be "literal constant", and yes, the documentation should be a little bit clearer about this.

br
SA
by frank.malik
22 Feb 2023 08:55
Forum: Website & Forums Wishlist
Topic: repeat a code a certain amount of times
Replies: 2
Views: 1035

Re: repeat a code a certain amount of times

Hi samdreeze1, it seems that you like to produce a specific pattern on PortC, with a delay of 500ms between each new value. What about placing everything in a table, and get the pattern values from this table? This is not exactly the solution, but should give you some ideas. uint8_t pattern_value[] ...
by frank.malik
11 Feb 2023 10:28
Forum: IDE
Topic: expanding a structure in debugger with pointer
Replies: 2
Views: 592

Re: expanding a structure in debugger with pointer

Hi,

for me *pStruct1 works under Necto Studio 2.5.0
by frank.malik
09 Jan 2023 19:21
Forum: Timer Calculator
Topic: Timer calculator algorithm
Replies: 6
Views: 1953

Re: Timer calculator algorithm

Hi Paul,

thanks for this question.

First, what MCU are you using. Obviously an STM32, but which one exactly.
Basically the calculation should be the same for most of the devices. If you say "Period: 65514", is this the value
you would place in the ARR register?
by frank.malik
29 Dec 2022 08:55
Forum: mikroC PRO for PIC General
Topic: Time digits to separate int's?
Replies: 2
Views: 592

Re: Time digits to separate int's?

Hello Ditch,

I tried the code from hexreader with my setup in the simulator and it gives the expected result of 1 resp 8.

I'm also using the key word "volatile" for the variables to avoid optimization.

Go to advanced search