Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Utft display on 86duino
2016 年 09 月 24 日
05:32:14
Gen
New Member
Forum Posts: 6
Member Since:
2016 年 09 月 24 日
Offline

Hi. I want to ask if anybody has programmed a n 86duino zero or one to view something on utft display. I have an 86duino zero an a 16bit 7 inch display with ssd1963 controller and i success to use it on arduino uno and arduino due but it looks impossible on 86duino zero. I have looked carefully to x86 hardware directory of utft library but seems that inside the four 86duino_zero.h, one, educake, plc there is nothing. In the original utft folder there is every thing what is needed for arv, arm and pic32 support. Can someone confirm that i am wrong?

2016 年 09 月 26 日
11:08:38
cucubutter
Moderator
Forum Posts: 84
Member Since:
2014 年 04 月 10 日
Offline

Gen said

Hi. I want to ask if anybody has programmed a n 86duino zero or one to view something on utft display. I have an 86duino zero an a 16bit 7 inch display with ssd1963 controller and i success to use it on arduino uno and arduino due but it looks impossible on 86duino zero. I have looked carefully to x86 hardware directory of utft library but seems that inside the four 86duino_zero.h, one, educake, plc there is nothing. In the original utft folder there is every thing what is needed for arv, arm and pic32 support. Can someone confirm that i am wrong?

Hi Gen

The UTFT library in 86Duino coding IDE is for 86Duino, so library directory only include 86Duino broads.

Why you think that ssd1963 display impossible work on 86duino zero?

cucubutter

2016 年 09 月 26 日
21:44:40
Gen
New Member
Forum Posts: 6
Member Since:
2016 年 09 月 24 日
Offline

I didn't say that. I only think that UTFT library for x86 is not flexible like the original UTFT for arduino. I'm not an expert to create from scratch, but i know what is modularity and how it affects reuse of code in the future. For example: the ssd1963 is for 16bit utft displays by default. I need 16+4=20 pins from 86duino zero. It can be done easily on arduino uno because i can use 2 of the analog pins (a0 and a1). Why? Because atmega328p has its own file.h in utft hardware folder. Futher more i can modify that file to make ssd1963 work as 8bit and free 8pins from arduino uno. It slow the speed of image in the display but i will use 86duino zero later with 400mA in 3.3v pin capable of handling 200mA of the ic controller of that 7 inch display and a 300MHz of clock. Super... But at the end i realise this problem on the UTFT librari of x86? What to do at this point?

2016 年 09 月 30 日
14:35:44
cucubutter
Moderator
Forum Posts: 84
Member Since:
2014 年 04 月 10 日
Offline

Hi Gen

I misunderstood you before.

UTFT::UTFT(byte model, int RS, int WR, int CS, int RST, int SER)
{
.....
byte dtm[] = {16, 16, 16, 8, 8, 16, 8, SERIAL_4PIN, 16, SERIAL_5PIN, SERIAL_5PIN, 16, 16, 16, 8, 16, LATCHED_16, 8, 16, 8, 16, 16, 16, 8, SERIAL_5PIN, SERIAL_5PIN, SERIAL_4PIN, 16, 16, 16, SERIAL_5PIN};

display_transfer_mode = dtm[model];
.....
}

UTFT class constructor will depend on "model" to assign number to "display_transfer_mode".

void UTFT::LCD_Writ_Bus(char VH,char VL, byte mode)
{
switch (mode)
{
case 1:
...
break;
case 8:
...
break;
case 16:
...
break;
case LATCHED_16:
...
break;
}
}

And LCD_Writ_Bus function will depend on "mode" to choose output method. I think if "display_transfer_mode" is 8, 86Duino can use 8 pin to control ssd1963. Maybe you can try this method.

86Duino Zero have 17 GPIO pins, and 86Duino Zero’s A/D pins can’t switch to digital output pins like the Arduino Leonardo. I find these information from this url : http://www.86duino.com/index.php?p=10040.

cucubutter

2016 年 10 月 02 日
04:00:19
Gen
New Member
Forum Posts: 6
Member Since:
2016 年 09 月 24 日
Offline

I tried with display transfer mode 8. But the only difference is that pins 0-7 goes to 3.3v after reset. I tried to upload the same sketch demo 800x480 using educake not 86duino zero in the IDE and as control pins *42, *43, *44 because i thought not to interfere with the pins 9, 10, 11 but after uploading i can't detect any more usb at pc. I cant load a sketch anymore. It seems that the program uploaded block the serial port. Next i inserted th microsd card and boot from it. I can monitor from serial and IDE can send commands, but when i rmove the sd card and reset the usb becomes anavaible from IDE and alsoVortex disappear from control panel at device manager. How to delete the program from the 86duino zero in order to free the blocked usb port? Please help me.

