2012年12月6日星期四

Two common microcontroller for the purpose of comparison

Two common microcontroller PIC '(' Microchip's) and "AVR" ('Atmel') for the purpose of comparison to make the robot control circuit.

"AVR" advantages and disadvantages:

- Suitable for high-speed applications

- No programming required ('guide')

- Very user-friendly ("Arduino programming)

- Compiler for free

"PIC" advantages and disadvantages:

- Easily in Malaysia

- 5V low-power sleep mode

- Programmer needs

- Programming can be a hassle

- Compiler for free

ATMEGA328 AVR microcontroller is one of the many microcontroller Arduino development board configuration. "Arduino" IDE "0018" is a very simplified, even for beginners to use, but provide the same programming compiler output flexibility "prior informed consent". Upload code through the 'boot', this does not need to purchase an additional external programming circuit.

It 32KB Flash program memory is more than enough. Programming code used in most of the projects takes up only 10KB. This very balanced flash program memory space for further testing and debugging in the case of future need to do so.

"Arduino" IDE "0018" every 20ms pulse of the servo motor using 8-bit timer ("Millis () function). Timer 1 (16), and "Timer" (8) does not use the other two timers. In coding, must declare the "external" volatile unsigned long timer0_overflow_count of "In the beginning, if you need a timer 0 (8).

Finally, it is a microcontroller you choose, you on the right path. In fact, it all depends on the familiar. For me, I use the AVR microcontroller in the the robot project's first time, I leaned over the AVR type.

没有评论:

发表评论