Driver for ILI9341 - Page 2


+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Driver for ILI9341369 days old

  1. #11
    Member flosigud's Avatar
    Join Date
    Oct 2013
    Posts
    101
    Thumbs Up
    Received: 6
    Given: 11
    Total Downloaded
    2.72 GB

    0 Not allowed!

    Default Re: Driver for ILI9341

    Seems like I was unsucessful i uploading yesterday so here it is
    Code:
    ;-------------------------------------------------------------------------------;**** Added by Fuse Configurator ****
    ; Use the Fuse Configurator plug-in to change these settings
    
    
    Device = 18F26K22
    
    
    Declare Reminders Off
    @ CONFIG_REQ = 0 ; Override Compiler's configuration settings
    Asm-
    Config FOSC = INTIO67    ;Internal oscillator block
    Config PLLCFG = On    ;Oscillator multiplied by 4
    Config PRICLKEN = On    ;Primary clock enabled
    Config FCMEN = OFF    ;Fail-Safe Clock Monitor disabled
    Config IESO = OFF    ;Oscillator Switchover mode disabled
    Config PWRTEN = OFF    ;Power up timer disabled
    Config BOREN = On    ;Brown-out Reset enabled and controlled by software (SBOREN is enabled)
    Config BORV = 190    ;VBOR set to 1.90 V nominal
    Config WDTEN = OFF    ;Watch dog timer is always disabled. SWDTEN has no effect.
    Config WDTPS = 32768    ;1:32768
    Config CCP2MX = PORTC1    ;CCP2 input/output is multiplexed with RC1
    Config PBADEN = On    ;PORTB<5:0> pins are configured as analog input channels on Reset
    Config CCP3MX = PORTB5    ;P3A/CCP3 input/output is multiplexed with RB5
    Config HFOFST = On    ;HFINTOSC output and ready status are not delayed by the oscillator stable status
    Config T3CMX = PORTC0    ;T3CKI is on RC0
    Config P2BMX = PORTB5    ;P2B is on RB5
    Config MCLRE = EXTMCLR    ;MCLR pin enabled, RE3 input pin disabled
    Config STVREN = On    ;Stack full/underflow will cause Reset
    Config LVP = OFF    ;Single-Supply ICSP disabled
    Config XINST = OFF    ;Instruction set extension and Indexed Addressing mode disabled (Legacy mode)
    Config Debug = OFF    ;Disabled
    Config Cp0 = OFF    ;Block 0 (000800-003FFFh) not code-protected
    Config CP1 = OFF    ;Block 1 (004000-007FFFh) not code-protected
    Config CP2 = OFF    ;Block 2 (008000-00BFFFh) not code-protected
    Config CP3 = OFF    ;Block 3 (00C000-00FFFFh) not code-protected
    Config CPB = OFF    ;Boot block (000000-0007FFh) not code-protected
    Config CPD = OFF    ;Data EEPROM not code-protected
    Config WRT0 = OFF    ;Block 0 (000800-003FFFh) not write-protected
    Config WRT1 = OFF    ;Block 1 (004000-007FFFh) not write-protected
    Config WRT2 = OFF    ;Block 2 (008000-00BFFFh) not write-protected
    Config WRT3 = OFF    ;Block 3 (00C000-00FFFFh) not write-protected
    Config WRTC = OFF    ;Configuration registers (300000-3000FFh) not write-protected
    Config WRTB = OFF    ;Boot Block (000000-0007FFh) not write-protected
    Config WRTD = OFF    ;Data EEPROM not write-protected
    Config EBTR0 = OFF    ;Block 0 (000800-003FFFh) not protected from table reads executed in other blocks
    Config EBTR1 = OFF    ;Block 1 (004000-007FFFh) not protected from table reads executed in other blocks
    Config EBTR2 = OFF    ;Block 2 (008000-00BFFFh) not protected from table reads executed in other blocks
    Config EBTR3 = OFF    ;Block 3 (00C000-00FFFFh) not protected from table reads executed in other blocks
    Config EBTRB = OFF    ;Boot Block (000000-0007FFh) not protected from table reads executed in other blocks
    Endasm-
    Declare Reminders On
    
    
    ;**** End of Fuse Configurator Settings ****
    ;-------------------------------------------------------------------------------
    
    
        Declare Xtal 64
        Declare All_Digital 1
        
        Symbol PLLEN = OSCTUNE.6                    ' PLL enable
        Symbol HFIOFS = OSCCON.2                      ' HFINTOSC frequency stable
        Symbol PLLRDY = OSCCON2.7                    ' PLL run status
    
    
        OSCCON=110000                            ' Osc =  64 MHz
        While HFIOFS=0:Wend                           ' Wait until osc is stable
        
        PLLEN=1                                        ' Enable PLL 4x 16MHz = 64Mhz 
        While PLLRDY=0:Wend                            ' Wait until PLL is stable
    Flosi Guđmundsson
    Reykjavík

