Hardware

Getting Started ›› Hardware ›› TFT Interfaces ›› Parallel ››
Parent Previous Next

Hardware Parallel Interface


The full 16-bit hardware parallel interface provides the fastest data communication with TFT displays. However, it is available only on 16-bit PIC microcontrollers, and even then a full 16-bit port may not always be available. In such cases, two 8-bit ports can be combined to form the lower and upper bytes of the 16-bit data bus.


For 8-bit MCUs, using two 8-bit ports is the only available option. For 16-bit MCUs, either a single 16-bit port or two 8-bit ports may be used. When two 8-bit half ports are used on a 16-bit MCU, the definition must specify whether the selected port corresponds to the lower or upper byte of the 16-bit port.


'8b microcontroller

$define TFT_COM              PAR_2x8b  'Use 2x8 bit ports

$define TftDataHighByte      PORTB     'PORTB is the high byte of the 16b data word

$define TftDataLowByte       PORTD     'PORTD is the low byte of the 16b data word

'16b microcontroller

$define TFT_COM              PAR_2x8b        'Use 2x8 bit ports

$define TftDataHighByte      PORTC.LowByte   'The low byte of PORTB is the high byte of the 16b data word

$define TftDataLowByte       PORTD.HighByte  'The high byte of PORTD is the low byte of the 16b data word

'16b microcontroller

$define TFT_COM              PAR_16b   'Use one 16 bit port

$define TftDataWord          PORTD     'PORTD is the data word


Created with the Personal Edition of HelpNDoc: Streamline your documentation process with HelpNDoc's WinHelp HLP to CHM conversion feature