Search found 102 matches

by Fakir
03 Apr 2018 12:33
Forum: mikroPascal PRO for PIC General
Topic: strncmp - problem - ver. 7.2 on PIC18F26K42
Replies: 13
Views: 5755

Re: strncmp - problem - ver. 7.2 on PIC18F26K42

Ok, that explains a lot of the pain I've been having recently with the new 18F26K42 and MikroBasic. I've written (and tested) most of my program on a 18F45K22 and then started porting it to the new K42, which will be the target device used in the product. I was thinking that since most of the progra...
by Fakir
04 Mar 2015 22:30
Forum: mikroBasic PRO for PIC General
Topic: MikroProg driver not functional in Windows 8
Replies: 2
Views: 1457

Re: MikroProg driver not functional in Windows 8

Windows 8.1 x64, mikroProg works perfectly fine.

Also, if you have Windows 8, consider upgrading to 8.1 (for free in the Store). I wouldn't recommend using the "original" Win 8, unless there's a good reason for it.
by Fakir
19 Feb 2015 14:13
Forum: mikroBasic PRO for PIC General
Topic: 3 phase ac motor pwm easypic6
Replies: 6
Views: 4142

Re: 3 phase ac motor pwm easypic6

Hi,
you might find the following application note very useful.

http://www.microchip.com/wwwAppNotes/Ap ... e=en020394

Regards,
Tomas
by Fakir
04 Feb 2015 11:50
Forum: mikroBasic PRO for PIC General
Topic: 18F67J50 as USB to I2C bridge possible?
Replies: 2
Views: 1757

Re: 18F67J50 as USB to I2C bridge possible?

Sure, why not. Just send the data from the PC to the PIC and then let the PIC to store them in the EEPROM. You can do it one byte at a time (slow) or (better) send a block of data and buffer it in the PIC's RAM.
by Fakir
22 Jan 2015 09:41
Forum: mikroBasic PRO for PIC General
Topic: PIC18F24J10 digital input on PORTA
Replies: 1
Views: 1240

Re: PIC18F24J10 digital input on PORTA

Hi, it seems OK at the first glance... should work. Anyway, try this version, I added a comparator configuration line. program test main: ' Main program TRISA = $01 TRISB = $00 LATA = $00 LATB = $00 ADCON1 = $0F CMCON = $07 while true if PORTA.0 = 1 then LATB = $04 else LATB = $00 end if delay_ms(10...
by Fakir
21 Jan 2015 19:24
Forum: mikroBasic PRO for PIC General
Topic: PIC18F4520 PortB interrupt issue
Replies: 31
Views: 10920

Re: PIC18F4520 PortB interrupt issue

<sorry, wrong button... please delete this post>
by Fakir
20 Jan 2015 12:51
Forum: mikroBasic PRO for PIC General
Topic: PIC18F4520 PortB interrupt issue
Replies: 31
Views: 10920

Re: PIC18F4520 PortB interrupt issue

FINALLY! I finally got that bloody thing working! Now working on the key repeat timer. program Keypad_2 ' First completely working version. ' IMPORTANT!!! Disable the PORTB A/D in the project settings! dim Row, Col, DebCounter as byte RawKey, Debounce as byte dim Buffer as byte[2] dim Key as string[...
by Fakir
19 Jan 2015 23:31
Forum: mikroBasic PRO for PIC General
Topic: nRF T click,LCD 1602 and EasyPIC v7 together?
Replies: 4
Views: 2262

Re: nRF T click,LCD 1602 and EasyPIC v7 together?

mlike wrote:Díky, opět jsi poradil :D Marek
Jé čau, já si nevšiml, že jsi to ty. :) Každopádě, glad to help. :wink:
by Fakir
15 Jan 2015 22:42
Forum: mikroBasic PRO for PIC General
Topic: mikroPascal to mikroBasic convertor.
Replies: 12
Views: 4697

Re: mikroPascal to mikroBasic convertor.

Hi Tomas, no it does not. That is indeed still one of the main issues, but it would require a lot of effort to add it to the tool, so I will not make it for the moment. :? It is a pity that mB does not know something as the "with" statement. Hi Dany, thanks for the info. I can very well imagine tha...
by Fakir
15 Jan 2015 00:18
Forum: mikroBasic PRO for PIC General
Topic: mikroPascal to mikroBasic convertor.
Replies: 12
Views: 4697

Re: mikroPascal to mikroBasic convertor.

Hi Dany,
thanks for your good work (as always). :)
Does the new version translate the "with" statement (which is absent in mB) or we still have to correct those sections manually?
Thanks!

Tomas
by Fakir
14 Jan 2015 23:50
Forum: mikroBasic PRO for PIC General
Topic: PIC18F4520 PortB interrupt issue
Replies: 31
Views: 10920

Re: PIC18F4520 PortB interrupt issue

@lejeff: Of course, you're right. I forgot to edit the ISR. Thanks for pointing that out. @billtech: Have you tried using the lookup table instead of the calculation (with lejeff's bug fix)? If so, what does it do? Anyway, I'm really out of ideas here... It shouldn't take us a week to program someth...
by Fakir
14 Jan 2015 16:11
Forum: mikroBasic PRO for PIC General
Topic: PIC18F4520 PortB interrupt issue
Replies: 31
Views: 10920

Re: PIC18F4520 PortB interrupt issue

Hi guys, I tried to debug the program on hardware with a 4x4 keypad, but unfortunately, my good and trusty PIC18F45K22 just died on me this weekend. :roll: It was also behaving erratically before it died which would explain why I wasn't able to debug a simple matrix keyboard program over two evening...
by Fakir
09 Jan 2015 12:41
Forum: mikroBasic PRO for PIC General
Topic: PIC18F4520 PortB interrupt issue
Replies: 31
Views: 10920

Re: PIC18F4520 PortB interrupt issue

Maybe the interrupt from the other 4 rows (RB4,RB5,RB6,RB7) is not interrupt the software normally? Hi billtech, since I rarely use the IOC feature, I didn't realize that it will respond to both edges of the signal - it will trigger again when the button is released, which then messes up the readin...
by Fakir
08 Jan 2015 21:25
Forum: mikroBasic PRO for PIC General
Topic: PIC18F4520 PortB interrupt issue
Replies: 31
Views: 10920

Re: PIC18F4520 PortB interrupt issue

Dammit... Nah, the new equation is good, I actually took the time to simulate it on a piece of paper. The problem will be somewhere else. But I write the code just out of my head so there might be some bugs (this code I posted last time is wrong too, I know). I usually test a lot when coding to get ...
by Fakir
08 Jan 2015 11:29
Forum: mikroBasic PRO for PIC General
Topic: PIC18F4520 PortB interrupt issue
Replies: 31
Views: 10920

Re: PIC18F4520 PortB interrupt issue

Ok, the calculation was really a complete nonsense. I think I had a weak moment or something... :D Try this version. I implemented a debounce and repeat counter. If it doesn't work, try using this new calculation in the original code. //EDIT: Fixed an error in the debounce logic. //EDIT 2: There is ...

Go to advanced search