Search found 337 matches

by Jack Flanders
18 Jan 2021 02:01
Forum: mikroBasic PRO for PIC General
Topic: Compiler crashes 30 seconds after update to 7.6.0.0
Replies: 5
Views: 1766

Re: Compiler crashes 30 seconds after update to 7.6.0.0

My problems seem to usually be of the type of PICNIC: Problem In Chair, Not In Computer. But this time, it's something else... maybe the last vestiges of 2020 trying to crawl out of the grave. :evil: In any case, with doing absolutely nothing different, I deleted version 7.5 and reinstalled 7.6 and....
by Jack Flanders
13 Jan 2021 01:18
Forum: mikroBasic PRO for PIC General
Topic: Compiler crashes 30 seconds after update to 7.6.0.0
Replies: 5
Views: 1766

Re: Compiler crashes 30 seconds after update to 7.6.0.0

Just deleted 7.6 and re-installed 7.5: No problems. 7.5 works fine just as all of it's predecessors.

? ? ? ? ?
by Jack Flanders
11 Jan 2021 20:54
Forum: mikroBasic PRO for PIC General
Topic: Compiler crashes 30 seconds after update to 7.6.0.0
Replies: 5
Views: 1766

Re: Compiler crashes 30 seconds after update to 7.6.0.0

Went ahead and tried 7.6 on older pc. Just ran mikrobasic pro for pic on old pc; version 7.1.0.0 runs fine. Next, uninstalled 7.1 and installed 7.6 - same exe file that crashes on newer pc. Installed as admin. Program runs in user mode (not running as admin) and initially was in unlicensed mode. Nex...
by Jack Flanders
11 Jan 2021 20:25
Forum: mikroBasic PRO for PIC General
Topic: Compiler crashes 30 seconds after update to 7.6.0.0
Replies: 5
Views: 1766

Re: Compiler crashes 30 seconds after update to 7.6.0.0

I believe the initial crashes were probably due to Win10 security issues. Each crash, there would be a system message warning about the program was attempting to make changes to some system file. Each time, I would click through the security message and tell it to allow the program to operate. Event...
by Jack Flanders
06 Jan 2021 20:18
Forum: mikroBasic PRO for PIC General
Topic: Compiler crashes 30 seconds after update to 7.6.0.0
Replies: 5
Views: 1766

Compiler crashes 30 seconds after update to 7.6.0.0

Just updated my compiler to 7.6.0.0 and now it crashes reliably. May have something to do with Windows 10; every step of the way to install it and confirm the license caused Windows 10 to declare a security problem. After clicking through those to allow the program, it now starts and shows that I ha...
by Jack Flanders
06 May 2017 22:54
Forum: mikroC PRO for PIC General
Topic: pic interrrupt on change, pci16f1938
Replies: 4
Views: 2361

Re: pic interrrupt on change, pci16f1938

Check out page 145 of the datasheet for the two registers 'IOCBP' and 'IOCBN'. You don't seem to be setting these anywhere; they default to no interrupt on change. They select either change on rising edge or falling edge or both.
by Jack Flanders
23 Mar 2017 02:28
Forum: mikroC PRO for PIC General
Topic: Calling PID regulator function using timmer
Replies: 1
Views: 1819

Re: Calling PID regulator function using timmer

First: I am not a C programmer and I certainly am not an expert. But here is something to think about. You seem to be using interrupts - good :D What I would do is use a timer to produce 2ms interrupts. Then in your interrupt routine, check for timer overflow causing an interrupt. Then do something ...
by Jack Flanders
17 Mar 2017 05:01
Forum: mikroBasic PRO for PIC General
Topic: 3 PIC 18F46K22 in parallel operation not synchronous
Replies: 2
Views: 1865

Re: 3 PIC 18F46K22 in parallel operation not synchronous

As California noted, you can solve this by connecting the boards together with a 'sync' line. As to why the problem happens, it is probably because the inexpensive crystals used have initial tolerances of 50 or 100 ppm - (parts per million). And since one crystal might be high by that amount and the...
by Jack Flanders
12 Mar 2017 13:39
Forum: mikroBasic PRO for PIC General
Topic: Problems with string modification
Replies: 2
Views: 1882

Re: Problems with string modification

Janni: Thank you 100%!!!! :D

That explains all the weird results I got. Printing out the string would give various results depending on where the next zero in memory would be found.

I came to the right place for help! Thanks again!
by Jack Flanders
12 Mar 2017 02:53
Forum: mikroBasic PRO for PIC General
Topic: Problems with string modification
Replies: 2
Views: 1882

Problems with string modification

I'm trying to insert a decimal point into a string. The code below that is commented out fails. The voltStringReport string when printed contains the correct six chars but adds two more on the end. It appears like a buffer over-run of some sort. The code below it runs fine so I can move on now but I...
by Jack Flanders
05 Mar 2017 02:24
Forum: mikroBasic PRO for PIC General
Topic: uart1_init on new PICs takes extra 1K pgm words
Replies: 1
Views: 2272

uart1_init on new PICs takes extra 1K pgm words

I've been working with some of the newer PICs lately: PIC16F1779, PIC16F1789 AND PIC16F1769. What I found out is that on some of the newer parts, mikroBasic Pro compiler code uses between 750 to 1250 words for the uart init sequence. It looks like the problem is related to the fact that these parts ...
by Jack Flanders
23 Feb 2017 03:43
Forum: mikroBasic PRO for PIC General
Topic: Editor seems to forget settings...
Replies: 1
Views: 1790

Editor seems to forget settings...

I'm probably doing something wrong here as I have an abysmal level of ignorance these days... using the latest V7.01 version of the mikroBasicPro compiler. When I change settings such as show 'include source lines in output files' or 'show indent guides', that all works for the current session. But ...
by Jack Flanders
19 Feb 2017 19:35
Forum: mikroBasic PRO for PIC General
Topic: PIC10F320/LF320 delay_ms() completly erratic.
Replies: 3
Views: 2548

Re: PIC10F320/LF320 delay_ms() completly erratic.

Did you change the OSCCON setting when you changed from 8MHz to 31kHz?
by Jack Flanders
17 Feb 2017 05:24
Forum: mikroBasic PRO for PIC General
Topic: Simple touch sensor
Replies: 3
Views: 4858

Re: Simple touch sensor

I recently did this with a few changes from the appnote and it worked ok. Here is what I did: 1. I used two pins: one driven and one to read the touch. Important: connect a resistor from the drive pin to the sense pin. Value for me worked out to be about 18K Ohms. I used a potentiometer to determine...
by Jack Flanders
17 Feb 2017 04:58
Forum: mikroBasic PRO for PIC General
Topic: code for sk9822 fast led
Replies: 2
Views: 4563

Re: code for sk9822 fast led

Just passing through here but am always interested in RGB-LED topics. Did a quick search on "sk9822 vs apa102" and found the answers you are looking for. There are a few differences but you can make both of them work for you. For example, this first one explains everything: https://hyperion-project....

Go to advanced search