Arduino MEGA328P

Started by tha, September 10, 2017, 10:04:41 AM

Previous topic - Next topic

tha

http://www.atmel.com/Images/Atmel-42735-8-bit-AVR-Microcontroller-ATmega328-328P_Datasheet.pdf
ATmega328/P
DATASHEET COMPLETE
Introduction(แนะนำตัว)
  The Atmel® picoPower® ATmega328/P คือ a low-power CMOS 8-bit microcontroller บนฐานของ the AVR® enhanced RISC architecture. โดยการปฏิบัติคำสั่ง(powerful instructions) ใน clock cycle เดียว, the ATmega328/P ทำงานสำเร็จได้ถึงล้านคำสั่งในหนึ่งวินาที( 1MIPS per MHz) ด้วยการออกแบบระบบอย่างมีกำลังนี้ทำให้ mcu มีอัตราส่วนการกินพลังงานต่อความเร็วของการทำงานที่ดีขึ้น

tha

Feature(ลักษณะหน้าตา)
High Performance, Low Power Atmel®AVR® 8-Bit Microcontroller Family
  • Advanced RISC Architecture
    – 131 Powerful Instructions (มี 131 คำสั่ง)
    – Most Single Clock Cycle Execution (ส่วนมากปฏิบัติงานใช้เวลาเพียง Clock Cycle เดียว)
    – 32 x 8 General Purpose Working Registers
    – Fully Static Operation
    – Up to 20 MIPS Throughput at 20MHz (ทำงานได้ถึง 20 ล้านคำสั่งที่ 20 MHz)
    – On-chip 2-cycle Multiplier (ตัวคูณใช้เวลา 2-cycle ใน chip)
  • High Endurance Non-volatile Memory Segments
    – 32KBytes of In-System Self-Programmable Flash program Memory
    – 1KBytes EEPROM
    – 2KBytes Internal SRAM
    – Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
    – Data Retention: 20 years at 85°C/100 years at 25°C(1) (การเก็บรักษาข้อมูล)
    – Optional Boot Code Section with Independent Lock Bits (มีทางเลือกส่วน Boot Code พร้อมด้วย Lock Bits อิสระ)
       • In-System Programming by On-chip Boot Program (โปรแกรมโดย On-chip Boot Program)
       • True Read-While-Write Operation
    – Programming Lock for Software Security
  • Atmel® QTouch® Library Support
    – Capacitive Touch Buttons, Sliders and Wheels
    – QTouch and QMatrix® Acquisition
    – Up to 64 sense channels
  • Peripheral Features
    – Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode
    – One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture Mode
    – Real Time Counter with Separate Oscillator
    – Six PWM Channels
    – 8-channel 10-bit ADC in TQFP and QFN/MLF package
      • Temperature Measurement
    – 6-channel 10-bit ADC in PDIP Package
      • Temperature Measurement
    – Two Master/Slave SPI Serial Interface
    – One Programmable Serial USART
    – One Byte-oriented 2-wire Serial Interface (Philips I2C compatible)
    – Programmable Watchdog Timer with Separate On-chip Oscillator
    – One On-chip Analog Comparator
    – Interrupt and Wake-up on Pin Change
  • Special Microcontroller Features
    – Power-on Reset and Programmable Brown-out Detection
    – Internal Calibrated Oscillator
    – External and Internal Interrupt Sources
    – Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby, and Extended Standby
  • I/O and Packages
    – 23 Programmable I/O Lines
    – 28-pin PDIP, 32-lead TQFP, 28-pad QFN/MLF and 32-pad QFN/MLF
  • Operating Voltage:
    – 1.8 - 5.5V
  • Temperature Range:
    – -40°C to 105°C
  • Speed Grade:
    – 0 - 4MHz @ 1.8 - 5.5V
    – 0 - 10MHz @ 2.7 - 5.5V
    – 0 - 20MHz @ 4.5 - 5.5V
  • Power Consumption at 1MHz, 1.8V, 25°C
    – Active Mode: 0.2mA
    – Power-down Mode: 0.1μA
    – Power-save Mode: 0.75μA (Including 32kHz RTC)

tha

เสร็จแล้วเรื่อง switch ยังไม่ได้อ่านทำความเข้าใจเลย อั๊พมาก่อน :D
http://www.mediafire.com/file/fdmfmw8b8c5kuf7/switch.rar


tha

วงจรของบอร์ด arduino uno r3 ch340 schematic
https://www.terraelectronica.ru/%2Fds%2Fpdf%2FU%2FUNO_R3%28CH340G%29.pdf
ได้มาแล้วครับ

software

ATMEG328P เป็น MCU ที่เขียนภาษา Assembly ได้สนุกที่สุดติดใจเลยครับ

tha

ของ ett ก็มีอยู่หลายบอร์ดเหมือนกัน เลือกใช้ไม่ถูก คุณภาพบอร์ดและลายปริ้นคงจะดีกว่า
http://www.ett.co.th/product/03000AVR.html

ของ es ก็มีขาย
http://www.es.co.th/vp.asp?keyword=arduino&catc=018001&mfrc=&t=1

บอร์ด arduino ที่ทำในไทยที่ไหนมีอีกครับ แนะนำหน่อย เผื่อเป็นทางเลือก คุณภาพปริ้นคงจะดีกว่าของ clone พอดีมีงบจำกัดและเพิ่งจะเริ่มต้น เลยซื้อของ clone มาลองเล่นๆครับ :'(

tha

สาย usb ที่แถมมากับของ clone ก็ไม่มีคุณภาพ ไม่ผ่าน QC ของผมโดนไฟก็เจอเลย ไม่หา driver เช็คหากว่าจะเจอว่า ที่สาย usb ทางหัว type B สายกับพินบัดกรีกันไม่ติด สรุปได้ของถูกแต่ไม่คุ้มค่าเสียอารมณ์  ค่าน้ำมันรถไปตัวจังหวัดไปซื้อสาย usb ใหม่มาใช้แทน >:(

tha

ของ inex ก็มี ลองหาดูครับ
www.inex.co.th