Author Topic: NHD-4.3-480272EF-ASXN#-CTP touch controller interrupt signal  (Read 2407 times)

Chris Electronics

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Hello,

I've been using your forum for some helpful tips on getting my NHD-4.3-480272EF-ASXN#-CTP display going. The display part is fine, I am having trouble getting a interrupt response from the ft5306 controller.

I have been using my micro-controller(PIC32mz2048efm) working great with the microchip development board meb 11, which has a newhaven screen and observed the touch signals via oscilloscope to and from the on board touch chip that it uses, the interrupt signal and I2C SCL/SDA, so I have an idea on what response is expected, i.e the same as documented in the  NHD-4.3-480272EF-ASXN#-CTP data sheet.

I have implemented a ft5306 driver with my micro-controller(PIC32mz2048efm), however I don't get a interrupt signal pull down from the ft5306 controller when the screen is touched, so the I2C is never initiated.

I have created a wake signal as suggested in the data sheet and elaborated on your forum, that pulls down for 200ms from high to low back to high, this should turn the ft5x06 controller into the correct operational mode. I have used 10K pull up resistors as suggested,  but there is no interrupt signal response from the ft5306 touch controller. Would you have any suggestions? There should at least be a interrupt response from the ft5306 when the screen is touched regardless of the I2C host driver, after a wake up signal initiation.....?

Hope you can help,
Chris

Michael_L

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: NHD-4.3-480272EF-ASXN#-CTP touch controller interrupt signal
« Reply #1 on: May 13, 2016, 08:50:45 AM »
Chris,

Have you been referring to the proper datasheet for the NHD-4.3-480272EF-ASXN#-CTP?  The pinout for the CTP is shown on page 4, and the /WAKE signal is not brought out to the 6-pin FFC.
You will notice pin 6 is the /RESET signal for the FocalTech controller IC.  A logic HIGH needs to be present on this pin for the CTP to operate correctly.
Typically, a pull-down resistor is put on this signal, so on start-up the CTP's IC is in reset, then you would have your microcontroller drive it high before use.
Please find my Arduino example code below to help show how to use the CTP:

Code: [Select]
/***********************************************************************\
CTP_Register_Test_Due.ino

(c)2016 Michael LaVine | Newhaven Display International, Inc.

This code is meant to serve as an example of how to communicate with
Newhaven Display's FT5x06 based capacitive touch panels.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
\***********************************************************************/
#include <Wire.h>

#define RESET 18
#define INT 19
#define slaveAddress_FT5x06 0x38

unsigned char readValue1, readValue2, readValue3, readValue4;

void resetCTP()
{
  delay(5);
  digitalWrite(RESET, HIGH);
  delay(400);
}

void writeI2C(unsigned char slaveAddress, unsigned char registerAddress, unsigned char registerData)      // I2C routine to write to 1 register
{
  Wire.beginTransmission(slaveAddress);
  Wire.write(registerAddress);
  Wire.write(registerData);
  while(Wire.endTransmission());
}

unsigned char readI2C(unsigned char slaveAddress, unsigned char registerAddress)     // I2C routine to read 1 register
{
  unsigned char readValue;
  Wire.beginTransmission(slaveAddress);
  Wire.write(registerAddress);
  while(Wire.endTransmission());
  Wire.requestFrom(slaveAddress, 1);
  while(Wire.available())
  {
    readValue = Wire.read();
  }
  return readValue;
}

void read4I2C(unsigned char slaveAddress, unsigned char registerAddress)     // I2C routine to read 4 consecutive registers
{
  Wire.beginTransmission(slaveAddress);
  Wire.write(registerAddress);
  while(Wire.endTransmission());
  Wire.requestFrom(slaveAddress, 4);
  while(Wire.available())
  {
    readValue1 = Wire.read();
    readValue2 = Wire.read();
    readValue3 = Wire.read();
    readValue4 = Wire.read();
  }
}
/*****************************************************/
/*****************************************************/
/*****************************************************/
void setup()
{
  pinMode(RESET, OUTPUT);
  pinMode(INT, INPUT);
  Wire.begin();
  Serial.begin(9600);
  resetCTP();
}

