Tag Archives: mikroC


Hardware and Software requirements

The development of an embedded system requires some hardware and software products. Although the hardware requirements depend on the type and complexity of the project, the following hardware tools are required in all of the experiments we are going to discuss here.

  1. A solderless breadboard for constructing and testing the experimental circuits. The breadboard is chosen because it is reusable. You can change, modify or remove the components on it at any time. While an embedded system is in development phase, you never know in advance whether or not your circuit will function correctly when assembled. So it is always good to test it first on a breadboard. Once it performs well, the circuit can be transferred to a printed circuit board.
  2. Microcontroller chips (PIC16F688 and PIC16F628A in this case)
  3. A PIC programmer to load firmware inside the microcontroller. You need to buy one with in circuit serial programming(ICSP) capability. This allows you to quickly program the PIC while it is in the target circuit. I have got an iCP01 USB PIC programmer from iCircuit Technologies. It is very handy, easy to use, and low-cost ICSP programmer for the most popular flash-based PIC microcontrollers. The best thing about it is that it is compatible with Microchip’s PICKit2 and MPLAB IDE softwares. And, it works great. Read Choosing a PIC Programmer.
  4. A PC is required for two purposes: to develop and compile the firmware for the microcontroller, and to transfer it to the PIC programmer so that it could be loaded into the program memory of the microconroller.
  5. A regulated +5V DC source to power your circuit on the breadboard.
  6. A digital multimeter as test equipment.
  7. Other components like resistors, LEDs, capacitors, wires, etc as required.

iCP01 USB PIC programmer that uses PICkit2 software for programming

Required Software Tools

In addition to the above hardware, following software products are required during the experiments.

  1. A Compiler to develop and compile the firmware. You need to download and install the free version of mikroC Pro for PIC (a C compiler for PIC from Mikroelektronika) to follow these experiments. Here is the download link: mikroC Pro for PIC. Also download mikroC Pro manual and Create First Project. These user’s manuals describe the compiler features and setup procedure in detail.
  2. A microcontroller device programmer software that’s provided by the vendor along with the programmer hardware. It is required to transfer the firmware from the PC to the microcontroller. You can download PICkit2 programming software for iCP01 USB PIC programmer here.

Why pay for Serial LCDs when you can make your own?

HD44780 based LCD displays are very popular for embedded projects because they are cheap, easy to interface, can display characters, consume power lot less than seven-segment displays, and most of the present day compilers have in-built library routines for them. However, the only disadvantage is that they require at least 6 I/O pins of microcontroller. Well, you may ask, isn’t that less than what seven-segment displays require? Yes, that’s true but there are circumstances where you don’t have left enough pins for LCD display. For example, if you are going to design a temperature sensor based on a PIC12F683 microcontroller, which has just 6 I/O pins, you won’t have pins for interfacing a LCD. One solution for cases like that is to use serial LCD’s. Serial LCD’s available in the market cost more than double of HD44780 based standard one. The serial LCD’s still have the standard LCD module but it has an extra built-in driver module that receives data/command from a host microcontroller in serial format and convert it to appropriate parallel format suitable for HD44780 driver input.

Read more

Recent Entries »