2016 年 10 月 03 日
09:17:30
Android_Lin
Moderator
Forum Posts: 228
Member Since:
2014 年 04 月 01 日
Offline

Hi, Gen,

You can try to let 86Duino zero enter bootloader mode by connecting SPICS pin and GND with a wire like this:

http://www.86duino.com/wp-cont.....l_mode.bmp

After connecting, press "RESET" button on 86Duino zero, and you will see the LED on pin 13 works with "breath" style for 8 seconds, then select the bootloader serial port and press "Upload" button on IDE in 8 seconds to update your sketch on 86Duino zero.

Android Lin

2016 年 10 月 03 日
14:51:38
Gen
New Member
Forum Posts: 6
Member Since:
2016 年 09 月 24 日
Offline

I resolved this problem using 86duino sysimage using microsd card. I understood that the problem is related with a mistake in the sketch writing a high value to a pin i called 45. So i advice anybody to pay attention not to declare never pinMode Output an write a high value to pin 45.

2016 年 10 月 03 日
15:15:42
Gen
New Member
Forum Posts: 6
Member Since:
2016 年 09 月 24 日
Offline

Thank you Android Lin. I will try this solution next time i will have a similar situation. I want to ask you if it is possible to add a piece of program in the UTFT library to make possible that a 16 bit display can be used in 86duino zero? In 8 bit mode. The 86duino zero can never compete with 86duino One, as it needs also 5 other pins for the touch screen and also 4 for any sd card attached to the display, but it is a good start to play with 86duino and don't prive 86duino_zero users to use the utft displays that in the most of cases are 16bit.

2016 年 10 月 21 日
17:11:10
Android_Lin
Moderator
Forum Posts: 228
Member Since:
2014 年 04 月 01 日
Offline

Hi, Gen,

We modify the UTFT library that it allows you use the SPI to be GPIOs, so we will get 4 additional available pins (SPICS, MOSI, MISO, SPICLK).
We now can use the 16 bits TFT LCD screen (ex. ITDB02) on 86Duino Zero. Before doing this thing, you need first to download this updated UTFT library, and connect pins as following table:

TFT pin | 86Duino Zero pin
-------------------------------------
0 | 0
1 | 1
2 | 2
3 | 3
4 | 4
5 | 5
6 | 6
7 | 7
8 | 8
9 | 9
10 | 10
11 | 11
12 | SPICS
13 | SPICLK
14 | SPIDI
15 | SPIDO
RS | set it in your sketch
WR | set it in your sketch
RD | 3.3V
CS | set it in your sketch
RST | set it in your sketch

Use the UTFT library to try again. :)

Android Lin

2017 年 03 月 04 日
05:29:10
Gen
New Member
Forum Posts: 6
Member Since:
2016 年 09 月 24 日
Offline
10

Thank you very much Android Lin. I used this modified UTFT library on 86duino zero and it works perfectly. Sorry for my late replay but I couldn't log on the site from that period.

2017 年 03 月 13 日
20:52:12
Android_Lin
Moderator
Forum Posts: 228
Member Since:
2014 年 04 月 01 日
Offline

I'm happy to see your good news.Smile
Sorry for the log problem, our engineer has deal with it.

Android_Lin

Forum Timezone: Asia/Taipei

Most Users Ever Online: 229

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Dinosaur: 27

leutenecker: 13

mrZagg: 10

hippy: 9

UIdahoCIT: 8

smeezekitty: 8

Ekkehard: 8

lukeross: 8

tomka: 8

blaxxun: 7

Member Stats:

Guest Posters: 11

Members: 1488

Moderators: 14

Admins: 5

Forum Stats:

Groups: 2

Forums: 11

Topics: 248

Posts: 1114

Newest Members: fungus, MixThors, Shcookius, modtra, alan1974, Sergeyfup, mitunsclusa, Dennissot, bb4000, Ovendaanalolymn

Moderators: Glaux: 70, uaa: 11, guigra: 17, Android_Lin: 228, bcarroll: 12, cucubutter: 84, recycled-air: 12, stevemork: 16, zerozaber: 52, pongraczi: 26, jejump: 14, George Andrews III: 56, poto: 11, garpastym: 20

Administrators: eveshih: 1, anthony: 31, viky6: 0, roboard: 135, hcl: 1