Attention
×

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #12
    Member flosigud's Avatar
    Join Date
    Oct 2013
    Posts
    101
    Thumbs Up
    Received: 6
    Given: 11
    Total Downloaded
    2.72 GB

    0 Not allowed!

    Default Re: Driver for ILI9341

    Below is a zip with the updated main include. The previos version was unable to print very large fonts as I used to small variable for a counter. While fixing this I realized that one variable was superfluous and this meant some reduction in code size.

    I also increased the SPI speed to maximum. The reason prior experiments to that effect were futile is probably that the device wakes up with sleew rate limited. Les recently changed that so now higher speed is possible.

    ILI.zip
    Last edited by flosigud; 10th March 2019 at 16:02.
    Flosi Guđmundsson
    Reykjavík

  • Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #13
    Member flosigud's Avatar
    Join Date
    Oct 2013
    Posts
    101
    Thumbs Up
    Received: 6
    Given: 11
    Total Downloaded
    2.72 GB

    0 Not allowed!

    Default Re: Driver for ILI9341

    Here is an update to my driver end a better demo I think. It is a pulldown menu using indirect addressing. The input is a quadrature encoder on Portb4,5. I used a cheap one.
    Attached Files Attached Files
    Last edited by flosigud; 29th September 2019 at 20:50.
    Flosi Guđmundsson
    Reykjavík

  • Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #14
    Member teo's Avatar
    Join Date
    Sep 2010
    Posts
    304
    Thumbs Up
    Received: 8
    Given: 1
    Total Downloaded
    6.72 GB

    0 Not allowed!

    Default Re: Driver for ILI9341

    Hi Flosi,
    A good job!
    Teo

  • Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #15
    Prolific Poster charliecoultas's Avatar
    Join Date
    Sep 2010
    Posts
    1,332
    Thumbs Up
    Received: 40
    Given: 39
    Total Downloaded
    3.36 GB

    0 Not allowed!

    Default Re: Driver for ILI9341

    Excellent! I'll try it out, thanks Flosi.

    Charlie

  • Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #16
    Member flosigud's Avatar
    Join Date
    Oct 2013
    Posts
    101
    Thumbs Up
    Received: 6
    Given: 11
    Total Downloaded
    2.72 GB

    0 Not allowed!

    Default Re: Driver for ILI9341

    Hi,

    I'm not sure about the good job, at least not when it comes to commenting as it is almost nonexistent.

    The program has horizontal and vertical menus with all strings stored in ram for speed. Input is a incremental encoder connected to Portb4,5 and a button connected to PORTB.0. I use a cheap mechanical encoder with built in switch.
    Flosi Guđmundsson
    Reykjavík

  • Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #17
    Administrator John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,756
    Thumbs Up
    Received: 77
    Given: 33
    Total Downloaded
    4.30 GB

    0 Not allowed!

    Default Re: Driver for ILI9341

    Disregard this post Flosi,
    My directory path/names exceeded some sort of limit in the assembler. As soon as I shortened things down all compiles fine...
    John


    Hi Flosi,
    I tried to compile your code using the 18F26k22 and I had Assembler errors.
    Maybe I have the wrong assembler.Errormsg.jpg
    Any ideas?

    Also is it possible to use a 18F25K22 with less memory?
    John
    Last edited by John Drew; 9th October 2019 at 04:23.

  • Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 2 users browsing this thread. (0 members and 2 guests)

       

    Similar Threads

    1. [SOLVED !] driver for usb18f2550
      By Zeiger08 in forum USB Module
      Replies: 4
      Last Post: 23rd May 2015, 14:45
    2. Stepper driver
      By pic-ignorant in forum The Lounge
      Replies: 11
      Last Post: 25th April 2013, 21:10
    3. 0 to 10 v driver
      By Tim in forum The Lounge
      Replies: 25
      Last Post: 23rd July 2012, 10:29
    4. Bridge Driver
      By fanie in forum The Lounge
      Replies: 0
      Last Post: 27th August 2008, 12:55
    5. LM032LN Driver??
      By Darlington in forum The Lounge
      Replies: 0
      Last Post: 30th March 2008, 16:42

    Members who have read this thread since 15th October 2019, 12:38 : 1

    Actions :  (Set Date)  (Clear Date)

    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