
The Atmega328 is a _ SC Microcontroller.Ĭalrification: The Atmega328 is a RISC (Reduced Instruction Set Computer) microcontroller, which allows for a smaller number of cycles per instruction. How many General-Purpose Registers are present in the Atmega328?Ĭalrification: There are 32 General-Purpose Registers in the chip and they are all connected to the ALU (Arithmetic Logical Unit) directly which allow 2 registers to be accessed in one instruction in a clock cycle.ġ0. Almost all chips have a similar index corner without which, numbering of the pins would be very difficult.ĩ. Does the Atmega328 have an index corner?Ĭalrification: The Atmega328, like most other chips has an index corner which is used to identify the numbering of the pins when reading the pin configuration of the chip. Other similar 8-bit processors include the Intel 8080 Processor which ran on a similar 8-bit architecture.Ĩ.

The Atmega328 is an _ bit chip.Ĭalrification: The Atmega328 is capable of processing 8 bits of data at a time and hence it has an 8-bit architecture. So, under no circumstance should this chip be provided a voltage more than the rated voltage.ħ. But however, if any voltage higher than the rated voltage is provided there is a chance of damaging the IC physically. Provide any voltage lower than that and the chip will not function. What is the operating voltage of Atmega328?Ĭalrification: The operating voltage of the Atmega328 is 1.8V to 5.5V. Some other boards that use this microcontroller include the Arduino Nano which is a smaller development board than the Arduino Uno.Ħ. Which Arduino Boards use the Atmega328?Ĭalrification: The Arduino Uno uses the Atmega328.

There are _ ADC and _ PWM Pins on the Atmega328.Ĭalrification: The Atmega328 has 8 ADC Pins and 6 PWM Pins, which are to be connected to the ADC that’s built in to the Arduino Uno and the PWM pins provide Pulse Width Modulated output since a digital circuit like a microcontroller cannot provide a perfect analog wave.ĥ. The Atmega328 has 1 such comparator only.Ĥ. It takes 2 voltages as input and outputs the higher of the two. How many comparators does the Atmega328 have?Ĭalrification: A comparator is basically used for comparing voltages. the number of bits each timer can store.ģ. The number of bits here represents the resolution of the timers, I.e. How many timers does the Atmega328 have?Ĭalrification: The Atmega328 has a total of 3 timers, of which 2 are 8-bit timers and 1 are 16-bit timers. The Atmega328 has 32K bytes of flash memory.Ģ. How much flash memory does the Atmega328 have?Ĭalrification: A flash memory is a type of non-volatile memory, which does not get erased when the power supply is cutoff from the chip.
#Microcontroller 8051 basic interview questions pdf code#
Lets see a Sample code to give you a clear idea about the basic 8051 Programming.Arduino Multiple Choice Questions on “Microcontroller Specifications – AtMega 328”.ġ.

For example you need to access Port 2, you can mention it as “P2” Whereas the Ports of the Microcontroller can also be accessed by means of the Port numbers. Where i is the name assigned by the user which can be altered for your readability. To access Port 1 using SFR we should give it as The address of the ports in the 8051 controller is given below. SFR- Special function registers are the registers which are accessed by means of its address. Where i is the variable name assigned by the user which can be altered for your readability. Say for example if you need to access Pin 5 of the Port 0 in your 8051 Controller you must give it as SBIT – Single bit which was used to activate or deactivate a specific pin or bit in the port of a 8051 microcontroller. There are two ways of using these ports in 8051 Microcontroller and you can use any method which fits you while considering the flexibility of code. In 8051 each port has 8 pins associated to it. Ports is the term used to define the collection of output pins in a microcontroller. Here is an online converter to convert values from binary to Hex which you can use to determine equivalent hex values for your binary inputs ACCESSING 8051 PORTS: Whereas the “0x” stands for using data in the hex format. In 8051 Microcontrollers we will use hex values to load values into any register or port.

For example if we have a 8bit data such as 0000 1111 it is easier to represent it as 0F (Refer the above table). In Microcontrollers we use hex values to represent the data fed into it because of its simplicity in representation and easier understanding. Circuits Library - 220+ practical circuits HEX VALUES IN MICROCONTROLLER:
