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 09:14] – 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^Pin^Alternative function / Description^^ | + | [[en: |
| - | |1|PD7|T2|Timer/ | + | |
| - | |2|PD6|T1|Timer/ | + | |
| - | |3|PD5|XCK1|USART1 External Clock Input/ | + | |
| - | |4|PD4|IC1|Timer/ | + | |
| - | |5|PD3|INT3/ | + | |
| - | |6|PD2|INT2/ | + | |
| - | |7|PD1|INT1/ | + | |
| - | |8|PD0|INT0/ | + | |
| - | |9|VCC|-|+5V | | + | |
| - | |10|GND|-|GND | | + | |
| - | |11|PB7|OC2/ | + | |
| - | |12|PB6|OC1B|Output Compare and PWM Output B for Timer/ | + | |
| - | |13|PB5|OC1A|Output Compare and PWM Output A for Timer/ | + | |
| - | |14|PB4|OC0|Output Compare and PWM Output for Timer/ | + | |
| - | |15|PB3|MISO|SPI Bus Master Input/Slave Output | | + | |
| - | |16|PB2|MOSI|SPI Bus Master Output/ | + | |
| - | |17|PB1|SCK|SPI Bus Serial Clock | | + | |
| - | |18|PB0|SS|SPI Slave Select Input | | + | |
| - | |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^Pin^Alternative function / Description^^ | ||
| - | |1|GND|-|GND | | ||
| - | |2|VCC|-|+5V | | ||
| - | |3|PA0|AD0|External memory interface address and data bit 0 | | ||
| - | |4|PA1|AD1|External memory interface address and data bit 1 | | ||
| - | |5|PA2|AD2|External memory interface address and data bit 2 | | ||
| - | |6|PA3|AD3|External memory interface address and data bit 3 | | ||
| - | |7|PA4|AD4|External memory interface address and data bit 4 | | ||
| - | |8|PA5|AD5|External memory interface address and data bit 5 | | ||
| - | |9|PA6|AD6|External memory interface address and data bit 6 | | ||
| - | |10|PA7|AD7|External memory interface address and data bit 7 | | ||
| - | |11|-|NC|Not connected | | ||
| - | |12|-|NC|Not connected | | ||
| - | |13|PG2|ALE|Address Latch Enable to external memory | | ||
| - | |14|-|NC|Not connected | | ||
| - | |15|PC6|A14|External memory interface address and data bit 14 | | ||
| - | |16|PC7|A15|External memory interface address and data bit 15 | | ||
| - | |17|PC4|A12|External memory interface address and data bit 12 | | ||
| - | |18|PC5|A13|External memory interface address and data bit 13 | | ||
| - | |19|PC2|A10|External memory interface address and data bit 10 | | ||
| - | |20|PC3|A11|External memory interface address and data bit 11 | | ||
| - | |21|PC0|A8|External memory interface address and data bit 8 | | ||
| - | |22|PC1|A9|External memory interface address and data bit 9 | | ||
| - | |23|PG0|WR|Write strobe to external memory | | ||
| - | |24|PG1|RD|Read strobe to external memory | | ||
| - | |25|-|NC|Not connected | | ||
| - | |26|-|NC|Not connected| | ||
| - | |||
| - | [{{ : | ||
| - | |||
| - | ^Nr^Pin^Alternative function / Description^^ | ||
| - | |1|VCC|-|+5V | | ||
| - | |2|GND|-|GND | | ||
| - | |3|REF|AREF|Analog reference voltage for ADC | | ||
| - | |4|GND|-|GND | | ||
| - | |5|PF0|ADC0|ADC input channel 0 | | ||
| - | |6|GND|-|GND | | ||
| - | |7|PF1|ADC1|External memory interface address and data bit 4 | | ||
| - | |8|GND|-|GND | | ||
| - | |9|PF2|ADC2|External memory interface address and data bit 6 | | ||
| - | |10|GND|-|GND | | ||
| - | |11|PF3|ADC3|Not connected | | ||
| - | |12|GND|-|GND | | ||
| - | |13|PF4|ADC4/ | ||
| - | |14|GND|-|GND | | ||
| - | |15|PF5|ADC5/ | ||
| - | |16|GND|-|GND | | ||
| - | |17|PF6|ADC6/ | ||
| - | |18|GND|-|GND | | ||
| - | |19|PF7|ADC7/ | ||
| - | |20|GND|-|GND | | ||
| - | |||
| - | ===== 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). | ||
| - | |||
| - | [{{: | ||