4D uOLED display lag


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Location
    Albuquerque
    Posts
    19


    Did you find this post helpful? Yes | No

    Default Speed

    I used a 20 mhz oscillator so the baud rate is at 48k. I dont think the baud rate is the issue.

  2. #2
    Join Date
    Feb 2010
    Location
    Albuquerque
    Posts
    19


    Did you find this post helpful? Yes | No

    Default serin command

    I put a 20mhz xtal so the pic is running at 5x speed. the baud rate is now 48k. I can display a message but I am having trouble receiving the acknowledge bit. I have a feeling it is the serin command. The datasheet on the uOLED says after the command has been run, the display sends and acknowledge byte ($06) back so the pic can send another command. I am having trouble with the code. please help.
    Code:
    DEFINe CHAR_PACING 0
    define OSC 4
    baud con 2
    ANSEL = %00000000
    
    counter var word
    RX var byte
    Main:
    
    pause 10000
    serout GPIO.2, baud, [$55]
    pause 500
    
    'Displays James Richards! then holds for 2 seconds
    serout GPIO.2, baud, [$73, 6, 3, 2, $f8, $00, "James", $00]
    pause 100
    serout GPIO.2, baud, [$73, 4, 4, 2, $f8, $00, "Richards!", $00]
    pause 10000
    
    'Clears screen
    serout GPIO.2, baud, [$45]
    pause 200
    
    for counter = 0 to 99
        
        serout GPIO.2, baud, [$53, 5, 5, 0, $ff, $ff, 5, 5, #counter, $00]
               pause 1000 
        serout GPIO.2, baud, [$53, 5, 5, 0, $00, $00, 5, 5, #counter, $00]
               pause 200
        
    
    next counter
    
    
    
    
    
    getack:
    serin GPIO.0, baud, [RX]
    if (RX = $06) then
    RX = 0 
    return
    else
    end
    endif

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