Search found 41 matches

by rhamer
17 Aug 2015 07:00
Forum: mikroC PRO for PIC General
Topic: Crypto Library available at Libstock
Replies: 18
Views: 12284

Re: Crypto Library available at Libstock

Firstly thank you for this library, it has solved my issue exactly. I have however noticed something that I'm confused about. I have run both the 'Small" and "Fast" AES demo projects against a 18F2680 and got the following build sizes; Small = 5812 bytes Fast = 5468 bytes So it looks like the small ...
by rhamer
06 Jan 2015 23:55
Forum: mikroBasic PRO for PIC Wish List
Topic: Suggested IDE Improvements
Replies: 1
Views: 2579

Suggested IDE Improvements

I would like to suggest two improvements for the PIC MicroBasic (and possibly other) compilers. I would like to add a right click menu option when clicking on a function in the code explorer to take you to the function implementation. I am aware that you can double click on the function and it does ...
by rhamer
09 Apr 2014 04:37
Forum: mikroBasic PRO for PIC General
Topic: Best practices for smaller code
Replies: 2
Views: 1320

Re: Best practices for smaller code

Thanks, just what I was looking for.

Rohan
by rhamer
09 Apr 2014 02:32
Forum: mikroBasic PRO for PIC General
Topic: Best practices for smaller code
Replies: 2
Views: 1320

Best practices for smaller code

I have been writing code for my product for over a year now, and it is working very well. However I am starting to run out of space in my PIC and I wanted to try and optimise the code to save space. I have found a couple of odd things by experimenting, such as moving repeated code into a subroutine ...
by rhamer
25 Mar 2013 06:33
Forum: Library Development Discussion
Topic: Industry standard encryption library
Replies: 1
Views: 2438

Industry standard encryption library

Is there (or has anybody developed) an industry standard encryption library of some sort, that can be used for the exchange of information between 2 systems? I'm thinking of something like AES or triple DES or whatever? I want to be able to send an encrypted sign on sequence between 2 devices, one w...
by rhamer
21 Mar 2013 00:20
Forum: mikroBasic PRO for PIC General
Topic: New mikroBasic PRO for PIC® v5.60 released!
Replies: 10
Views: 3440

Re: New mikroBasic PRO for PIC® v5.60 released!

Has the situation regarding the need to manually copy files between versions when upgrading to V6?

I notice the V6 installer still wants me to uninstall the previous version before installing the new, thus losing all my custom settings.

Regards

Rohan
by rhamer
09 Oct 2012 16:25
Forum: mikroBasic PRO for PIC General
Topic: mikroBootloader What does the "Select MCU" do
Replies: 3
Views: 1879

Re: mikroBootloader What does the "Select MCU" do

I understand that there are differences in the actual MCU, but from what I can see that is all taken care of at compile time. When I look at the hex output file it contains intel hex encoded data that has the target address built in to the encoding. All the boot loader appears to do is decode the in...
by rhamer
08 Oct 2012 00:22
Forum: mikroBasic PRO for PIC General
Topic: mikroBootloader What does the "Select MCU" do
Replies: 3
Views: 1879

mikroBootloader What does the "Select MCU" do

I am writing my own front end to communicate with the example PIC bootloader code. It all looks pretty straight forward, but one thing I notice on the mikroBootloader is the MCU selection which toggles between PIC16 & PIC18. Can you tell me what difference it makes when choosing one MCU over another...
by rhamer
17 Sep 2012 08:25
Forum: mikroBasic PRO for PIC General
Topic: Bootloader configuration bits v Main app configuration bits
Replies: 2
Views: 1613

Re: Bootloader configuration bits v Main app configuration b

I found what I needed here http://www.mikroe.com/forum/viewtopic.p ... 4&p=191515

And from that topic I have deduced that it is the bootloaders settings that ultimately are used.

If I'm wrong, then let me know.

Rohan
by rhamer
16 Sep 2012 02:15
Forum: mikroBasic PRO for PIC General
Topic: Bootloader configuration bits v Main app configuration bits
Replies: 2
Views: 1613

Bootloader configuration bits v Main app configuration bits

I am trying to understand how the configuration bits are set when using the MikroBootloader. I have a board with a pic18f2680 that I have loaded the correct bootloader onto and then used it to load the actual program hex file. However in the real application I have the watchdog set, but in the bootl...
by rhamer
20 May 2012 05:19
Forum: mikroBasic PRO for PIC General
Topic: Interrupt solution needed from Mikroe.
Replies: 11
Views: 3388

Re: Interrupt solution needed from Mikroe.

Thanks for your help Robert. I had considered your method, but unfortunately in my case, I need to read the external uart inside the ISR or I risk a buffer overflow. Setting a bit and waiting for the main loop to check it is too slow, as some of the main loop routines can take longer than it takes f...
by rhamer
26 Apr 2012 22:41
Forum: mikroBasic PRO for PIC General
Topic: Interrupt solution needed from Mikroe.
Replies: 11
Views: 3388

Re: Interrupt solution needed from Mikroe.

Thanks Janni.

The example looks clear and straight forward.

I also like your article on reenterency.

Thanks for your help.

Regards

Rohan
by rhamer
26 Apr 2012 08:08
Forum: mikroBasic PRO for PIC General
Topic: Interrupt solution needed from Mikroe.
Replies: 11
Views: 3388

Re: Interrupt solution needed from Mikroe.

There is a method to call same procedures from two threads if one takes care there's no real reentrancy, but I wonder why don't you perform all I2C communication in ISR? If necessary, you may even force interrupts from main code, which is equivalent to calling from main. That is the lateral thinkin...
by rhamer
26 Apr 2012 00:34
Forum: mikroBasic PRO for PIC General
Topic: Interrupt solution needed from Mikroe.
Replies: 11
Views: 3388

Re: Interrupt solution needed from Mikroe.

The problem is not how to make interrupts work or how the ISR works, but the fact that you cant call the same i2c routines from within the ISR and the main loop. This is a limitation of the compiler. It places this restriction on the code to protect the programmer from unknowingly corrupting the sta...
by rhamer
25 Apr 2012 12:01
Forum: mikroBasic PRO for PIC General
Topic: Interrupt solution needed from Mikroe.
Replies: 11
Views: 3388

Re: Interrupt solution needed from Mikroe.

The question is more generic than that. What I want is an example of how to do anything with i2c inside the ISR when the same i2c routines are in the main loop. In fact it is not even restricted to i2c, it could be anything that requires communication with an external chip, SPI, UART, ect. Any exter...

Go to advanced search