This is an old revision of the document!


Controller module ATmega2561 v1.x

Needs translation!

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
    • 8-channel 10-bit A/D converter
    • 256 kB Flash memory (program memory)
    • 4kB EEPROM memory (data memory)
    • 6 channel programmable PWM
  • Integrated JTAG programmer (based on FTDI2232)
  • 14,7456 MHz clock
  • Ethernet module with RJ45 connector
  • SD card slot
  • Status LED (PB7)and Power LED
  • Programmable button (PC2) and reset button
  • All Atmega signals available on three connectors (1: ports D, B, E; 2: ports G, C, A; 3: port F with ADC I/O lines)
  • 2,1 mm power socket
  • Automatic power switch USB or external power supply
  • Built-in voltage stabilizer, with 5 V and 3,3 V output
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.

Module can be powered just from step down transformer with output voltage greater than 6 volts and lower than 15 volts. In order to reduce power losses it's recommended to use power supply between 6-9V. POWER LED signalizes 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 microprocessor reset circuit (when power on) and reset button for microprocessor restart. A microprocessor can be programmed with on-board JTAG programmer over USB or with 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.

Module is equipped with SD memory card slot, where can be used standard microSD memory card. 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 power supply is removed.

Kontrollerplaadi komponendid

Connector Pins and Functions

NrViikAlternatiivfunktsioon / kirjeldus
1VCC- +5 V
2GND- GND
3REFAREFAnalog reference voltage for ADC
4GND- GND
5PF0ADC0ADC input channel 0
6GND-GND
7PF1ADC1ADC input channel 1
8GND-GND
9PF2ADC2ADC input channel 2
10GND-GND
11PF3ADC3ADC input channel 3
12GND-GND

 

NrViikAlternatiivfunktsioon / kirjeldus
1 PD7T2 Timer/Counter2 Clock Input
2 PD6T1 Timer/Counter1 Clock Input
3 PD5XCK1 USART1 External Clock Input/Output
4 PD4IC1 Timer/Counter1 Input Capture Trigger
5 PD3INT3/TXD1 External Interrupt3 Input or UART1 Transmit Pin
6 PD2INT2/RXD1 External Interrupt2 Input or UART1 Receive Pin
7 PD1INT1/SDA External Interrupt1 Input or TWI Serial Data
8 PD0INT0/SCL External Interrupt0 Input or TWI Serial Clock
9 VCC- +5V
10GND- GND
11PB7OC0A/OC1C/PCINT7Output Compare and PWM Output A for Timer/Counter0, Output Compare and PWM Output C for Timer/Counter1 or Pin Change Interrupt 7
12PB6OC1B/PCINT6 Output Compare and PWM Output B for Timer/Counter1 or Pin Change Interrupt 6
13PB5OC1A/PCINT5

Interrupt 5|

14PB4OC2A/PCINT4

Interrupt 4|

15PB3MISO/PCINT3SPI Bus Master Input/Slave Output or Pin Change Interrupt 3
16PB2MOSI/PCINT2SPI Bus Master Output/Slave Input or Pin Change Interrupt 2
17PB1SCK/PCINT1SPI Bus Serial Clock or Pin Change Interrupt 1
18PB0SS/PCINT0SPI Slave Select input or Pin Change Interrupt 0
19PE7INT7/IC3/CLK0 External Interrupt 7 Input, Timer/Counter3 Input Capture Trigger or Divided System Clock
20PE6INT6/T3 External Interrupt 6 Input or Timer/Counter3 Clock Input
21PE5INT5/OC3CExternal Interrupt 5 Input or Output Compare and PWM Output C for Timer/Counter3
22PE4INT4/OC3BExternal Interrupt4 Input or Output Compare and PWM Output B for Timer/Counter3
23PE3AIN1/OC3A

Timer/Counter3|

24PE2AIN0/XCK0Analog Comparator Positive Input or USART0 external clock input/output
25PE1PDO/TXD0 ISP Programming Interface Data Output or USART0 Transmit Pin
26PE0PDI/RXD0/INT8 ISP Programming Interface Data Input, USART0 Receive Pin or Pin Change Interrupt 8

NrViikAlternatiivfunktsioon / kirjeldus
1 GND- Maa
2 VCC- +5 V
3 PA0AD0Välismälu-liidese aadressi- ja andmebitt 0
4 PA1AD1Välismälu-liidese aadressi- ja andmebitt 1
5 PA2AD2Välismälu-liidese aadressi- ja andmebitt 2
6 PA3AD3Välismälu-liidese aadressi- ja andmebitt 3
7 PA4AD4Välismälu-liidese aadressi- ja andmebitt 4
8 PA5AD5Välismälu-liidese aadressi- ja andmebitt 5
9 PA6AD6Välismälu-liidese aadressi- ja andmebitt 6
10PA7AD7Välismälu-liidese aadressi- ja andmebitt 7
11PG4TOSC1RTC Taimer/Loendur2
12PG5OC0BTaimer/Loendur0 võrdlustulemuse väljastusüksus B
13PG2ALEVälismälu-liidese aadressi lukustussignaal
14PG3TOSC2RTC Taimer/Loendur2
15PC6A14Välismälu-liidese aadressi- ja andmebitt 14
16PC7A15Välismälu-liidese aadressi- ja andmebitt 15
17PC4A12Välismälu-liidese aadressi- ja andmebitt 12
18PC5A13Välismälu-liidese aadressi- ja andmebitt 13
19PC2A10Välismälu-liidese aadressi- ja andmebitt 10
20PC3A11Välismälu-liidese aadressi- ja andmebitt 11
21PC0A8 Välismälu-liidese aadressi- ja andmebitt 8
22PC1A9 Välismälu-liidese aadressi- ja andmebitt 9
23PG0WR Välismälu kirjutussignaal
24PG1RD Välismälu lugemissignaal
25GND- Maa
263V3- +3,3 V

 

Ühendamine

Kontrollermooduli ühendamisel teiste moodulite ning seadmetega tuleb esmalt veenduda, et Kontrollermooduli toide ei ole ühendatud. Ajal kui plaat on pingestatud, on ohtlik seadmeid ühendada. Mooduleid 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 mA) toiteks võib Kontrollermooduli ühendada ainult arvutiga kasutades mini USB kaablit. Kui kasutusel on moodulid, mis vajavad summaarselt rohkem voolu kui 500 mA tuleb seadmete toiteks kasutada eraldi toiteallikat. Kui Kontrollerplaadiga on ühendatud välise toiteallika pistik, lülitub moodul automaatselt USB toitelt välisele toitele.

Kontrollerplaadi ühendamine toite ja programmaatoriga
en/hardware/homelab/controller/atmega2561.1319218254.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