Author Topic: ft5316 firmware  (Read 3168 times)

fagci

  • Newbie
  • *
  • Posts: 2
  • Karma: 1
    • View Profile
ft5316 firmware
« on: January 25, 2015, 01:16:52 PM »
Hello!
I have ft6316 touchscreen contholler, close to ft5306, but wake pin used as WAKE/INT.
I tried to read/write some data from EEPROM, but no success.

I using arduino pro mini with following code:
Code: [Select]
#include <Wire.h>

#define DEV_ADDR 0x38
#define WAK_PIN 4
#define VCC_PIN 3
#define RST_PIN 2

#define FACTORY_MODE 0x40

void init_device(){
  digitalWrite(RST_PIN, HIGH);
  digitalWrite(VCC_PIN, LOW);
  digitalWrite(WAK_PIN, LOW);
 
  digitalWrite(VCC_PIN, HIGH), delay(100);
  digitalWrite(WAK_PIN, HIGH), delay(100);
  //digitalWrite(RST_PIN, HIGH), delay(100);
}

void test_device(){
  wr(0x00,FACTORY_MODE);
  delay(300);
  for(unsigned char i=0x00; i<0xFF; i++){
    Serial.print(i);
    Serial.print(": ");
    rr(i);
    Serial.println(" ");
  }
}

void setup(){
  Wire.begin();
  Serial.begin(9600);
  pinMode(VCC_PIN, OUTPUT);
  pinMode(RST_PIN, OUTPUT);
  pinMode(WAK_PIN,OUTPUT);
  init_device();
  test_device();
}

void loop(){}

void rr(unsigned char reg) {
  Wire.beginTransmission(DEV_ADDR);
  Wire.write(reg);
  assert(Wire.endTransmission(DEV_ADDR));
  //Wire.beginTransmission(DEV_ADDR);
  Wire.requestFrom(DEV_ADDR, 128);
  while(Wire.available()) Serial.print(Wire.read(),HEX);
  //assert(Wire.endTransmission());
}

void wr(unsigned char reg, unsigned char val) {
  Wire.beginTransmission(DEV_ADDR);
  Wire.write(reg);
  Wire.write(val);
  assert(Wire.endTransmission(DEV_ADDR));
}

void assert(int e){ if(e){ Serial.print("[E");Serial.print(e);Serial.print("]"); } }

And I got only zeroes in any way  :(

Help me please to flash this controller by firmware, which I have..

Datasheet: https://drive.google.com/file/d/0By7QfrffBV76T2o5S2dheGtKdXM/view?usp=sharing

Michael L, probably I have this problem due to improper initialization?
« Last Edit: January 25, 2015, 11:10:44 PM by fagci »

fagci

  • Newbie
  • *
  • Posts: 2
  • Karma: 1
    • View Profile
Re: ft5316 firmware
« Reply #1 on: January 27, 2015, 12:34:09 PM »

dheeraj

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: ft5316 firmware
« Reply #2 on: June 29, 2016, 06:49:57 AM »
Hello Fagci,

This is Dheeraj Sawant from INDIA,

From couples of days i am working on FT5316, i saw your code which you had post it.
also i saw datasheet of FT5316, but i am stuck on *Firmware file.
Basically i didn't get fw.bin file. please help to get firmware.

Thanks You

 

NHDEV firmware to support NHD-2.4-240320CF-CTXI#-FT (ST7889S controller)

Started by deshayesBoard Evaluation Tools

Replies: 1
Views: 2617
Last post December 17, 2015, 09:52:29 AM
by Saurabh_B
LCD : NHD-0216K3Z-NSW-BBW-V3 -- Firmware version clarification

Started by amitattBoard Character LCDs

Replies: 1
Views: 2310
Last post August 26, 2014, 04:27:41 PM
by Michael_L
Re-programming the Firmware on the Eval board

Started by JeffJwayBoard Evaluation Tools

Replies: 6
Views: 3885
Last post June 09, 2016, 05:13:15 AM
by claudio.leone
NHD-7.0-800480EF Firmware And Driver

Started by FaizelBoard TFTs

Replies: 0
Views: 606
Last post March 14, 2017, 12:30:31 AM
by Faizel