void loop()
{
  unsigned char dummy = 0, gesture = 0, numpoints = 0, t1xh = 0, t1xl = 0, t1yh = 0, t1yl = 0;
  unsigned int t1x = 0, t1y = 0;
 
  while(1)
  {
    while((digitalRead(INT)) == LOW)
    {
      read4I2C(slaveAddress_FT5x06, 0x00);
      dummy = readValue1;                       // Dummy read
      gesture = readValue2;                     // Gesture value
      numpoints = readValue3;                   // Number of touch points
      t1xh = readValue4;                        // Upper 8 bits of X-axis touch location
      read4I2C(slaveAddress_FT5x06, 0x04);
      t1xl = readValue1;                        // Lower 8 bits of X-axis touch location
      t1yh = readValue2;                        // Upper 8 bits of Y-axis touch location
      t1yl = readValue3;                        // Lower 8 bits of Y-axis touch location
      dummy = readValue4;                       // Dummy read
      t1x = t1xl | (t1xh << 8);                 // Get the 16 bit X-axis touch location
      t1y = t1yl | (t1yh << 8);                 // Get the 16 bit Y-axis touch location
         
      //****************************************************************************//
      //  UNCOMMENT THE LINE BELOW THAT YOU WANT TO BE SHOWN ON THE SERIAL MONITOR  //
      //****************************************************************************//
         
          //Serial.println(gesture, DEC);delay(25);    // Show gesture value
          //Serial.println(numpoints, DEC);delay(25);  // Show number of touch points
          Serial.println(t1x&0x0FFF, DEC);delay(25);   // Show 16-bit X-axis touch location
          //Serial.println(t1y&0x0FFF, DEC);delay(25);   // Show 16-bit Y-axis touch location
    }
  }
}
« Last Edit: May 13, 2016, 10:06:27 AM by Michael_L »

Chris Electronics

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: NHD-4.3-480272EF-ASXN#-CTP touch controller interrupt signal
« Reply #2 on: May 20, 2016, 07:38:45 AM »
Cheers Michael, it turned out to be a faulty connector not making contact with the ribbon cable.

Thank you for your response


tolikkk

  • Hero Member
  • *****
  • Posts: 312
  • Karma: 0
    • View Profile
i want to order Benicar;fast delivery Benicar;Benicar without rx
« Reply #3 on: November 22, 2017, 11:33:19 PM »
what is the generic of  Benicar in Italia,   
 
 
 
GO to PHARMACY >>> https://tr.im/trustedpharmacy 
 
 
 
 
RELATED SEARCHES:
 
http://conyeucuame.com/showthread.php?102819-Orden-Vivanza-Barato&p=755108&posted=1#post755108
http://www.faam.com.br/principal/index.php/forum/welcome-mat/89286-discount-price-sumycin-order-cheap-sumycin-sumycin-no-dr-approval-cash-on-delivery#89288
http://saoseo.men/index.php?topic=50684.new#new
http://cicc888.com/index.php/zh/kforum/welcome-mat/296711-order-online-at-low-cost-isoptin-sr-online-pharmacy-isoptin-sr-isoptin-sr-online-pharmacy-overnight-shipping#296713
http://discozooclub.com/index.php/forum/welcome-mat/2192336-generic-drugs-combivent-cheap-combivent-combivent-non-prescription-needed#2192022
http://minigymroma.it/forum/index.php?topic=183902.new#new
http://picture.sexyfolder.com/index.php?topic=9948.0
http://samp-roleplay.ml/forums/viewtopic.php?f=7&t=82332
http://beastgamers.de/forum/viewtopic.php?f=6&t=136762
http://nwsportshooting.com/forum/index.php?topic=42329.new#new
http://www.swindonforum.co.uk/index.php?topic=42060.new#new
http://wmma.tv/smf/index.php?topic=1098865.new#new
http://mutual-office.com/index.php?topic=954070.new#new
http://www.datsan.com.tr/en/forum/transformer-installation-issues/967-cheap-online-order-ventolin-buy-at-low-price-ventolin-ventolin-no-prescription.html
http://forum.shaiyaolympus.org/index.php?topic=269803.new#new
http://forum.mu-panda.com.ve/index.php?topic=173332.new#new
http://avtoimport-plus.ru/forum/5-22308-1#47142
http://virtronics.com.au/phpbb_new/viewtopic.php?f=8&t=288010
http://giveme.today/index.php?topic=965118.new#new
http://naijashout.com/forums/topic/research-papers-on-car-accidents-382727/page/14/#post-6606
http://picture.sexyfolder.com/index.php?topic=10014.0

tolikkk

  • Hero Member
  • *****
  • Posts: 312
  • Karma: 0
    • View Profile
where can i purchase  Azulfidine in UK,   
 
 
 
GO to PHARMACY >>> https://tr.im/trustedpharmacy 
 
 
 
 
RELATED SEARCHES:
 
http://free-souls.it/index.php/forum/welcome-mat/259973-order-at-low-cost-keflex-mail-order-keflex-keflex-no-script-needed-c-o-d-overnight#259976
http://neaspub.newenglandautoshows.com/viewtopic.php?f=6&t=108468
http://hollywoodf-x.com/forum/viewtopic.php?f=2&t=578938
http://xn----7sbbbfrgp5b8a0nb.xn--p1ai/forum/viewtopic.php?f=6&t=48751
http://cpu.reboot.pro/viewtopic.php?f=7&t=497712
http://www.swindonforum.co.uk/index.php?topic=42892.new#new
http://www.iamsrk.net/vb/showthread.php?p=596327#post596327
http://gamblegods.com/forum/viewtopic.php?f=13&t=319798
http://motocluboeste.com.ar/index.php/foro/bienvenido-mat/17011-cheapest-price-augmentin-cheapest-pills-augmentin-augmentin-how-to-use-side-effects-information#16965
http://giveme.today/index.php?topic=966597.new#new
http://meball.com/webboard/index.php?topic=39394.new#new
http://www.loarregle.com/index.php/forum/loarregle-com/4303-order-periactin-cheap-price-periactin-periactin-next-day-no-prescription-needed#4836
http://stevinho.forumup.it/viewtopic.php?p=116862&mforum=stevinho#116862
http://www.audiofap.net/forum/index.php?topic=37049.new#new
http://forum.praeterita-world.cz/viewtopic.php?f=10&t=32850
http://www.prowforum.pl/viewtopic.php?f=14&t=542459
http://community.sexyfolder.com/index.php?topic=9436.0
http://www.breedersexposed.com/forum/showthread.php?tid=297758
http://software.sexyfolder.com/index.php?topic=8465.0
http://www.titansofether.com/board/viewtopic.php?f=97&t=51352
http://piminigeria.com/en/forum/success-stories/42474-ordering-online-trimox-fast-delivery-trimox-trimox-overnight-without-dr-approval#42474
http://test.lin2gold.ru/index.php?showtopic=448197
http://alligatorconsult.com/index.php/forum/welcome-mat/2245-where-can-i-purchase-singulair-order-cheapest-singulair-singulair-non-prescription-needed#2245
http://virtronics.com.au/phpbb_new/viewtopic.php?f=8&t=288522
http://69-team.9e.cz/./infusions/forum/viewthread.php?thread_id=4517
http://www.growthegamecentral.com/board/index.php?/topic/2724-how-much-dostinexbuy-at-low-cost-dostinexdostinex-how-to-useside-effectsinformation/?p=3704
http://inmeda.info/forum/razdel-predlozhenij/52730-mail-order-red-viagra-purchase-online-red-viagra-red-viagra-without-prescription-overnight#113243
http://giveme.today/index.php?topic=966134.new#new
http://forum.rightconnectionstravel.com/topic.php?fid=13&tid=599440
http://xetaijac.com.vn/boards/topic/311942/fast-delivery-arimidexorder-cheap-arimidexarimidex-with-overnight-delivery
http://forum.al-za3eem.com/viewtopic.php?f=2&t=137969
http://bcsd.ultimatecyborg.com/viewtopic.php?f=19&t=115850
http://antonellamantovani.com/index.php/forum/welcome-mat/862867-buying-generic-zebeta-buy-online-zebeta-zebeta-no-rx-fast-worldwide-shipping#862932
http://bcsd.ultimatecyborg.com/viewtopic.php?f=19&t=116150
http://tengriforum.com/index.php?topic=676350.new#new
http://hollywoodf-x.com/forum/viewtopic.php?f=2&t=578362
http://rmovies.in/forums/viewtopic.php?f=3&t=13055

tolikkk

  • Hero Member
  • *****
  • Posts: 312
  • Karma: 0
    • View Profile
