A tft addin for pbp3


Closed Thread
Results 1 to 40 of 142

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    SSP_IF VAR PIR3.7 'I don't understand what it mean
    THE SSP_IF VAR IS an alias to the SSP Interrupt Flag where PIR3.7 is the SSP2IF if you use ssp1 then use PIR1.3 for your chip



    symbol tft_dc_bit = PORTB.5
    symbol tft_cs_bit = PORTB.4
    symbol tft_rst_bit = PORTB.7
    you are asking for rmw trouble by using portb use latb instead
    Code:
    symbol tft_dc_bit = latb.5       >>with  matching  constant     tft_dc_bit  con  32     ie 2^5
    symbol tft_cs_bit = latb.4                        "              "            tft_cs_bit  con  16     ie 2^4
    symbol tft_rst_bit = latb.7                       "              "            tft_rst_bit con 128     ie 2^7
    tft_port var  latb
    SDi from display I connect to PORD.4 and SCK from display I connect to PORTD.0 on PIC processor
    correct for a PIC18F45K22 PORTD.4 is SDO2 and connects to display sdi
    and PORTD.0 is SCK2 and connects to display sck
    Last edited by richard; - 28th June 2015 at 04:50. Reason: IS JUST IMPOSSIBLE TO GET THE WHITE SPACE CORRECT

Similar Threads

  1. Replies: 0
    Last Post: - 25th September 2013, 18:33
  2. code examples / libraries for ILI9320 2.8" TFT LCD Module
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 6th June 2013, 08:50
  3. I really need some help with PBP3
    By Ramius in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th February 2012, 16:05
  4. What's with PBP3?
    By BrianT in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th August 2011, 17:09
  5. Experience of driving TFT screens?
    By isaac in forum General
    Replies: 1
    Last Post: - 26th September 2008, 00:15

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts