<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hant-TW">
	<id>https://tommy0804.ddns.net/index.php?action=history&amp;feed=atom&amp;title=Arduino_Pro_Mini%2C_ATMega328P</id>
	<title>Arduino Pro Mini, ATMega328P - 修訂紀錄</title>
	<link rel="self" type="application/atom+xml" href="https://tommy0804.ddns.net/index.php?action=history&amp;feed=atom&amp;title=Arduino_Pro_Mini%2C_ATMega328P"/>
	<link rel="alternate" type="text/html" href="https://tommy0804.ddns.net/index.php?title=Arduino_Pro_Mini,_ATMega328P&amp;action=history"/>
	<updated>2026-08-21T18:24:51Z</updated>
	<subtitle>本wiki上此頁面的修訂紀錄</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://tommy0804.ddns.net/index.php?title=Arduino_Pro_Mini,_ATMega328P&amp;diff=525&amp;oldid=prev</id>
		<title>Tommy：​Refactor: add Category:Boards and SoCs</title>
		<link rel="alternate" type="text/html" href="https://tommy0804.ddns.net/index.php?title=Arduino_Pro_Mini,_ATMega328P&amp;diff=525&amp;oldid=prev"/>
		<updated>2026-08-21T05:17:43Z</updated>

		<summary type="html">&lt;p&gt;Refactor: add [[Category:Boards and SoCs]]&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hant-TW&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上個修訂&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2026年8月21日 (五) 13:17的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l96&quot;&gt;第96行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第96行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://electrosome.com/blinking-led-atmega32-avr-microcontroller/, Blinking LED using Atmega32 Microcontroller and Atmel Studio]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://electrosome.com/blinking-led-atmega32-avr-microcontroller/, Blinking LED using Atmega32 Microcontroller and Atmel Studio]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://www.arduino.cc/en/Reference/PortManipulation, Port Registers]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://www.arduino.cc/en/Reference/PortManipulation, Port Registers]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Boards and SoCs]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tommy</name></author>
	</entry>
	<entry>
		<id>https://tommy0804.ddns.net/index.php?title=Arduino_Pro_Mini,_ATMega328P&amp;diff=146&amp;oldid=prev</id>
		<title>Tommy：​已建立頁面，內容為 &quot;== Toolchain == * sudo apt-get install gcc-avr   # A port of GCC to AVR target processor * sudo apt-get install gdb-avr   # AVR GNU debugger * sudo apt-get install b…&quot;</title>
		<link rel="alternate" type="text/html" href="https://tommy0804.ddns.net/index.php?title=Arduino_Pro_Mini,_ATMega328P&amp;diff=146&amp;oldid=prev"/>
		<updated>2018-08-23T03:12:47Z</updated>

		<summary type="html">&lt;p&gt;已建立頁面，內容為 &amp;quot;== Toolchain == * sudo apt-get install gcc-avr   # A port of GCC to AVR target processor * sudo apt-get install gdb-avr   # AVR GNU debugger * sudo apt-get install b…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Toolchain ==&lt;br /&gt;
