Professional Documents
Culture Documents
Source: https://ww1.microchip.com/downloads/en/DeviceDoc/20001942G.pdf
CPE328: Embedded System (2/2021) Computer Engineering Department, KMUTT
MCP9700/1(A) Applications Information
Today’s Topic
ATMega328P Architecture
CPE328: Embedded System (2/2021) Computer Engineering Department, KMUTT
AVR* ADC: Features
• 10-bit resolution, 8 multiplexed single ended input channels
• Up to 76.9kSPS (15kSPS at Maximum Resolution), 13 – 260us
Conversion Time
• 0 - VCC ADC input voltage range (selectable 1.1V ADC reference voltage)
• Free running or single conversion mode
• Interrupt on ADC conversion complete
* The information in this slide are based on ATmega328P. However, they are mostly applied to other AVR microcontrollers
CPE328: Embedded System (2/2021) Computer Engineering Department, KMUTT
AVR ADC: Block Diagram
• 4 control/data registers:
ADMUX, ADCSRA, ADCH/L
• 8-10 I/O pins: AVCC, AREF,
ADC0-ADC7
ADC0-5
AREF, AVCC
New conversion will not be started if the trigger signal is still set after the conversion
complete or if another positive edge occurs during conversion.
CPE328: Embedded System (2/2021) Computer Engineering Department, KMUTT
AVR ADC: Power Saving Consideration
Write these bit to logic 1 to disable the digital input buffer on the
corresponding ADC pin when the digital input from this pin is not needed
RS
0 – Command Register
1 – Data Register
R/W
0 - Write
1 - Read
LCD connections for 8-bit mode LCD connections for 4-bit mode
Source: https://store-usa.arduino.cc/products/arduino-uno-rev3/
CPE328: Embedded System (2/2021) Computer Engineering Department, KMUTT
TMP36: Applications Information
Source: https://www.analog.com/media/en/technical-documentation/data-sheets/TMP35_36_37.pdf
CPE328: Embedded System (2/2021) Computer Engineering Department, KMUTT