This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:hardware:homelab:controller [2010/03/09 08:37] – raivo.sell | en:hardware:homelab:controller [2020/07/20 12:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Controller module ====== | ====== Controller module ====== | ||
| - | Main module | + | The Controller |
| - | * Atmega128-16AU microcontroller in the TQFP64 package (ROHS) | + | Robotic HomeLab kit has currently |
| - | * 8-channel 10-bit A/D converter | + | Below, you can choose a suitable Controller module documentation. |
| - | * 128kB Flash memory (program memory) | + | |
| - | * 4kB EEPROM memory (data memory) | + | |
| - | * 6 channel programmable PWM | + | |
| - | * Standard 6-pin In system programming interface (ISP) connector | + | |
| - | * 16MHz clock (can be changed very easy, crystal is mounted on small 2-pin socket) | + | |
| - | * Real Time clock (RTC) | + | |
| - | * Reset protection circuitry for the ATmega128 | + | |
| - | * Status LED and Power LED | + | |
| - | * Standard DB-9 serial port connector with RS232 transmitter / receiver | + | |
| - | * All Atmega signals available on three connectors (1. D, B, E ports, 2. G, C, A ports, 3. F port with ADC I/O lines) | + | |
| - | * Reset button | + | |
| - | * JTAG 10-pin Interface connector | + | |
| - | * 2-pin on/of connector – can be used for connecting on/off button | + | |
| - | * DC 2.1mm power connector | + | |
| - | * Built-in voltage stabilizer | + | |
| - | [{{ : | + | ATXmega128A1U (version 3.x) |
| - | Module is equipped with AC/DC rectifier circuit and LDO voltage stabilizer (with low dropout) - external feeder with voltage stabilization is not needed. | + | [[en: |
| - | + | ||
| - | Module can be powered just from step down transformer with output voltage greater than 6 Volts and lower than 15 Volts. Module has wrong-polarization protection circuit | + | |
| - | + | ||
| - | 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. | + | |
| - | + | ||
| - | All ATmega128 signals are available on three connectors on the edge of the board. Connectors pin assignment is described in 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) is connected to the status LED (described as PB7 on the board). This LED can be used as a status indicator of application software. Low state on PB7 pin causes that the status LED is lighting. | + | ATmega2561 |
| - | + | ||
| - | 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. Required signal conversion to serial standard provides MAX232 circuit. | + | |
| - | + | ||
| - | Multiplexer 74HC4053 provides full use of ports, also these that are used for microprocessor programming, | + | |
| - | Module is equipped with external memory (Atmel | + | [[en: |
| - | [{{: | ||
| - | ===== Connector pins and functions ===== | + | ---- |
| - | [{{ : | + | ATmega128 |
| - | ^Nr^Viik^Alternatiivfunktsioon / kirjeldus^^ | + | [[en: |
| - | |1 |PD7|T2 | + | |
| - | |2 |PD6|T1 | + | |
| - | |3 |PD5|XCK1 | + | |
| - | |4 |PD4|IC1 | + | |
| - | |5 |PD3|INT3/ | + | |
| - | |6 |PD2|INT2/ | + | |
| - | |7 |PD1|INT1/ | + | |
| - | |8 |PD0|INT0/ | + | |
| - | |9 |VCC|- | + | |
| - | |10|GND|- | + | |
| - | |11|PB7|OC2/ | + | |
| - | |12|PB6|OC1B | + | |
| - | |13|PB5|OC1A | + | |
| - | |14|PB4|OC0 | + | |
| - | |15|PB3|MISO | + | |
| - | |16|PB2|MOSI | + | |
| - | |17|PB1|SCK | + | |
| - | |18|PB0|SS | + | |
| - | |19|PE7|INT7/ | + | |
| - | |20|PE6|INT6/ | + | |
| - | |21|PE5|INT5/ | + | |
| - | |22|PE4|INT4/ | + | |
| - | |23|PE3|AIN1/ | + | |
| - | |24|PE2|AIN0/ | + | |
| - | |25|PE1|PDO/ | + | |
| - | |26|PE0|PDI/ | + | |
| - | [{{ : | ||
| - | |||
| - | ^Nr^Viik^Alternatiivfunktsioon / kirjeldus^^ | ||
| - | |1 |GND|- | ||
| - | |2 |VCC|- | ||
| - | |3 |PA0|AD0|Välismälu-liidese aadressi- ja andmebitt 0 | | ||
| - | |4 |PA1|AD1|Välismälu-liidese aadressi- ja andmebitt 1 | | ||
| - | |5 |PA2|AD2|Välismälu-liidese aadressi- ja andmebitt 2 | | ||
| - | |6 |PA3|AD3|Välismälu-liidese aadressi- ja andmebitt 3 | | ||
| - | |7 |PA4|AD4|Välismälu-liidese aadressi- ja andmebitt 4 | | ||
| - | |8 |PA5|AD5|Välismälu-liidese aadressi- ja andmebitt 5 | | ||
| - | |9 |PA6|AD6|Välismälu-liidese aadressi- ja andmebitt 6 | | ||
| - | |10|PA7|AD7|Välismälu-liidese aadressi- ja andmebitt 7 | | ||
| - | |11|- |- |Pole ühendatud | ||
| - | |12|- |- |Pole ühendatud | ||
| - | |13|PG2|ALE|Välismälu-liidese aadressi lukustussignaal | | ||
| - | |14|- |- |Pole ühendatud | ||
| - | |15|PC6|A14|Välismälu-liidese aadressi- ja andmebitt 14| | ||
| - | |16|PC7|A15|Välismälu-liidese aadressi- ja andmebitt 15| | ||
| - | |17|PC4|A12|Välismälu-liidese aadressi- ja andmebitt 12| | ||
| - | |18|PC5|A13|Välismälu-liidese aadressi- ja andmebitt 13| | ||
| - | |19|PC2|A10|Välismälu-liidese aadressi- ja andmebitt 10| | ||
| - | |20|PC3|A11|Välismälu-liidese aadressi- ja andmebitt 11| | ||
| - | |21|PC0|A8 |Välismälu-liidese aadressi- ja andmebitt 8 | | ||
| - | |22|PC1|A9 |Välismälu-liidese aadressi- ja andmebitt 9 | | ||
| - | |23|PG0|WR |Välismälu kirjutussignaal | ||
| - | |24|PG1|RD |Välismälu lugemissignaal | ||
| - | |25|- |- |Pole ühendatud | ||
| - | |26|- |- |Pole ühendatud | ||
| - | |||
| - | [{{ : | ||
| - | |||
| - | ^Nr^Viik^Alternatiivfunktsioon / kirjeldus^^ | ||
| - | |1|VCC|- | ||
| - | |2|GND|- | ||
| - | |3|REF|AREF|ADC võrdluspinge sisend| | ||
| - | |4|GND|- | ||
| - | |5|PF0|ADC0|ADC sisendkanal 0 | | ||
| - | |6|GND|-|Maa | | ||
| - | |7|PF1|ADC1|ADC sisendkanal 1 | | ||
| - | |8|GND|-|Maa | | ||
| - | |9|PF2|ADC2|ADC sisendkanal 2 | | ||
| - | |10|GND|-|Maa | | ||
| - | |11|PF3|ADC3|ADC sisendkanal 3| | ||
| - | |12|GND|-|Maa | | ||
| - | |13|PF4|ADC4/ | ||
| - | |14|GND|-|Maa | | ||
| - | |15|PF5|ADC5/ | ||
| - | |16|GND|-|Maa | | ||
| - | |17|PF6|ADC6/ | ||
| - | |18|GND|-|Maa | | ||
| - | |19|PF7|ADC7/ | ||
| - | |20|GND|-|Maa | | ||
| - | |||
| - | ===== Connecting module ===== | ||
| - | |||
| - | When connecting the controller module with other peripheral modules and devices, the last thing is connecting the power supply. If power is on, it is dangerous to connect and disconnect external devices. Modules have to be connected with each other with great care without applying strong force as this can bend connectors. JTAG-ICE programmer have to be connected to the correct port and the ribbon cable directs out from board (red stripe is by the power supply connector side). | ||
| - | |||
| - | [{{: | ||