Mixed

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

Partial Software Parallel Interface


The partial software parallel interface allows the use of a single 8-bit port, or either the lower or upper byte of a 16-bit port, to carry one byte of the data word.


When using a 16-bit microcontroller, the configuration must explicitly specify whether the selected port represents the lower or upper byte of the 16-bit port.


'8b microcontroller

$define TFT_COM            PAR_HSW   'Use one 8 bit port for TftDataWord.HighByte

$define TftDataLowByte    PORTB        'TftDataWord.HighByte is set as PORTB

$define TFT_B15              PORTA.0     'Individual bits of TftDataWord.LowByte

$define TFT_B14              PORTA.3

$define TFT_B13              PORTA.4

$define TFT_B12              PORTC.4

$define TFT_B11              PORTC.3

$define TFT_B10              PORTC.1

$define TFT_B9                PORTE.0

$define TFT_B8                PORTE.1

'8b microcontroller

$define TFT_COM            PAR_LSW   'Use one 8 bit port for TftDataWord.LowByte

$define TftDataHighByte   PORTD        'TftDataWord.LowByte is set as PORTD

$define TFT_B7               PORTA.0     'Individual bits of TftDataWord.HighByte

$define TFT_B6               PORTA.3

$define TFT_B5               PORTA.4

$define TFT_B4               PORTC.4

$define TFT_B3               PORTC.3

$define TFT_B2               PORTC.1

$define TFT_B1               PORTE.0

$define TFT_B0               PORTE.1

'16b microcontroller

$define TFT_COM            PAR_HSW            'Use one half of 16 bit port for TftDataWord.HighByte

$define TftDataLowByte    PORTB.HighByte  'TftDataWord.HighByte is set as PORTB.HighByte

$define TFT_B15              PORTA.0             'Individual bits of TftDataWord.LowByte

$define TFT_B14              PORTA.3

$define TFT_B13              PORTA.4

$define TFT_B12              PORTC.4

$define TFT_B11              PORTC.3

$define TFT_B10              PORTC.1

$define TFT_B9                PORTE.0

$define TFT_B8                PORTE.1

'16b microcontroller

$define TFT_COM            PAR_LSW     'Use one half of 16 bit port for TftDataWord.LowByte

$define TftDataHighByte   PORTD          'TftDataWord.LowByte is set as PORTD.HighByte

$define TFT_B7               PORTA.0        'Individual bits of TftDataWord.HighByte

$define TFT_B6               PORTA.3

$define TFT_B5               PORTA.4

$define TFT_B4               PORTC.4

$define TFT_B3               PORTC.3

$define TFT_B2               PORTC.1

$define TFT_B1               PORTE.0

$define TFT_B0               PORTE.1


Created with the Personal Edition of HelpNDoc: Free CHM Help documentation generator