AdBun-M4G9 development board for Toshiba TMPM4G9F15FG MCU
The TMPM4G9F15FG is ARM® Cortex®-M4 based microcontroller, which provides, low-power, high-speed, high code density and fast interrupt response times required for real-time applications. This microcontroller can use for a home appliance, OA, housing equipment, AV equipment, motor control and industrial apparatus, etc.
Based on an ARM Cortex-M4 core, with a maximum operating frequency of 160 MHz, the TMPM4G9F15FG incorporates 1536 Kbyte of flash memory and 194 Kbyte SRAM required for secure communications control.
- TMPM4G9F15FG in LQFP176 package
- ARM®32-bit Cortex®-M4 CPU, 160 MHz max CPU frequency
- 194KB RAM
- 1536KB Flash
- TSPI (9)
- I2C (5)
- UART (8)
- PWM (13)
- 12bit ADC (24)
- 8bit DAC (2)
- GPIO (150)
- Compatible with a wide range of commercially available shields
- Power option
- 4 Push Switch
- 4 LED
- 2 Variable resistor
- Built-in USB drag 'n' drop FLASH programmer
RAM size (192Kbytes) and BACKUP RAM (2Kbytes).
CN9 Pin Header¶
The green-framed pins of CN9 are working with 3.3V I/O without level-shifting and connected to the terminal of TMPM4G9.
CN5 Pin Header¶
The green-framed pins of CN5 are working with 3.3V I/O without level-shifting and connected to the terminal of TMPM4G9.
CN4 Pin Header¶
The green-framed pins of CN4 are working with 3.3V I/O without level-shifting and connected to the terminal of TMPM4G9, therefore PN0 to PN5 can work as Analog IN with maximum voltage of 3.3V.
CN18 Pin Header¶
The green-framed pins of CN18 are working with 3.3V I/O without level-shifting and connected to the terminal of TMPM4G9.
CN12 Pin Header¶
The green-framed pins of CN12 are working with 3.3V I/O without level-shifting and connected to the terminal of TMPM4G9.
Arduino Pin Header¶
When you use the Arduino pin, you need to short that connected Arduino pin on CN4, CN12, and CN18. E.g. short: 1-2, 3-4, 5-6 etc: CN12 Arduino pin header of AdBun-M4G9 Supports 5V I/O only. PN0 to PN5 with level-shifting cannot work as Analog IN anymore.
Arduino Pin Header Usage Setting¶
When using the Arduino's pin header, it is necessary to short-circuit the red line as shown below.
On Board Peripheral Usage Setting¶
When using LED, Push SW, volume, USB and Dip SW on the AdBun-M4G9 board, it is necessary to short-circuit the red line as shown below. The purple line is shorted at shipment. If your AdBun-M4G9 is not shorted purple line, you need to short-circuit purple line.
|PWM Pins||UART Pins||I2C Pins||LED Pins||Switch Pins|
|PA5||USBTX = PU0||SDA = PG2||LED1 = PE4||SW1 = PL4|
|PB2||USBRX = PU1||SCL = PG3||LED2 = PE5||SW2 = PL5|
|PB4||LED2 = PE6||SW3 = PV0|
|PD2||LED2 = PE7||SW4 = PV1|
|Arduino I/O Pins||Arduino Analog Pins||Arduino PWM Pins|
|D0 = PJ0||A0 = PN0||D3|
|D1 = PJ1||A1 = PN1||D5|
|D2 = PF4||A2 = PN2||D6|
|D3 = PB2||A3 = PN3||D9|
|D4 = PF5||A4 = PN4||D10 (Depend on S2 setting)|
|D5 = PB4||A5 = PN5||D11 (Depend on S2 setting)|
|D6 = PC2||D13|
|D7 = PF6|
|D8 = PA4|
|D9 = PC4|
|D10 = PA0 (Depend on S2 setting)|
|D11 = PA3 (Depend on S2 setting)|
|D12 = PA2|
|D13 = PA1|
|D14 = PG2|
|D15 = PG3|
|General Purpose Input / Output|
|PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7|
|PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7|
|PC0, PC1, PC2, PC3, PC4, PC5, PC6, PC7|
|PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7|
|PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7|
|PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7|
|PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7|
|PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7|
|PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7|
|PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7|
|PL0, PL1, PL2, PL3, PL4, PL5, PL6, PL7|
|PM0, PM1, PM2, PM3, PM4, PM5, PM6, PM7|
|PN0, PN1, PN2, PN3, PN4, PN5, PN6, PN7|
|PP0, PP1, PP2, PP3, PP4, PP5, PP6, PP7|
|PR0, PR1, PR2, PR3, PR4, PR5, PR6, PR7|
|PT0, PT1, PT2, PT3, PT4, PT5|
|PU0, PU1, PU2, PU3, PU4, PU5, PU6, PU7|
|PV0, PV1, PV2, PV3, PV4, PV5, PV6, PV7|
|PW0, PW1, PW2, PW3, PW4, PW5, PW6, PW7|
|PY0, PY1, PY2, PY3, PY4|
Please update the interface firmware in the following way when upgrading, or if it has been deleted for some reasons.
- Download Flash programmer that programming tool to program I/F firmware.
When you use the flash programmer, you need to agree "SOFTWARE LICENSE AGREEMENT"
Download Flash Programmer
Download Adbun-M4G9 Firmware
If you update I/F firmware, before you update the firmware, you need to erase old firmware once.
How to erase I/F firmware
- Short CN14
- Short 5-6 on CN3
- Connect PC to CN15 on Adbun-M4G9 by mini USB cable
- Start up Flash Programmer
Click FlashProgCM.exe on your PC.
- Select [Setup]-[Device]
When you cannot select "Setup device", remove USB cable and select [File]-[Reconnect].
And after procedure 6, connect PC to CN15 by USB cable again.
- Select Device "TMPM366FY_EraseALL" and push Apply button on Device tab.
- Select "USB" at Communication tab and push OK button.
- Select [Edit]-[Chip Erase]
Programming procedure is as follow.
9. Remove USB cable
10. Select [File]-[Reconnect] (If not able to select this, it's OK)
11. Select [Setup]-[device]
12. Select Device "TMPM366FY" and push the Apply button.
13. Specify firmware that download this site on Object File tab.
14. Reconnect USB cable
15. Push OK button on Setup sheet.
16. Select [Edit]- [Erase/Program]
(If you meet password error, you select "Device is Blank" in Setup Password sheet.)
17. Jumper settings
18. Remove jumper on CN14
19. Remove USB cable once