Search found 36 matches

by sgssn
23 May 2024 07:37
Forum: mikroC PRO for ARM General
Topic: Backup from Code?
Replies: 2
Views: 145

Re: Backup from Code?

Hi
i use ZIP to create a daily backup.

regards
Gerhardf
by sgssn
07 May 2024 11:43
Forum: IDE
Topic: Got stuck after reading text data using UART1_Read_Text() function
Replies: 5
Views: 345

Re: Got stuck after reading text data using UART1_Read_Text() function

Hi
i am not shure, what you mean with "Although it is working well with single one bytes data." What is working, and what does not?
You can read single byte data or you can write single byte data, or both?

Gerhard
by sgssn
24 Nov 2023 17:25
Forum: PIC PRO Compilers
Topic: PIC16F18313 - PPS issue
Replies: 1
Views: 295

Re: PIC16F18313 - PPS issue

Hello the TX-Pin has no default value. As you can see in the datasheet https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/40001799F.pdf on page 5, table 1, last column, it has to be set by PPS, and it is not configured to RA0 as default. When you set a PPS v...
by sgssn
11 Jul 2023 15:17
Forum: mikroProg™ programmer and debugger
Topic: Erase, Program, Verify, PIC not starting
Replies: 5
Views: 895

Re: Erase, Program, Verify, PIC not starting

Hi
and whats about the program itself? Did it already run on a PIC?

regards
Gerhard
by sgssn
05 Jul 2023 15:18
Forum: PIC PRO Compilers
Topic: Connecting I2C and SPI Devices to PIC18F45K80
Replies: 2
Views: 586

Re: Connecting I2C and SPI Devices to PIC18F45K80

Yes, it seems you are right. There is only one MSSP-module for both functions. In the description of the chip you find: ... 1 MSSP serial ports for SPI or I2C™ communication ... I don't know if it is possible to use both serial functions by changing the program. Perhaps you have to find other chips ...
by sgssn
22 Feb 2023 08:27
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

Hello
put it in a subroutine: f.e.:

void main( void )
{
int i = 0;
Setup();

while(1);
{
if( i < 32 )
{
myFunc();
i++;
}
}
}
by sgssn
15 Feb 2023 10:21
Forum: PIC32 AI Compilers
Topic: sprintf
Replies: 4
Views: 1085

Re: sprintf

Hi
there was once a thread like that:
viewtopic.php?f=238&t=78904&hilit=sprintf

perhaps it helps?

Gerhard
by sgssn
23 Nov 2022 13:36
Forum: PIC AI compilers
Topic: Re:math operation
Replies: 2
Views: 975

Re: Re:math operation

Hi your question: "what is correct" is difficult to answer. It seems to me, that you want to use integer operations. If you would use float or double your problem is smaller. Nevertheless a problem will remain: A uP can not really calculate in decimal. So a fault in your operations will remain. Ok, ...
by sgssn
17 Nov 2022 08:56
Forum: PIC AI compilers
Topic: cmcon=7; notwork
Replies: 7
Views: 1748

Re: cmcon=7; notwork

Hello
it could be helpful, if we would know which PIC you are using. :-)
Gerhard
by sgssn
20 Sep 2022 10:24
Forum: AVR AI Compilers
Topic: 101 305 Inconsistent type *.c
Replies: 4
Views: 2783

Re: 101 305 Inconsistent type *.c

Hi in your file EDMainboard.c there seems to be a bug: > //variables unsigned short Freq ,DutyC ,Val1, Val2 ; char Pon , Poff , Ch ,Mspeed ; int <---- void MCU_init() < What should be that "int" without a variable? delete that "int" before your function "void MCU_init()" and try again. regards Gerhard
by sgssn
19 Sep 2022 12:34
Forum: AVR AI Compilers
Topic: 101 305 Inconsistent type *.c
Replies: 4
Views: 2783

Re: 101 305 Inconsistent type *.c

Hi
can you open the file, using a standard editor?

Gerhard
by sgssn
17 Jul 2022 08:25
Forum: IDE General
Topic: where can i find CPU special definitions?
Replies: 7
Views: 1422

Re: where can i find CPU special definitions?

Hi
on the web-page of the manufacturer you will find all uC-specific information. What CPU do you mention?

regards
Gerhard
by sgssn
15 Jul 2022 11:55
Forum: IDE
Topic: [NECTO Studio 2.0] Is there support for sprintf and similar functions?
Replies: 9
Views: 1695

Re: [NECTO Studio 2.0] Is there support for sprintf and similar functions?

Hello
i think the necessary header file is missing. Try

#include <stdio.h>

There sprintf should be included

regards
Gerhard
by sgssn
26 Jun 2022 13:52
Forum: mikroBasic PRO for ARM General
Topic: Let's learn C
Replies: 4
Views: 1341

Re: Let's learn C

Hi all 'C' is a very good programming language for uC. 'C' was designed for PC-programming. Today i would not use C for making a program for a PC. I would use C#. One of the reason is because its a horror programming in Visual C by Microsoft. But to create a program i always would use 'C', because i...
by sgssn
23 Jun 2022 10:01
Forum: PIC AI compilers
Topic: Two i2c clik doesn't work together
Replies: 13
Views: 3490

Re: Two i2c clik doesn't work together

Hi
have you tried to put the specific functions of both Click boards into your task instead of init? Perhaps it is necessary to init the I2C-port every time ne for both of your click-boards.

Gerhard

Go to advanced search