Author Topic: NHD-2.4-240320SF-CTXI#-FT1  (Read 1922 times)

bageorge@topnotchcanada.c

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
NHD-2.4-240320SF-CTXI#-FT1
« on: May 11, 2015, 08:36:34 PM »
Question about: NHD-2.4-240320SF-CTXI#-FT1

In what way a 16 bit command/data is mapped onto DB15 - DB0 from the datasheet?




void TFT_24S_Write_DB(uint16_t commanddata){


LATDbits.LATD2 = (0x0001&(commanddata>>15));  //TFT DB15
LATDbits.LATD3 = (0x0001&(commanddata>>14));  //TFT DB14
LATDbits.LATD12 = (0x0001&(commanddata>>13)); //TFT DB13
LATDbits.LATD13 = (0x0001&(commanddata>>12)); //TFT DB12
LATDbits.LATD4 = (0x0001&(commanddata>>11));  //TFT DB11
LATDbits.LATD5 = (0x0001&(commanddata>>10));  //TFT DB10
LATDbits.LATD6 = (0x0001&(commanddata>>9));  //TFT DB9
LATDbits.LATD7 = (0x0001&(commanddata>>8));  //TFT DB8
LATFbits.LATF0 = (0x0001&(commanddata>>7)); //TFT DB7
LATFbits.LATF1 = (0x0001&(commanddata>>6)); //TFT DB6
LATGbits.LATG1 = (0x0001&(commanddata>>5)); //TFT DB5
LATGbits.LATG0 = (0x0001&(commanddata>>4)); //TFT DB4
LATAbits.LATA6 = (0x0001&(commanddata>>3)); //TFT DB3
LATAbits.LATA7 = (0x0001&(commanddata>>2)); //TFT DB2
LATEbits.LATE0 = (0x0001&(commanddata>>1)); //TFT DB1
LATEbits.LATE1 = (0x0001&commanddata); //TFT DB0


/*
 LATDbits.LATD2 = (0x0001&(commanddata>>0));  //TFT DB15
LATDbits.LATD3 =  (0x0001&(commanddata>>1));  //TFT DB14
LATDbits.LATD12 = (0x0001&(commanddata>>2)); //TFT DB13
LATDbits.LATD13 = (0x0001&(commanddata>>3)); //TFT DB12

LATDbits.LATD4 = (0x0001&(commanddata>>4));  //TFT DB11
LATDbits.LATD5 = (0x0001&(commanddata>>5));  //TFT DB10
LATDbits.LATD6 = (0x0001&(commanddata>>6));  //TFT DB9
LATDbits.LATD7 = (0x0001&(commanddata>>7));  //TFT DB8

LATFbits.LATF0 =(0x0001&(commanddata>>8)); //TFT DB7
LATFbits.LATF1 =(0x0001&(commanddata>>9)); //TFT DB6
LATGbits.LATG1 =(0x0001&(commanddata>>10)); //TFT DB5
LATGbits.LATG0 =(0x0001&(commanddata>>11)); //TFT DB4

LATAbits.LATA6 =(0x0001&(commanddata>>12)); //TFT DB3
LATAbits.LATA7 =(0x0001&(commanddata>>13)); //TFT DB2
LATEbits.LATE0 =(0x0001&(commanddata>>14)); //TFT DB1
LATEbits.LATE1 =(0x0001&(commanddata>>15)); //TFT DB0
*/

}

Paul_B

  • Administrator
  • Sr. Member
  • *****
  • Posts: 248
  • Karma: 16
    • View Profile
Re: NHD-2.4-240320SF-CTXI#-FT1
« Reply #1 on: May 12, 2015, 02:15:46 PM »
Hello,

Pin 14 (DB0) is the LSB (least significant bit) of the data byte.

Pin 29 (DB15) is the MSB (most significant bit) of the data byte.

Hope this helps!

 

NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem

Started by hbcelebiBoard TFTs

Replies: 5
Views: 3983
Last post December 10, 2014, 11:19:05 AM
by Michael_L
Working on NHD‐2.4‐240320SF‐CTXL#‐FTN1, have problem in initialization

Started by sli25Board TFTs

Replies: 6
Views: 3612
Last post June 04, 2015, 09:52:25 PM
by sli25
NHD-2.4-240320CF-CTXI#-FT (ST7789S controller) and STM32F4 FSMC LCD Interface

Started by deshayesBoard TFTs

Replies: 1
Views: 2550
Last post March 17, 2016, 06:25:18 PM
by fahad
NHDEV firmware to support NHD-2.4-240320CF-CTXI#-FT (ST7889S controller)

Started by deshayesBoard Evaluation Tools

Replies: 1
Views: 2506
Last post December 17, 2015, 09:52:29 AM
by Saurabh_B
Problem in bringing up NHD‐2.4‐240320SF‐CTXL#‐FTN1 on Renesas RL78/G14

Started by sli25Board TFTs

Replies: 3
Views: 2907
Last post May 28, 2015, 02:59:03 PM
by Michael_L