how can i program a microcontroller using mikro

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

how can i program a microcontroller using mikro or even a c++

Last Edited: Tue. Jun 30, 2015 - 08:00 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Welcome to AVRFreaks.

 

Do you mean...

 

http://cnl.web.arizona.edu/mricr...

 

Personally I have never heard of it. What makes you think that AVRFreaks can help you?

Ross McKenzie, Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your question is too vague.

 

Please provide more detail: what do you know already? what do you want to learn? what are you trying to do?

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Ross,

 

I rather think he means this:

 

http://www.mikroe.com/mikroc/avr/

 

Anyway I afraid ikechukwuisaac (really?) that you are asking too general a question. What aspect of the programming do you need to know about? Are you talking about learning C in the first place? Or how to get the code you build into the AVR? Or how to use some particular functions (ADC, timer etc) of the AVR? Try to give more detail about what it is you need to know.

 

EDIT maybe start by reading this:

 

https://www.avrfreaks.net/forum/n...

 

Personally I'd also review your choice of compiler. There aren't many people who use Mikro C (mainly because it does not adhere to the C standard so is not really a C compiler) so you aren't going to find many people to help if you hit problems. Perhaps consider one of the mainstream compilers for AVR instead: CodeVision, GCC, IAR, Imagecraft (in alpha order - no relative merit implied by their position in that list).

Last Edited: Tue. Jun 30, 2015 - 08:16 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ikechukwuisaac's question is somewhat contradictory. c++ is not at all similar to Mikro (unless you are referring to MikroC).

First of all, there is the "language". Languages include BASIC, c, c++, pascal, fortran, python, forth, and many, many more. Whether or not an language is useable on microcontrollers depends on one thing: is there a compiler (for the target device)? The compiler turns the text of the language into the instructions needed by the microcontroller for its operation.

 

At the present time, the languages of choice for AVRs seem to be BASIC, c, and c++. Atmel provides you with a complete programming environment in c and (moderately complete) c++. Arduino is disguised c++. Bascom has a fairly popular BASIC. MikroC, as mentioned, is a sort-of-c that is not widely used. 

 

So, clearly, you can program an AVR in either MikroC or c. But that is not exactly how the question was asked.

 

Further complicating things, the term "micro" is often used as a short-hand for microcontroller or microprocessor. I would guess that "Mikro" might be an eastern-European version of "micro". Thus, if you just write "Mikro", we cannot tell if you are referring to the language MikroC, or are referring to generic microcontrollers.

 

Hope this helps,

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

Last Edited: Wed. Jul 1, 2015 - 05:12 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As i can see, the "mikroC" is just only 250$ IDE for C/C++ development.

http://www.mikroe.com/avr/

 

You are better to use 0$ AS.

Last Edited: Wed. Jul 1, 2015 - 08:14 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Surely mikroC would be equally unpleasant if it cost $25000 or $0.
As far as I know, it makes no attempt to behave as a proper C compiler or C++ compiler.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

MikroElectronica makes hardware. It's nice  hardware. Their compilers exist to help sell  hardware. Their compilers are, to understate, not viable. And not worth the $ by any means.

 

I've used other compilers and tools and SWD to program their ARM mini-board (not Atmel).

One should be able to replace their bootloader and use commonplace AVR tools.

 

But, for AVRs, this quickly becomes: it's not worth the hassle.

 

 

Last Edited: Fri. Jul 3, 2015 - 12:16 AM