ICP1 is an input capture pin which can be used to capture the external pulse at a specific interval of time. All of these pins in microcontroller ATmega328P are given below: Both timers can use the internal and external clock to operate, but they also have an internal pin which can be used to count according to the external pulses. ![]() Both of these timers are dependent on an oscillator. We can use these timers to make counters and to generate pulses. The wires on the microcontroller are:ĪTtin圓28P has two internal timers. Data wire will transfer and receive the data and clock wire will send the clock pulse to keep the data sync. I 2C protocol only uses one data wire and one clock wire. Most of the peripherals come with the I 2C communication method which is one way at a specific time. In the case of multiple peripherals number of the select slave, pins will be increased. It consists of four wires, two for data sending and one for clock but the fourth wire is used to select the peripherals knows as a select slave. SPI protocol allows multiple devices to use the same channel for communication. It one of the best serial communication systems in the case of multiple peripherals. USART/UART communication system ca be used to program the microcontroller. The data can be sent by specified the sending rate within the controllers but it can also use the external clock pin to keep the data sync. The USART pins of microcontroller ATmega328P are: In this method, two wires used to send and receive the data. It is one of the simplest and easiest method for implement and understanding by most of the developers and systems. Interrupt pins of ATmega328P are given below:Īlthough there are multiple kinds of communication systems within the devices and modules but the most common one is USART. ATmega328P gives the support of 2 interrupts within the controller which can be used to get the attention of the CPU at any instant. Most of the electrical functions required an interrupt system to operate like AC dimmer, etc. To use them as output/input or for any other function it should be defined first otherwise there won’t be any default function by all I/O pins. On top of that, each port can be used for other purposes. All these pins can be used as digital input/output. This microcontroller has three digital ports (B, C, D) such as PORTB, PORTC, and PORTD. Pin configuration Details DIGITAL INPUT/OUTPUT PINS
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |