Search found 18 matches

by cgengineer
04 Mar 2021 11:26
Forum: mikroC PRO for PIC General
Topic: Next MikroC PRO for PIC update
Replies: 0
Views: 526

Next MikroC PRO for PIC update

Hi everyone,

it's a long time we don't see new updates for MikroC PRO.

Is the MikroE team completely moved to the AI platform?
Is MikroC PRO for PIC going to a end of life?

Thank You
Best Regards
CG
by cgengineer
01 Mar 2020 16:05
Forum: mikroC General
Topic: USART TX interrupt
Replies: 4
Views: 4337

Re: USART TX interrupt

filip.grujcic wrote:Hello,

What MCU are you using?
I advise you to consult the datasheet for your MCU, in order to learn how to use the TX interrupt.

Kind regards,
PIC18F67K22

thank you
Best
CG
by cgengineer
17 Jan 2020 10:16
Forum: mikroC General
Topic: USART TX interrupt
Replies: 4
Views: 4337

Re: USART TX interrupt

Hi, no one is using the usart tx interrupt? I did a simple routine (a state machine) that avoids continuous polling of TXSTA.TRMT, for my modbus implementation, but is going to be heavier than a simple while waiting for trasmission to complete: (I have a rs485 driver with tx and rx enables, I put th...
by cgengineer
10 Jan 2020 19:27
Forum: mikroC General
Topic: USART TX interrupt
Replies: 4
Views: 4337

USART TX interrupt

Hello everyone,

can someone help me using the USART TX interrupt?
I can't understand how to initiate a TX streaming without using TXSTA.TRMT polling

Thank you
CG
by cgengineer
09 Jan 2020 18:53
Forum: mikroC PRO for PIC General
Topic: sprintf idea
Replies: 3
Views: 1112

Re: sprintf idea

Hello, I didn't see any reply about this topic, but I found a very good function that can easily replace the heavyness of sprintf: inline void nFloatToStr(float f, short p, char *txt) { unsigned long result; char sign = ((char *)&f)[2].B7; unsigned long factor = 10; short i = p, j = 0; while (i--) f...
by cgengineer
23 Dec 2019 18:41
Forum: mikroC PRO for PIC General
Topic: sprintf idea
Replies: 3
Views: 1112

Re: sprintf idea

Hello, Unfortunately, we are not allowed to distribute the source code of compiler's libraries due to the company's policy. However, I will forward your suggestion to our developer team for consideration. Kind regards, Thanks for your reply, I evaluated the Conversions function "FloatToStr" but it ...
by cgengineer
22 Dec 2019 16:20
Forum: mikroC PRO for PIC General
Topic: sprintf idea
Replies: 3
Views: 1112

sprintf idea

Hi everyone, I am been using a lot of GLCD in the past months, where I frequently used sprintf/sprinti/sprintl library. (I wrote a library for NHD-C12864KGZ display that works very well and uses the MikroE GLCD font creator, but needs some adjustment and tests before to be shared without receiving i...
by cgengineer
30 May 2017 11:26
Forum: mikroC PRO for PIC Beta Testing
Topic: CRC16 functions
Replies: 5
Views: 5371

Re: CRC16 functions

Obrigado!

This library is completely free for commercial, hobby, space, medical, military, nuclear plants, warping astroships and alien gunboats... so enjoy!

Best
by cgengineer
01 May 2017 09:21
Forum: mikroC PRO for PIC General
Topic: How to convert voltage toweigh
Replies: 2
Views: 4083

Re: How to convert voltage toweigh

Hello everyone I am new here and beginner programming pic16f877 with mikroC :D . I try to realize an electronic scale and here are the results that I obtained at the output of the amplifier of the sensor. But I hesitate on the conversion of voltage / weight. Please help me *************************...
by cgengineer
01 May 2017 09:16
Forum: mikroC PRO for PIC General
Topic: Excessive current causes mis-reading of sensor
Replies: 12
Views: 4868

Re: Excessive current causes mis-reading of sensor

Hi guys, i work with 3.7V 900mAh battery. All my circuit requires 6mA average, but when vibration motor runs, it pulls off 80mA suddenly and it causes ADC values change. When vibration exists, all values are 525,535,545, or between 520 and 580. i use 10bit system. how can i dodge that trouble? 1) c...
by cgengineer
01 May 2017 08:51
Forum: mikroC PRO for PIC General
Topic: Division operator
Replies: 5
Views: 2914

Re: Division operator

Hello. Thanks for your help. But i did not mean that. i mean, if i write a value for division (for example : flt=9/4) it work correctly. but if i use a variable (for example: flt=9/i) it does not work correctly. it give me a decimal value, not a fractional value. hello, to be sure compiler will use...
by cgengineer
21 Apr 2017 17:09
Forum: mikroC PRO for PIC Beta Testing
Topic: CRC16 functions
Replies: 5
Views: 5371

Re: CRC16 functions

by cgengineer
20 Apr 2017 17:51
Forum: mikroC PRO for PIC Beta Testing
Topic: CRC16 functions
Replies: 5
Views: 5371

CRC16 functions

Hi everyone, I saw that one can vote if wants a CRC16 calculation library. I have a simple library that works in about 25000 devices built by me. I would like to thank MikroElektronica team for my Beta Testing licence with a little present: /* Table of CRC values for high–order byte */ const char _C...
by cgengineer
12 Apr 2017 10:22
Forum: mikroC PRO for PIC General
Topic: PPS problem (bug?)
Replies: 12
Views: 4210

Re: PPS problem (bug?)

Hello, While it can be a bit confusing, because of some other MCUs - PPS_Remappable reffers to a "pin number" which actually isn't always pin's ordinal number. In the case of some PIC MCUs, it's actually a different number, extracted from the datasheet - chapter about the PPS module. So - instead o...
by cgengineer
11 Apr 2017 10:06
Forum: mikroC PRO for PIC General
Topic: PPS problem (bug?)
Replies: 12
Views: 4210

Re: PPS problem (bug?)

Hi everyone, I solved with a workaround. First of all I had to set in configuration registers that PPS can be only unlocked once: with this setting, the manual procedure for EUSART2 worked, but EUSART1 stopped to work. So I had to manually set PPS also for EUSART1 this way: Unlock_IOLOCK(); //eusart...

Go to advanced search