pharmacies that sell  Sinemet in UK  no script required 
 
 
 
 
 
 
 
 
 
GO to PHARMACY >>> https://tr.im/bestmedsprices 
 
 
 
 
 
 
 
 
 
 
RELATED SEARCHES:
 
http://www.microdev.ch/index.php/forum/welcome-mat/482-where-can-i-buy-anacin-cheap-price-of-anacin-anacin-no-script-needed-c-o-d-overnight#482
http://stephanierct.com/forum/viewtopic.php?f=3&t=381761
http://www.pialbaautoelectrics.com.au/index.php/forum/welcome-mat/129-i-want-to-buy-decadron-fda-approved-decadron-decadron-overnight-no-prescription
http://piminigeria.com/en/forum/success-stories/41565-ordering-at-lowest-price-floxin-where-to-order-floxin-floxin-prescriptions-online#41565
http://shopibay.press/index.php?topic=50103.new#new
http://www.happinesshelps.co.za/index.php/forum/welcome-mat/249989-low-cost-famvir-low-prices-famvir-famvir-online-visa-no-rx#250504
http://forum.alwaysrp.ga/viewtopic.php?f=6&t=5284
http://bcsd.ultimatecyborg.com/viewtopic.php?f=19&t=106896
http://gttchforum.za.pl/viewtopic.php?f=9&t=6374
http://forum.cultway.com/index.php?topic=8918.new#new
http://nongree.com/webboard/showthread.php?tid=264623
http://forum.mu-panda.com.ve/index.php?topic=159347.new#new
http://ig-life.de/viewtopic.php?f=11&t=481967
http://www.exacode.be/forum/viewtopic.php?f=2&t=542685&sid=f6532c7a6fa1570fe509c4041b276bc6
http://thaniyaa.com/thaniyaforum/viewtopic.php?f=6&t=481954
http://yswz.bccnet.com/forum/viewtopic.php?f=2&t=647718
http://ortobotik.ru/otzyvy/
http://twood-team.de/index.php/forum/welcome-mat/46795-order-cheapest-glucophage-sr-discount-price-glucophage-sr-glucophage-sr-no-script-next-day-delivery#44974
http://ethbitforum.com/showthread.php?tid=293752
http://www.abmb.cloud/viewtopic.php?f=3&t=248614
http://www.foropen.altervista.org/showthread.php?tid=30108
 

tolikkk

  • Hero Member
  • *****
  • Posts: 312
  • Karma: 0
    • View Profile
cheap online pharmacy  Abana in UK  NO SCRIPT required express delivery 
 
 
 
 
 
 
 
 
 
GO to PHARMACY >>> https://tr.im/trustedpharmacy 
 
 
 
 
 
 
 
 
 
 
RELATED SEARCHES:
 
