[EN] Arduino:ET-BASE AVR EASY4809

This article is the use of ETT‘s ET-BASE AVR EASU4809 board based on Microchip’s ATMEGA4809 microcontroller, which is used as an Arduino board running at 20MHz with 40KB FLASH ROM, 256 bytes EEPROM, 6KB of RAM, and a 10-bit ADC, which is said to have significantly higher features than the ATmega 368P used with the Arduino Uno or Arduino Nano. In addition, the board selected this time has more features than basic Arduino boards which you can read further from the web page of the board.

(Figure. 1 ET-BASE AVR EASY4809)

ATmega4809

The ATmega4809 microcontroller is an 8-bit microcontroller based on RISC architecture and the features are:

  1. Flash ROM 48KB, writable/erasable 10,000 times
  2. SRAM 6KB
  3. Writable/erasable 100,000 times
  4. 4 channels UART
  5. SPI channel
  6. i2C channel
  7. 11 channels PWM
  8. 16 channels Input Capture
  9. 5 channels 16-bit Timer
  10. 16 channels 10-bit ADC
  11. 8 channels Even System
  12. 41 pins GPIO
    1. PA0..PA7
    2. PB0..PB5
    3. PC0..PC7
    4. PD0..PD7
    5. PE0..PE3
    6. PF0..PF6
  13. 10 sources Asynchronous external interrupts
  14. 3 Sleep mode eg. Idle, Standby and Power-down

Board installation

The steps for installing board information to use with Arduino IDE are as follows.

  1. Go to File/Preferences menu. Add the following items of MCUdude
    https://mcudude.github.io/MegaCoreX/package_MCUdude_MegaCoreX_index.json
  2. Go to Tools/Board:xxx/Board Manager …
  3. Search for MegaCoreX and install as shown in Figure 2.
  4. Select the board list as MegaCoreX/ATmega4809 as shown in Figure 3.
  5. Ready to use as shown in the Figure 4 but make sure that the following values are correct.
    1. clock is internal 20 MHz
    2. Bootloader เป็น Optiboot (UART0 default pins)
    3. Port connected to the board
(Figure. 2 MegaCoreX)
(Figure. 3 Menu list of MegaCoreX)
(Figure. 4 ATmega4809’s configuration list)

Example Code

An example code that comes with Board ET-BASE AVR EASY4809 of ETT is as follows:

  • Examples of ADC usage
    • ADC 0-7
    • ADC 8-11
    • ADC 12-15
  • Example of Blink LED on board
  • Examples of various data transmissions.
    • LED Moving ALL
    • LED Moving D0-D7
    • LED Moving D8-D13
    • LED Moving D14-D21
    • LED Moving D22-D29
    • LED Moving D30-D33
    • LED Moving D34-D40
  • RS232 CH1 communication example.
  • RS485 communication example
    • RS485 CH1
    • RS485 CH2

Example of finding Prime Number from numbers 2-2,000 as illustrated in article LGT8F328P. The result is as shown in Figure 5, which is considered with a speed increase of 4MHz from 16MHz to 20MHz, making the speed much better. Compared to the LGT8F328P, which operates at 32MHz but is slower, the ATmega4809 is an interesting 8-bit microcontroller.

(Figure. 5 Result of finding Prime Number )

Conclusion

From this article, you will find that Microchip has continued to develop the AVR family of microcontrollers. In this version, there is a noticeably higher potential. And can be used with a wide range of Arduino class libraries, and the ET-BASE AVR EASY4809 board has fully enabled the pins of this chip. Since we see that this chip is put in the Arduino Nano’s frame, the I/O is not fully used. In addition, the board also has a connection to external devices for ease of use. Finally, have fun with programming.

If you want to discuss or talk with us, feel free to leave comments below!

(C) 2020-2021, By Jarut Busarathid and Danai Jedsadathitikul
Updated 2021-10-11