Icrocontrollers AND Rogramming: By: Akanksha Patel
Icrocontrollers AND Rogramming: By: Akanksha Patel
Icrocontrollers AND Rogramming: By: Akanksha Patel
MICROCONTROLLERS
Microcontroller is a small computer placed on a single IC. It includes processor, memory and other peripherals. It acts as the brain of the robot and takes decisions according to the programming done by the user
DEVELOPMENT BOARDS
Printed circuit boards that provide all the circuitry necessary for a useful control task like I/O circuit, clock generator, stored program etc. We use two type of development boards:
AVR Arduino
AVR
AVR is a microcontroller manufactured by Atmel We use atmega16A microcontroller. Atmega 16A is used in AVR and atmega 328 is used in arduino.
PORTS
Ports : Points of transferring data on the MCU Present as pins on the IC. Ports are named as Port A, Port B, Port C and Port D. Other pins are used for power supply, clock etc.
ATMEGA16A
COMPILER
Avr studio It converts the code written in c in hex file(machine language).
PROGRAMMER
Programmer(matches the frequency of computer with the board) It could be inbuild (arduino) or we will have to use it externally(AVR) .
DDRX REGISTER
First define the pins as input/output. DDRx = 0b01110101;
PORTX REGISTER
PINX REGISTER
EXAMPLE: POTENTIOMETER