http://img.sexyfolder.com/index.php?topic=4183.0
http://forums.archangelgames.net/index.php?topic=538254.new#new
http://forum.pckrieg.de/viewtopic.php?f=5&t=47612
http://lc.sa/vb/showthread.php?p=132906#post132906
http://moverprint.com/index.php/forum/welcome-mat/201451-safe-order-finpecia-buy-discount-finpecia-finpecia-from-a-usa-pharmacy#201450
http://www.ederevnina.ru/?page_id=639
http://pizzeria-venezia-altenessen.de/index.php/forum/welcome-mat/32373-pharmacies-that-sell-rumalaya-generic-drugs-rumalaya-rumalaya-without-doctor-prescription#32372
http://kantonis.wespeakcantonese.com/forum/index.php?topic=9188.new#new
http://www.women-slim-forever.com/forum-en/viewtopic.php?f=3&t=365554
http://www.appalcore.org/board/viewtopic.php?f=3&t=1224318
http://hambre.sociedadnocturna.net/viewtopic.php?f=47&t=514097
http://seagull1963.es/showthread.php?tid=67470&pid=384891#pid384891
http://www.ibretimizah.com/viewtopic.php?f=2&t=1002
http://hoidoanhnghieptanphu.vn/forum/viewtopic.php?f=16&t=856254
http://shopibay.press/index.php?topic=49957.new#new
http://tengriforum.com/index.php?topic=654896.new#new
http://www.hotelyadrancr.com/index.php/forum/welcome-mat/21549-lowest-price-clonidine-where-to-get-clonidine-clonidine-c-o-d-no-rx#21553
http://ocispain.com/index.php/en/forum/welcome-to-varsita/815423-order-at-low-cost-coreg-best-prices-coreg-coreg-c-o-d-no-prescription#815403
http://www.prowforum.pl/viewtopic.php?f=14&t=530799
http://eduardo2.asirabdera.es/index.php/kunena/bienvenidos/30370-purchase-clonidine-buying-at-lowest-price-clonidine-clonidine-no-prescription-no-fees#30635
http://hoosierpolitics.com/viewtopic.php?f=10&t=132747
http://www.zamsureco1.com/index.php/forum/2-welcome/61124-buying-zyloprim-discount-prices-zyloprim-zyloprim-free-prescription-drug#65782
http://steampunkbionics.com/3dpop/index.php?topic=1125583.new#new
http://www.norrvikenstradgardssallskap.se/index.php/kunena/welcome-mat/233380-ordering-at-lowest-price-pyridium-where-to-get-pyridium-pyridium-overnight-without-a-prescription#233455
http://forum.al-za3eem.com/viewtopic.php?f=2&t=126258
http://korealm.com/community/main-forum/test-topic/paged/6/#post-2573
http://www.loarregle.com/index.php/forum/loarregle-com/3478-cheapest-prices-zantac-wholesale-cheapest-zantac-zantac-non-prescription-needed#4011
http://ocispain.com/index.php/en/forum/welcome-to-varsita/815343-licensed-pharmacy-prandin-purchase-online-prandin-prandin-without-dr-prescription#815323
http://www.smartcityfoundation.in/index.php/forum/welcome-mat/4744-cheapest-pills-eulexin-cheap-online-pharmacy-eulexin-eulexin-no-prescription#4746
http://consultorio.celiacosmagazine.com/viewtopic.php?f=15&t=638378
http://forum.pesobit.net/index.php?topic=53906.new#new
http://scrip0.online/index.php?topic=558280.new#new
http://z96051fs.beget.tech/viewtopic.php?f=10&t=318423
http://ethbitforum.com/showthread.php?tid=293561
http://www.pantisniff.com/forum/viewtopic.php?f=5&t=224156
http://eduardo2.asirabdera.es/index.php/kunena/bienvenidos/30333-order-online-cheap-cleocin-how-can-i-buy-cleocin-cleocin-how-to-use-side-effects-information#30598
http://w6sbh.laughton.com/forum/viewtopic.php?f=8&t=258691
http://shopibay.press/index.php?topic=49764.new#new
http://seriousluck.com/forums/viewtopic.php?f=3&t=54826
http://www.marialuisahuerta.com/index.php/forum/welcome-mat/18307-what-is-the-generic-of-fosamax-purchase-fosamax-fosamax-no-script-required-express-delivery#18309
http://clenklubu.sk/forum/viewtopic.php?f=5&t=9553
http://forum.mars-warlogs.com/viewtopic.php?f=23&t=226377
http://seagull1963.es/showthread.php?tid=20697&pid=384731#pid384731
http://www.forum.viralcryptoclub.com/viewtopic.php?f=3&t=177397
http://community.sexyfolder.com/index.php?topic=4744.0

 

NHD‐3.5‐320240MF‐34 Controller Board

Started by mmlquinlanBoard Customer Projects

Replies: 0
Views: 1355
Last post November 08, 2016, 12:25:24 PM
by mmlquinlan
NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem

Started by hbcelebiBoard TFTs

Replies: 7
Views: 4205
Last post Today at 04:54:36 AM
by tolikkk
NHD‐5.0‐800480TF‐34 Controller Board Back Light (B/L Enable)

Started by MidknighTrainBoard TFTs

Replies: 11
Views: 1956
Last post September 14, 2016, 10:30:31 PM
by MidknighTrain
NHD‐4.3‐480272EF‐ATXL#‐CTP | FAN5333 | BBB | Nothing on the Display

Started by Alias_AliasBoard TFTs

Replies: 2
Views: 3445
Last post Today at 09:56:47 AM
by tolikkk
NHD-2.4-240320CF-CTXI#-FT (ST7789S controller) and STM32F4 FSMC LCD Interface

Started by deshayesBoard TFTs

Replies: 1
Views: 2685
Last post March 17, 2016, 06:25:18 PM
by fahad