Search found 434 matches

by zan
20 Dec 2021 19:36
Forum: mikroBasic PRO for PIC General
Topic: Word To String with decimal point
Replies: 5
Views: 1437

Re: Word To String with decimal point

Yes, I got the similar result, except that the 'str_insert_chr' procedure does not exist in the old mikroBasic. sub procedure WordToStrWithDecimalPoint(dim wInput as word, dim byref sOut as string[6]) dim sTemp as string[5] sOut = "" WordToStrWithZeros(wInput, sTemp) sOut[0] = sTemp[0] sOut[1] = sTe...
by zan
20 Dec 2021 18:42
Forum: mikroBasic PRO for PIC General
Topic: Word To String with decimal point
Replies: 5
Views: 1437

Re: Word To String with decimal point

Thanks for your suggestions, I will try something.
by zan
19 Dec 2021 11:14
Forum: mikroBasic PRO for PIC General
Topic: Word To String with decimal point
Replies: 5
Views: 1437

Word To String with decimal point

Hello experts I need to insert decimal point into string which is converted from word variable. String will be transmitted via serial port to terminal software for monitoring. For this project I'm using old mikroBasic v7.0.0.2 (not PRO version). I have writen this code and it is working as expected,...
by zan
19 Jul 2021 19:49
Forum: mikroBasic PRO for PIC General
Topic: convert a string of 7 ascii characters in a word
Replies: 2
Views: 617

Re: convert a string of 7 ascii characters in a word

Hi,

why don't you save all seven bytes to eeprom?
It would be much simpler than converting large numbers.
by zan
06 Jul 2021 17:39
Forum: mikroBasic PRO for PIC General
Topic: Source size does not match destination size
Replies: 4
Views: 1503

Re: Source size does not match destination size

Thank you janni
No more warnings :)
by zan
05 Jul 2021 20:38
Forum: mikroBasic PRO for PIC General
Topic: Source size does not match destination size
Replies: 4
Views: 1503

Source size does not match destination size

Hello Maybe this question is asked many times before, but I could not find correct answer. Here is example code program Test sub procedure WriteText(dim byref txt as string[255]) Uart1_Write_Text(txt) Uart1_Write(13) Uart1_Write(10) end sub main: while true WriteText("Start") WriteText("Hello World"...
by zan
06 Jun 2021 17:25
Forum: mikroBasic PRO for PIC General
Topic: AT Parser
Replies: 0
Views: 468

AT Parser

Hello
Does anyone have working example for parsing incoming data from GSM modem as response of AT Commands?
Thank you
by zan
05 Feb 2021 18:03
Forum: mikroBasic General
Topic: PIC18F46K22 definition file
Replies: 2
Views: 1425

Re: PIC18F46K22 definition file

Thank you.
by zan
23 Jan 2021 16:54
Forum: mikroBasic General
Topic: PIC18F46K22 definition file
Replies: 2
Views: 1425

PIC18F46K22 definition file

Hello
Does anyone have a definition file for PIC18F46K22?
I would like to use this PIC with mikroBasic v7.0.0.2
Old mikroBasic, not PRO version.
Thank you
by zan
11 Mar 2019 19:30
Forum: mikroBasic PRO for PIC General
Topic: Selecting a crystal frequency
Replies: 7
Views: 1769

Re: Selecting a crystal frequency

hexreader wrote: Try selecting 9615 as the desired baud rate - presumably the warning will go away.
You are right, the warning is gone at 9615.
I experimented, and I found that the threshold is at 0.10 percent error.

Thank you for your help.
by zan
11 Mar 2019 19:11
Forum: mikroBasic PRO for PIC General
Topic: Selecting a crystal frequency
Replies: 7
Views: 1769

Re: Selecting a crystal frequency

With some PIC types, compiler is giving report about baud rate, and with another don't.

On this picture code is compiled for PIC16F628A.
Image
by zan
11 Mar 2019 18:44
Forum: mikroBasic PRO for PIC General
Topic: Selecting a crystal frequency
Replies: 7
Views: 1769

Re: Selecting a crystal frequency

Thank you for your reply. I have decided to use 14.7456 MHz crystal, which will give 58.9824 MHz with 4x PLL. Expected baud rate error is 0.00%. I hope that everything will work fine. I have a problem with compiler. It is not giving any info about generated baud rate after compiling. https://i.imgur...
by zan
10 Mar 2019 17:20
Forum: mikroBasic PRO for PIC General
Topic: Selecting a crystal frequency
Replies: 7
Views: 1769

Selecting a crystal frequency

Hello I have a project with PIC18F46K22. I need to use two serial ports of this PIC, both at 9600 baud rate. The PIC will be running at 5V, with external crystal. My question is this: what crystal frequency to choose in order to achieve correct baud rate? Is it fine to use crystal of 11.0592 MHz wit...
by zan
23 Feb 2019 17:00
Forum: mikroBasic PRO for PIC General
Topic: How to config comparator's register of the pic 18F2520
Replies: 8
Views: 1912

Re: How to config comparator's register of the pic 18F2520

What I was thinking was to put your code here, on forum, and to add short description of what you expect from that code.
by zan
23 Feb 2019 11:42
Forum: mikroBasic PRO for PIC General
Topic: How to config comparator's register of the pic 18F2520
Replies: 8
Views: 1912

Re: How to config comparator's register of the pic 18F2520

Massimo I. wrote: But It doesn't works.
It will never work without code.

Go to advanced search