Driver for ILI9341 - Page 2


Today 09:17
Forum: Absolute Beginners Section
Starter: amod
Views: 0
Replies: 23
Yesterday 20:44
Forum: SnapShot
Starter: towlerg
Views: 0
Replies: 54
+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Driver for ILI9341192 days old

  1. #11
    Junior Member flosigud's Avatar
    Join Date
    Oct 2013
    Posts
    59
    Thumbs Up
    Received: 10
    Given: 6
    Total Downloaded
    1.65 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

  2. 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.

  3. #12
    Junior Member flosigud's Avatar
    Join Date
    Oct 2013
    Posts
    59
    Thumbs Up
    Received: 10
    Given: 6
    Total Downloaded
    1.65 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

  4. 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 23rd April 2019, 08:31 : 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