Categories

Archive

Internal EEPROM

1

Internal EEPROM When we write programs for microcontrollers, we usually do all the memory jobs on flash memory. Flash memory has very fast response time. It is like RAM on a computer. And it is volatile! Means that it is Read more ›

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Reddit
  • Add to favorites
  • Email
  • RSS
Categories

Serial Communication

2

Serial Communication Using PIC (USART) Serial communication is very important for micro devices. By using the serial communication one can communicate with computers (via COM port,USB,etc), peripheral devices or some ICs(such as eeprom, A/D converters,etc.). The process of serial communication Read more ›

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Reddit
  • Add to favorites
  • Email
  • RSS
Categories

Watchdog Timer – WDT

0

Watch Dog Timer (WDT) Watch Dog Timer (WDT) is a timer which makes micro controller program work properly without freezing. Its basic working principle is to make microcontroller reset when WDT overflows. To prevent this, we have to clear WDT Read more ›

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Reddit
  • Add to favorites
  • Email
  • RSS
Categories

Timing – Timers

0

Timer interrupts In most Microchip PIC microcontrollers, there are more than one hardware timers which have interrupts. The best thing about timer is that they work in the background. The delay loops will pause your program. You have to wait Read more ›

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Reddit
  • Add to favorites
  • Email
  • RSS
Categories

Timing – Delay Loops

0

Timing in PIC As we studied before, instructions are implemented in one instruction cycle(except branching, they are implemented in two instruction cycle). We can calculate instruction cycle by dividing oscillator frequency by 4. Let’s say we have 4MHz oscillator connected Read more ›

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Reddit
  • Add to favorites
  • Email
  • RSS
Categories

Interrupts

0

Understanding Interrupts in PIC Microcontrollers Using interrupts is a must in a professional microcontroller program. Basicly, when an event has occured, an interrupt flag will be set and program will branch to the interrupt address. By this method, you don’t Read more ›

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Reddit
  • Add to favorites
  • Email
  • RSS
Categories

Practical Applications

0

Practical applications Comparing two registers (if they are equal) Let’s say we need comparing two register and look if they are equal or not. It is C code is like below if (a==b) {…} To implement same structure in PIC Read more ›

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Reddit
  • Add to favorites
  • Email
  • RSS
Categories

Registers

0

Registers In this section, we will study PIC micro registers. In PIC microcontrollers, every feature is ruled by writing registers. Therefore, we get results of instructions by reading special registers. You can see BANK table below. When we do a Read more ›

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Reddit
  • Add to favorites
  • Email
  • RSS
Categories

PIC Assembly

1

Let’s begin assembly Micro controllers are very fast devices. In the assembly, you can rule every instruction cycle. For example, with a 4MHz x-tal, you can rule to 1us(micro second) instructions. You can do processes in micro seconds and calculations Read more ›

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Reddit
  • Add to favorites
  • Email
  • RSS
Categories

Microcontrollers

0

What is a micro controller? It is simply an IC which can be programmed to do some tasks and listen and control out-side world. These special ICs have some abilities like basic IO, serial communication, sensing analog values (by using Read more ›

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Reddit
  • Add to favorites
  • Email
  • RSS
Categories