Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:hardware:homelab:controller:atmega2561 [2011/10/21 13:40] illoen:hardware:homelab:controller:atmega2561 [2020/07/20 12:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +<pagebreak>
 ====== Controller module ATmega2561 v1.x ====== ====== Controller module ATmega2561 v1.x ======
-<note important>Needs translation!</note> +The main module of the HomeLab is a controller development board (controller board) equipped with the AVR ATmega2561 microcontroller. In addition to the microcontroller, the board consists of several peripherals, voltage stabilizer, connectors, JTAG programmerEthernetSD memory card slot. The controller board has the following features: 
-The main module of the HomeLab is a controller development board (controller board) equipped with the AVR ATmega2561 microcontroller. In addition to the microcontroller, the board consists of several peripherals, voltage stabilizer, connectors, JTAG programmer Ethernet SD card slot. The controller board has the following features: +
  
   * ATmega2561-16AU microcontroller   * ATmega2561-16AU microcontroller
Line 11: Line 11:
   * 14,7456 MHz clock   * 14,7456 MHz clock
   * Ethernet module with RJ45 connector   * Ethernet module with RJ45 connector
-  * SD card slot+  * SD memory card slot
   * Status LED (PB7)and Power LED   * Status LED (PB7)and Power LED
   * Programmable button (PC2) and reset button    * Programmable button (PC2) and reset button 
Line 18: Line 18:
   * Automatic power switch USB or external power supply   * Automatic power switch USB or external power supply
   * Built-in voltage stabilizer, with 5 V and 3,3 V output   * Built-in voltage stabilizer, with 5 V and 3,3 V output
-[{{  :kit:atmega2561.jpg?580  |Mikrokontrolleri arendusplaat - Kontrollerplaat}}]+[{{  :kit:atmega2561.jpg?580  |Controller module}}]
  
-Module is equipped with AC/DC rectifier circuit and LDO voltage stabilizer (with low dropout) - external feeder with voltage stabilization is not needed.+The module is equipped with AC/DC rectifier circuit and LDO voltage stabilizer (with low dropout) -an external feeder with voltage stabilization is not needed.  
 +The module can be powered with a step down transformer with an output voltage which is greater than 6 volts and lower than 15 volts. In order to reduce power losses it is recommended to use power supply between 6-9V.  The POWER LED signalizes a connected feed (“POWER” description on the board).  
 +All ATmega2561 signals are available on three connectors on the edge of the board. Connectors pin assignment is described in the next part of this instruction. It includes full descriptions of ATmega2561 pins and their alternative functions. The module is equipped with a microprocessor reset circuit (when power on) and a reset button for a microprocessor restart. A microprocessor can be programmed with an on-board JTAG programmer over USB or with an ISP interface.  
 +To the seventh pin of port B (named as PB7) the status LED (described as PB7 on the board) is connected. This LED can be used as a status indicator of application software. Low state on PB7 pin causes the status LED to be lit.  
 +The module is equipped with SD memory card slot, where it can be used as a standard microSD memory card. The memory card is connected to the microcontroller via the ISP interface and can be used to store data where data must be maintained even if the power supply is removed.
  
-Module can be powered just from step down transformer with output voltage greater than 6 volts and lower than 15 voltsModule has a wrong-polarization protection circuit (Greatz bridge). POWER LED signalizes connected feed (“POWER” description on the board).+[{{:kit:atmega2561_sch.png?580|Components on the Controller board}}]
  
-Circuit can be equipped with external power switch by connecting it to S2 2-pin on/off connector. If external power switch is not used, S2 2-pin on/off connector must be shorted. +===== Connector Pins and Functions =====
- +
-All ATmega128 signals are available on three connectors on the edge of the board. Connectors pin assignment is described in the next part of this instruction. It includes full descriptions of ATmega128 pins and their alternative functions. The module is equipped with microprocessor reset circuit (when power on) and reset button for microprocessor restart. Microprocessor can be programmed with ISP or JTAG programmer. +
- +
-To the seventh pin of port B (named as PB7) the status LED (described as PB7 on the board) is connected. This LED can be used as a status indicator of application software. Low state on PB7 pin causes the status LED to be lit. +
- +
-Module provides two serial ports described on the board as UART1 and UART2. The first one is 9-pin female connector (DB-9 PC serial port compatible) and the second is 3-pin connector. MAX232 circuit provides signal conversion to serial standard. +
- +
-Multiplexer 74HC4053 provides full use of ports, including those used for microprocessor programming, because in reset state (when programmed) the processor multiplexer switches PE0, PE1 and PB1 signals to ISP and JTAG connector. When the processor is in run state, these signals are switched to connectors on the edge of the board. +
- +
-Module is equipped with external memory (Atmel AT45DB041B). It is 4Mbit serial data flash memory connected to Master/Slave SPI serial interface of the microprocessor. Internal Real Time Clock is connected to external 32.768 kHz crystal resonator named as X2 on the board.  +
- +
- +
-Kontrollermooduli plaat on varustatud alaldiga ja pingestabilisaatoriga. Sisendpingeks sobib plaadile 6-15 V. Voolukadude minimeerimiseks on soovitatav kasutada 6-9 V pingeallikat. Toite ühendamisel peab plaadil toite LED põlema hakkama. Kui see ei sütti, võib põhjus olla puudulikus toites või hoopis lühises Kontrollermooduli plaadil või temaga ühendatud seadmetes. Mikrokontrollerit saab programmeerida üle USB JTAG või ISP liidese kaudu. JTAG meetod toetab lisaks lihtsale programmi pealelaadimisele ka programmikoodi silumist.  +
- +
-Kontrollermooduli plaat on varustatud oleku LED-iga, mis on ühendatud mikrokontrolleri viiguga PB7. LED süttib, kui viik seada madalasse olekusse (loogiline 0). Seda on hea kasutada lihtsa indikaatorina. +
- +
-Plaadile on paigaldatud SD mälukaardi pesa kuhu on võimalik sisestada standardne mikro SD mälukaart. Mälukaart on ühendatud SPI liidese kaudu mikrokontrolleriga ja seda võib kasutada andmete salvestamiseks, juhul kui need peavad säilima ka pärast toite eemaldamist mikrokontrollerilt. +
- +
-[{{:kit:atmega2561_sch.png?580|Kontrollerplaadi komponendid}}] +
- +
-===== Ühenduspesade viigud ja nende funktsioonid =====+
  
 {{:kit:pf_2561.png?450  |}} {{:kit:pf_2561.png?450  |}}
 ~~CL~~ ~~CL~~
-^Nr^Viik^Alternatiivfunktsioon kirjeldus^^+^Nr^Pin^Alternative function Description^^
 |1|VCC|-  |+5 V | |1|VCC|-  |+5 V |
-|2|GND|-  |Maa +|2|GND|-  |GND 
-|3|REF|AREF|ADC võrdluspinge sisend+|3|REF|AREF|Analog Reference Voltage For ADC | 
-|4|GND|-  |Maa +|4|GND|-  |GND 
-|5|PF0|ADC0|ADC sisendkanal 0 | +|5|PF0|ADC0|ADC Input Channel 0 | 
-|6|GND|-|Maa +|6|GND|-|GND 
-|7|PF1|ADC1|ADC sisendkanal 1 | +|7|PF1|ADC1|ADC Input Channel 1 | 
-|8|GND|-|Maa +|8|GND|-|GND 
-|9|PF2|ADC2|ADC sisendkanal 2 | +|9|PF2|ADC2|ADC Input Channel 2 | 
-|10|GND|-|Maa +|10|GND|-|GND 
-|11|PF3|ADC3|ADC sisendkanal 3| +|11|PF3|ADC3|ADC Input Channel 3| 
-|12|GND|-|Maa |+|12|GND|-|GND |
  
-~~PB~~+<pagebreak>
  
 {{:kit:pe-pb-pd.png?450  |}} {{:kit:pe-pb-pd.png?450  |}}
 ~~CL~~ ~~CL~~
-^Nr^Viik^Alternatiivfunktsioon kirjeldus^^ +^Nr^Pin^Alternative function Description^^ 
-|1 |PD7|T2       |Taimer/Loendur2 taktsignaali sisend+|1 |PD7|T2              |Timer/Counter2 Clock Input 
-|2 |PD6|T1       |Taimer/Loendur1 taktsignaali sisend+|2 |PD6|T1              |Timer/Counter1 Clock Input 
-|3 |PD5|XCK1     |USART1 taktsignaali sisend/väljund+|3 |PD5|XCK1            |USART1 External Clock Input/Output
-|4 |PD4|IC1      |Taimer/Loendur1 sündmuste püüdja sisend+|4 |PD4|IC1             |Timer/Counter1 Input Capture Trigger
-|5 |PD3|INT3/TXD1|Väline katkestus 3 või UART1 andmete väljund+|5 |PD3|INT3/TXD1       |External Interrupt3 Input or UART1 Transmit Pin 
-|6 |PD2|INT2/RXD1|Väline katkestus 2 või UART1 andmete sisend+|6 |PD2|INT2/RXD1       |External Interrupt2 Input or UART1 Receive Pin 
-|7 |PD1|INT1/SDA |Väline katkestus 1 või TWI andmesignaal+|7 |PD1|INT1/SDA        |External Interrupt1 Input or TWI Serial Data 
-|8 |PD0|INT0/SCL |Väline katkestus 0 või TWI taktsignaal+|8 |PD0|INT0/SCL        |External Interrupt0 Input or TWI Serial Clock 
-|9 |VCC|-        |+5 V+|9 |VCC|-               |+5V 
-|10|GND|-        |Maa+|10|GND|-               |GND 
-|11|PB7|OC0A/OC1C/PCINT7|Taimer/Loendur2 või Taimer/Loendur1 võrdlustulemuse väljastusüksus või viigu muutuse katkestus 7| +|11|PB7|OC0A/OC1C/PCINT7|Output Compare and PWM Output for Timer/Counter0, Output Compare and PWM Output for Timer/Counter1 or Pin Change Interrupt 7| 
-|12|PB6|OC1B/PCINT6|Taimer/Loendur1 võrdlustulemuse väljastusüksus või viigu muutuse katkestus 6| +|12|PB6|OC1B/PCINT6|Output Compare and PWM Output for Timer/Counter1 or Pin Change Interrupt 6| 
-|13|PB5|OC1A/PCINT5|Taimer/Loendur1 võrdlustulemuse väljastusüksus või viigu muutuse katkestus 5| +|13|PB5|OC1A/PCINT5|Output Compare and PWM Output for Timer/Counter1 or Pin Change Interrupt 5| 
-|14|PB4|OC2A/PCINT4|Taimer/Loendur2 võrdlustulemuse väljastusüksus või viigu muutuse katkestus 4| +|14|PB4|OC2A/PCINT4|Output Compare and PWM Output for Timer/Counter2 or Pin Change Interrupt 4| 
-|15|PB3|MISO/PCINT3|SPI //master// andmete sisend / SPI //slave// väljund või viigu muutuse katkestus 3| +|15|PB3|MISO/PCINT3|SPI Bus Master Input/Slave Output or Pin Change Interrupt 3| 
-|16|PB2|MOSI/PCINT2|SPI //master// andmete väljund / SPI //slave// sisend või viigu muutuse katkestus 2| +|16|PB2|MOSI/PCINT2|SPI Bus Master Output/Slave Input or Pin Change Interrupt 2| 
-|17|PB1|SCK/PCINT1|SPI taktsignaal või viigu muutuse katkestus 1| +|17|PB1|SCK/PCINT1|SPI Bus Serial Clock or Pin Change Interrupt 1| 
-|18|PB0|SS/PCINT0|SPI //slave// valik või viigu muutuse katkestus 0| +|18|PB0|SS/PCINT0|SPI Slave Select input or Pin Change Interrupt 0| 
-|19|PE7|INT7/IC3/CLK0 |Väline katkestus või Taimer/Loendur3 sündmuste püüdja sisend või süsteemi jagatud takt+|19|PE7|INT7/IC3/CLK0 |External Interrupt Input, Timer/Counter3 Input Capture Trigger or Divided System Clock
-|20|PE6|INT6/T3  |Väline katkestus või Taimer/Loendur3 taktsignaali sisend+|20|PE6|INT6/T3  |External Interrupt Input or Timer/Counter3 Clock Input
-|21|PE5|INT5/OC3C|Väline katkestus või Taimer/Loendur3 võrdlustulemuse väljastusüksus C| +|21|PE5|INT5/OC3C|External Interrupt Input or Output Compare and PWM Output for Timer/Counter3
-|22|PE4|INT4/OC3B|Väline katkestus 4 või Taimer/Loendur3 võrdlustulemuse väljastusüksus B| +|22|PE4|INT4/OC3B|External Interrupt4 Input or Output Compare and PWM Output for Timer/Counter3
-|23|PE3|AIN1/OC3A|Komparaatori negatiivne sisend või Taimer/Loendur3 võrdlustulemuse väljastusüksus A+|23|PE3|AIN1/OC3A|Analog Comparator Negative Input or Output Compare and PWM Output A for Timer/Counter3
-|24|PE2|AIN0/XCK0|Komparaatori positiivne sisend või USART0 taktsignaali sisend/väljund+|24|PE2|AIN0/XCK0|Analog Comparator Positive Input or USART0 external clock input/output
-|25|PE1|PDO/TXD0 |ISP Programmeerimisliidese väljund või UART0 andmete väljund+|25|PE1|PDO/TXD0 |ISP Programming Interface Data Output or USART0 Transmit Pin
-|26|PE0|PDI/RXD0/INT8 |ISP Programmeerimisliidese sisend või UART0 andmete sisend või väline katkestus 8|+|26|PE0|PDI/RXD0/INT8 |ISP Programming Interface Data Input, USART0 Receive Pin or Pin Change Interrupt 8|
  
 {{:kit:pa-pc_2561.png?450  |}} {{:kit:pa-pc_2561.png?450  |}}
 ~~CL~~ ~~CL~~
-^Nr^Viik^Alternatiivfunktsioon kirjeldus^^ +^Nr^Pin^Alternative function Description^^ 
-|1 |GND|-  |Maa |+|1 |GND|-  |Gnd |
 |2 |VCC|-  |+5 V | |2 |VCC|-  |+5 V |
-|3 |PA0|AD0|Välismälu-liidese aadressi- ja andmebitt 0 | +|3 |PA0|AD0|External memory interface address and data bit 0 | 
-|4 |PA1|AD1|Välismälu-liidese aadressi- ja andmebitt 1 | +|4 |PA1|AD1|External memory interface address and data bit 1 | 
-|5 |PA2|AD2|Välismälu-liidese aadressi- ja andmebitt 2 | +|5 |PA2|AD2|External memory interface address and data bit 2 | 
-|6 |PA3|AD3|Välismälu-liidese aadressi- ja andmebitt 3 | +|6 |PA3|AD3|External memory interface address and data bit   
-|7 |PA4|AD4|Välismälu-liidese aadressi- ja andmebitt 4 | +|7 |PA4|AD4|External memory interface address and data bit   
-|8 |PA5|AD5|Välismälu-liidese aadressi- ja andmebitt 5 | +|8 |PA5|AD5|External memory interface address and data bit   
-|9 |PA6|AD6|Välismälu-liidese aadressi- ja andmebitt 6 | +|9 |PA6|AD6|External memory interface address and data bit   
-|10|PA7|AD7|Välismälu-liidese aadressi- ja andmebitt 7 | +|10|PA7|AD7|External memory interface address and data bit   
-|11|PG4|TOSC1|RTC Taimer/Loendur2                      +|11|PG4|TOSC1|RTC Oscillator Timer/Counter2                    
-|12|PG5|OC0B|Taimer/Loendur0 võrdlustulemuse väljastusüksus B+|12|PG5|OC0B|Output Compare and PWM Output B for Timer/Counter0
-|13|PG2|ALE|Välismälu-liidese aadressi lukustussignaal +|13|PG2|ALE|Address Latch Enable to external memory            
-|14|PG3|TOSC2|RTC Taimer/Loendur2                      +|14|PG3|TOSC2|RTC Oscillator Timer/Counter2                    
-|15|PC6|A14|Välismälu-liidese aadressi- ja andmebitt 14| +|15|PC6|A14|External Memory interface address bit 14           
-|16|PC7|A15|Välismälu-liidese aadressi- ja andmebitt 15| +|16|PC7|A15|External Memory interface address bit 15           
-|17|PC4|A12|Välismälu-liidese aadressi- ja andmebitt 12| +|17|PC4|A12|External Memory interface address bit 12           
-|18|PC5|A13|Välismälu-liidese aadressi- ja andmebitt 13| +|18|PC5|A13|External Memory interface address bit 13           
-|19|PC2|A10|Välismälu-liidese aadressi- ja andmebitt 10| +|19|PC2|A10|External Memory interface address bit 10           
-|20|PC3|A11|Välismälu-liidese aadressi- ja andmebitt 11| +|20|PC3|A11|External Memory interface address bit 11           
-|21|PC0|A8 |Välismälu-liidese aadressi- ja andmebitt 8 | +|21|PC0|A8 |External Memory interface address bit            
-|22|PC1|A9 |Välismälu-liidese aadressi- ja andmebitt 9 | +|22|PC1|A9 |External Memory interface address bit            
-|23|PG0|WR |Välismälu kirjutussignaal                  +|23|PG0|WR |Write strobe to external memory                    
-|24|PG1|RD |Välismälu lugemissignaal                   +|24|PG1|RD |Read strobe to external memory                     
-|25|GND|-  |Maa                             |+|25|GND|-  |GND                            |
 |26|3V3|-  |+3,3 V                             | |26|3V3|-  |+3,3 V                             |
  
-~~PB~~+<pagebreak>
  
-===== Ühendamine =====+===== Connecting =====
  
-Kontrollermooduli ühendamisel teiste moodulite ning seadmetega tuleb esmalt veendudaet Kontrollermooduli toide ei ole ühendatudAjal kui plaat on pingestatudon ohtlik seadmeid ühendadaMooduleid ja seadmeid tuleb omavahel ühendada ettevaatlikult ja liigset jõudu kasutamata. Vale käsitlemise korral võivad piikriba piigid kergesti kõveraks painduda. Programmeerimiseks ja nõrkvoolu (alla 500 mAtoiteks võib Kontrollermooduli ühendada ainult arvutiga kasutades mini USB kaablitKui kasutusel on moodulid, mis vajavad summaarselt rohkem voolu kui 500 mA tuleb seadmete toiteks kasutada eraldi toiteallikatKui Kontrollerplaadiga on ühendatud välise toiteallika pistiklülitub moodul automaatselt USB toitelt välisele toitele+When connecting the controller module with other modules or devicesyou must first make sure that the controller module power supply is not connectedModules and devices must be connected to each other with care. It is important not to use excessive forcewrong handling may damage the moduleFor programming and to power with low currency (less than 500mAyou must only connect the controller module with a PC using an USB portIf you are using modules that need to use a greater current than 500 mA, you must use a separate power sourceIf a controller module is connected to a separate power sourcethen the module automatically does not use USB a power supply
  
-[{{:kit:kit_2561_test.jpg?580|Kontrollerplaadi ühendamine toite ja programmaatoriga}}]+[{{:kit:atmega2561_connected.jpg?580|Controller module connected to power supply and programmer}}]
  
en/hardware/homelab/controller/atmega2561.1319193608.txt.gz · Last modified: (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0