Add up to 2GB (2 Giga-bytes) of FAT File System
to your CuTOUCH Touch-screen Controller, CUBLOC, or any other MCU!

Do u want to add a 2 Giga-byte FAT File System to your Touch-screen controller, CUBLOC, or any other Microcontroller?

Here's how to hack it using SD-COM5, SD Card Reader, and an XPORT Dongle.
(CF-COM5 can be substituted for reading Compact Flash cards)

We are going to make a SD Card Dongle, so you can simply plug into any serial port on your CuTOUCH, CUBLOC, or any other development board.


(CT1720 w/ hacked SD-COM5)

(SD-COM5 hacked w/ XPORT Dongle)



Required Parts:

1   SD-COM5  (or *CF-COM5)          $38

1  XPORT Dongle     $5

1  **SD 512MB Card     $20

Total Cost to Add  512MB = $63

*CF-COM5 is pin-compatible w/ SD-COM5

**I found that SD brand SD Cards work faster than others...




Building your SD-COM5 Dongle


So you might ask, why am I using an XPORT Dongle?

Well the XPORT Dongle is basically a simple serial device w/ MAX232 chip and 5-3.3V regulator on-board so you can connect an XPORT and be ready to go.

Well, I don't really have to use the XPORT Dongle, but the MAX232 interface is already on there, all I have to do is connect the SD-COM5 module to the right connections and voila,
I will have a SD-COM5 Dongle!

Otherwise, I will have to build my own proto-board w/ MAX232 chips w/ 5 or 6 capacitors, well that just gives me a lot headache and make my fingers itch and well, just not that patient 
as I used to be.  

I could probably even save time and money by using the XPORT Dongle, as everything on it is SMD and just needs 5V power to pin 9 of its DB9 serial connector.

Since the CuTOUCH only supports 12V RS232C levels (sorry no TTL), we can simply use this XPORT Dongle and hack it a little.

On the other hand, if you are using any other MCU w/ 12V level support, you can likely skip building the Dongle.

Okay, first, you will need to cut some pins off.

Yes, take your wrench and rip it off like you mean it!

(Yes, it should look somewhat like above)

You should take out the pins labeled GND, SDIN, VCC, and RST.
These 4 pins need to be cleared before it can fit onto
the XPORT Dongle.


(Bottom view of pins gone)

(Angled view of pins gone)

Yes, once you have blasted all anger out of your system onto the pins, our mind will be ready for what is to come next.


Now insert the SD Card onto the XPORT Dongle like shown above.

Here's a better view from the bottom:

Here's a zoom in picture:

Now closer:

As you can see we are only connecting the pin 4 and pin 5 of the XPORT Dongle which correspond to RX and TX of the DB9 serial connector.

Basically, pin 4 of XPORT Dongle hooks up to TXD of the SD-COM5 and pin 5 of XPORT Dongle hooks up to RXD of the SD-COM5.

(It took me 2 tries to get this right as I did it the opposite my first time around...yes, I do a lot of stupid things, but it will ultimately save others time.)

Yes, please do solder the two pins as soon as possible. :)

Now use 2 wires and connect VCC of the SD-COM5 to +5V pin labeled on the XPORT Dongle near the serial connector.  

The other wire should be used to connect GND of SD-COM5 to GND pin labeled on the XPORT Dongle on the other side of +5V pin.

There, you have provided power to the SD Card.  Well the XPORT Dongle expects to have 5V on the pin-9 of the DB9 connector.  

If you are not using CuTOUCH or a CUBLOC Development Board, you will most likely have to connect 5V to the pin-9 of your DB9. (which should be piece of cake for most of you)

Okay, now we are ready.

Plug in your new SD-COM5 Dongle to your CuTOUCH Channel 1 Serial Port like this:

Yes, then download this CF/SD COM5 Library File here:


When you load it, you should get see that the program creates a text file called "data1.txt".

It's basically a space-delimited data file that looks like this:


RECORD0 1000 2000 3000 4000

RECORD1 1000 2000 3000 4000

RECORD2 1000 2000 3000 4000

RECORD3 1000 2000 3000 4000

RECORD4 1000 2000 3000 4000

RECORD5 1000 2000 3000 4000

Now since there is a space between every data item,

you can open this in Excel spreadsheet just like an excel file.

You will have to open w/ space-delimited option.
(If you don't know how, try google, there's a whole bunch of info other there)

After the SD card has been written,  you can insert the SD Card into your PC (if you have a SD Card Reader) and read the file like this:


(See that directory AUGUST was created?)

(Yes, inside AUGUST, should be the data file we've just created)


(Yes, when you open the file in notepad, you should see something like above screenshot)

(CublocStudio Debug Screen Screenshot)



File opened in Microsoft Excel as a space-delimited text file.

(Yes, Goto File->Open to do this, don't just click on your text file.)


Flash Video:





 Now I think u should be able to add some data storage pretty easily...


If you are having any trouble with above app, please e-mail

If you have any cool apps you'd like to share, please e-mail to max@comfiletech.com