Library for Mini-DK board

Dependencies:   SPI_TFT_ILI9320

Dependents:   LPC1768_Mini-DK_EasyWeb_DM9161 LPC1768_Mini-DK LPC1768_Mini-DK

Fork of Mini-DK by Frank Vannieuwkerke

Mini-DK board overview (Micro SD connector is at the bottom side)

One serial interface , uses CP2102 (USB to RS232 interface, support ISP download )

RJ45-10/100M Ethernet network interface (Ethernet PHY: DM9161)

2.8 inch TFT color LCD interface (SPI interface or 16Bit parallel interface)

Touch panel controller XPT2046 (ADS7843 compatible)

USB 2.0 interface, USB host and USB Device interface.

TF SD / MMC card (SPI) interface.

Two user buttons, One Reset button and ISP button , One INT0 button, two user-programmable LED lights

Serial ISP download, Standard 20-pin JTAG download simulation debugging interface.

Selection between external 5V power supply or USB 5V supply.

Board size: 95mm * 78mm

All IO available on extension connectors

/media/uploads/frankvnk/mini-dk_top.jpg

04/01/13

Erik Olieman (http://mbed.org/users/Sissors/) joined the code development for the Mini-DK board.

Thanks to his input, we were able to obtain a tremendous speed gain, remove warnings, ...

An overview of all modifications is stored in modifs.h

The old page (http://mbed.org/users/frankvnk/code/LPC1768_Mini-DK/) contains the demo code.

IMPORTANT : Due to a change in the mbed libraries (Stream()), we cannot use the printf instruction - we need to use <SPI_TFT>.printf (example - see main.cpp in http://mbed.org/users/frankvnk/code/LPC1768_Mini-DK/)

WARNING: filetoflash (SD to CPU flash)

The SPI_TFT library contains an option to copy an image from the SD card to the CPU flash memory. This allows you to use an image as background without speed loss when writing other text and graphics.

By default, this option is enabled.

It can be disabled by uncommenting the #define mentioned below in Mini_DK.h:

#define NO_FLASH_BUFFER

Since the flash memory has limited write endurance, DO NOT use this feature when you intend to read multiple images from the SD card (eg: when used as a photo frame).

14/01/13

A newer version of the Mini-DK has been released by the manufacturer: Mini-DK2. They replaced the DM9161 PHY with a LAN8720A PHY and better buttons are fitted on the board. All other hardware remains the same. Code for this PHY is available from the NXP MCU SW application team. This allows us to use the mbed 'EthernetInterface' library with little modifications. Further info - see http://mbed.org/forum/mbed/topic/3684/?page=1#comment-18473.

Notes:

The code in 'lpc_phy_lan8720.c' uses 'msDelay' - needs to be replaced with 'osDelay'.

A custom MAC address can be defined using following code:

extern "C" void mbed_mac_address(char * mac) {
 
// define your own MAC Address
  mac[0] = 0x00;  
  mac[1] = 0x01;  
  mac[2] = 0x02;  
  mac[3] = 0x03;  
  mac[4] = 0x04;  
  mac[5] = 0x05;           
  
};

Changes

RevisionDateWhoCommit message
23:67989b4f61ad 2014-11-04 frankvnk Updated SPI_TFT_ILI9320 library to the latest version (auto-detect ILI9320, 9325 and 9328) default tip
22:9d05a7e6dc9d 2014-03-23 frankvnk fixed read_ads function
21:a3a843d09295 2014-03-23 frankvnk Added GetCalibration and SetCalibration
20:5feb12e3801f 2014-03-18 frankvnk ILI9320 library update (KL25Z support)
19:6816fa47b39e 2013-01-11 frankvnk In Mini_DK.h #include "SPI_TFT.h" renamed to #include "SPI_TFT_ILI9320.h"
18:f045ae645960 2013-01-11 frankvnk SPI_TFT renamed to SPI_TFT_ILI9320 and published as separate library
17:66c4e84d8571 2013-01-09 frankvnk Cleanup : documentation/comments
16:be1a10246234 2013-01-08 Sissors Added option to define NO_FLASH_BUFFER to disable flash buffer
15:9399be4feea0 2013-01-08 frankvnk Stream(name) is available again in mbed library
14:0921b88fc6bc 2013-01-06 frankvnk in SPI_TFT constructor modified
13:5f332321a40c 2013-01-06 Sissors Orientation is now allowed to change while using background image (image will keep its original orientation)
12:7213a0dded52 2013-01-06 Sissors Some comments modified
11:31a09b75ea23 2013-01-06 Sissors Added option to use a background image
10:d43a2f5e661c 2013-01-06 Sissors Bug fix in bitmap
9:742d15898b2b 2013-01-04 Sissors Added ability to use bitmaps from any filesystem. ; Added conversion to be able to use 24 bit bitmaps.
8:9517c10e40d2 2013-01-04 frankvnk Program -> Library from LPC1768_Mini-DK
7:ffdd4e75b366 2013-01-04 frankvnk Code cleanup / comments added
6:b547fb6c1095 2013-01-03 Sissors Faster writing to LCD;
5:781a72d380a1 2013-01-03 Sissors Removed warnings, added SD card definitions/macros
4:067633a7dfa5 2013-01-03 frankvnk removed ADS_status variable in main.cpp
3:fb4d62b5ffb3 2013-01-03 frankvnk Changes - see modifs.h
2:d0acbd263ec7 2013-01-03 frankvnk ONLY FOR TEST
1:557df792279c 2012-12-12 frankvnk Replaced circle and fillcircle with draw_ellipse and fill_ellipse
0:ee7076d8260a 2012-12-11 frankvnk First version - LCD and touch working - no Ethernet