* sudo apt-get install gcc-avr   # A port of GCC to AVR target processor&lt;br /&gt;
* sudo apt-get install gdb-avr   # AVR GNU debugger&lt;br /&gt;
* sudo apt-get install binutils-avr #low-level utilities for building &amp;amp; manipulating object files&lt;br /&gt;
* sudo apt-get install avr-libc # AVR Library files&lt;br /&gt;
* sudo apt-get install avrdude # command-line program for programming AVR chips.&lt;br /&gt;
&lt;br /&gt;
== Pin definition ==&lt;br /&gt;
[[File:ProMiniPinout.png|ProMiniPinout]]&lt;br /&gt;
== PORT mapping ==&lt;br /&gt;
* PORTD maps to Arduino digital pins 0 to 7&lt;br /&gt;
** DDRD - The Port D Data Direction Register - read/write&lt;br /&gt;
** PORTD - The Port D Data Register - read/write&lt;br /&gt;
** PIND - The Port D Input Pins Register - read only&lt;br /&gt;
&lt;br /&gt;
* PORTB maps to Arduino digital pins 8 to 13 The two high bits (6 &amp;amp; 7) map to the crystal pins and are not usable&lt;br /&gt;
** DDRB - The Port B Data Direction Register - read/write&lt;br /&gt;
** PORTB - The Port B Data Register - read/write&lt;br /&gt;
** PINB - The Port B Input Pins Register - read only&lt;br /&gt;
&lt;br /&gt;
* PORTC maps to Arduino analog pins 0 to 5. Pins 6 &amp;amp; 7 are only accessible on the Arduino Mini&lt;br /&gt;
** DDRC - The Port C Data Direction Register - read/write&lt;br /&gt;
** PORTC - The Port C Data Register - read/write&lt;br /&gt;
** PINC - The Port C Input Pins Register - read only&lt;br /&gt;
&lt;br /&gt;
== LED blinking example ==&lt;br /&gt;
* Make sure your makefile have defined F_CPU for clock&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#ifndef F_CPU&lt;br /&gt;
#define F_CPU 16000000UL // 16 MHz clock speed&lt;br /&gt;
#endif&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;avr/io.h&amp;gt;&lt;br /&gt;
#include &amp;lt;util/delay.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int main(void)&lt;br /&gt;
{&lt;br /&gt;
  DDRC = 0xFF; //Nakes PORTC as Output&lt;br /&gt;
  while(1) //infinite loop&lt;br /&gt;
  {&lt;br /&gt;
    PORTC = 0xFF; //Turns ON All LEDs&lt;br /&gt;
    _delay_ms(1000); //1 second delay&lt;br /&gt;
    PORTC= 0x00; //Turns OFF All LEDs&lt;br /&gt;
    _delay_ms(1000); //1 second delay&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Program ==&lt;br /&gt;
[[File:IMAG0194.jpg|250px|Arduino_FTDI connectivity]]&lt;br /&gt;
* The connections to make from the FTDI FT232RL and the Pro Mini are:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FTDI232    Arduino_mini&lt;br /&gt;
GND    --&amp;gt;   GND&lt;br /&gt;
&lt;br /&gt;
CTS    --&amp;gt;   GND&lt;br /&gt;
&lt;br /&gt;
VCC    --&amp;gt;   VCC (5V for Ardunio Pro Mini 328 - DEV-1113)&lt;br /&gt;
&lt;br /&gt;
TXD    --&amp;gt;   RXD&lt;br /&gt;
&lt;br /&gt;
RXD    --&amp;gt;   TXD&lt;br /&gt;
&lt;br /&gt;
DTR    --&amp;gt;   DTR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Program command&lt;br /&gt;
** make program   ...or&lt;br /&gt;
** sudo avrdude -q -c arduino -P /dev/ttyUSB2 -b 57600 -p atmega328p -U flash:w:led.hex&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
avrdude: AVR device initialized and ready to accept instructions&lt;br /&gt;
avrdude: Device signature = 0x1e950f&lt;br /&gt;
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed&lt;br /&gt;
         To disable this feature, specify the -D option.&lt;br /&gt;
avrdude: erasing chip&lt;br /&gt;
avrdude: reading input file &amp;quot;led.hex&amp;quot;&lt;br /&gt;
avrdude: input file led.hex auto detected as Intel Hex&lt;br /&gt;
avrdude: writing flash (146 bytes):&lt;br /&gt;
avrdude: 146 bytes of flash written&lt;br /&gt;
avrdude: verifying flash memory against led.hex:&lt;br /&gt;
avrdude: load data flash data from input file led.hex:&lt;br /&gt;
avrdude: input file led.hex auto detected as Intel Hex&lt;br /&gt;
avrdude: input file led.hex contains 146 bytes&lt;br /&gt;
avrdude: reading on-chip flash data:&lt;br /&gt;
avrdude: verifying ...&lt;br /&gt;
avrdude: 146 bytes of flash verified&lt;br /&gt;
&lt;br /&gt;
avrdude: safemode: Fuses OK&lt;br /&gt;
&lt;br /&gt;
avrdude done.  Thank you.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== [[application - BMA250, triaxial acceleration sensor ]] ==&lt;br /&gt;
&lt;br /&gt;
== Reference ==&lt;br /&gt;
* [https://electrosome.com/blinking-led-atmega32-avr-microcontroller/, Blinking LED using Atmega32 Microcontroller and Atmel Studio]&lt;br /&gt;
* [https://www.arduino.cc/en/Reference/PortManipulation, Port Registers]&lt;/div&gt;</summary>
		<author><name>Tommy</name></author>
	</entry>
</feed>