Just received my new PIC-LCD3310


Results 1 to 7 of 7

Threaded View

  1. #5
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: Just received my new PIC-LCD3310

    Sorry, I will have to check into that other file. I need to look at the differences more to see what's going on. But this should get you going (with caps only). Use the attached include.LCD_3310.zip

    Code:
    DEFINE LOADER_USED 1
    DEFINE RESET_ORG 1000h ' For Microchip USB Bootloader
    OSCTUNE.6 = 1     'turn on PLL
    DEFINE OSC 48
    include "modedefs.bas"
    include "LCD_3310.inc"
    
    TRISD = 0
    PORTD.0 = 1   'turn on g sensor
    PORTD.1 = 0   'select scale for g sensor
    PORTD.2 = 0   'select scale for g sensor
    
    
    TRISA = %00000111   'set porta.0, 1, and 2 as inputs
    TRISB = 0
    TRISC = 0
    CM1CON = 7
    CM2CON = 7
    TRISC = 0
    TRISE = 0
    ADCON0 = %00000001    
    ADCON1 = %00000010      
    
    @ PrintStr 0,0, "OK, I LOVE JUST BEING ABLE TO PRINT ON THE LCD SCREEN. BLINKING AN LED IS ALSO NICE."
    END
    Last edited by ScaleRobotics; - 7th April 2011 at 12:12. Reason: forgot to turn on PLL with osctune.6 = 1

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