Shop OBEX P1 Docs P2 Docs Learn Events
Prop demo program for the parallax 4X20 serial LCD?? — Parallax Forums

Prop demo program for the parallax 4X20 serial LCD??

mikedivmikediv Posts: 825
edited 2009-04-09 16:33 in Propeller 1
Guys I know I had seen this somewhere but wasn't there a prop demo program for the 4X20 serial LCD display I found the driver in the object exchange but I remember seeing a post at least I thought I did someone else had purchsed one and was having some problems and others posted some code?
Thanks

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-04-08 23:00
    Here's some materials that I'm working with for the book.
    Look at CustomChars and Hello World.

    (Rename to .zip)

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
    231K
  • mikedivmikediv Posts: 825
    edited 2009-04-08 23:22
    Thank you Old Bit I am trying ot get it to work with simple serial and debug lcd but no luck even wih a pull/down/up on pin 0 or 1 hope my lcd is not bad

    Old Bit what kind of file is this??? I can not seem to open it or read it
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-04-09 00:30
    It's a zip file. Rename with .zip extension. Sorry I've been thrown out of the
    MIME club again. [noparse]:)[/noparse]

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • mikedivmikediv Posts: 825
    edited 2009-04-09 01:18
    Got it, it was bad when I first downloaded. Old Bit I have been using something similair to this thank you. I just can not get my propsticks to work right with it, it works fine with the BS2's so at least the LCD is good.
    From what I can tell looking at the code I should be using P1 on the prop I have it going through a 1K resistor to the input of th LCD but I have also added a 4.7 pull up I have even tried a Pulling the line low as well.
    I am not sure why it is not working


    Same-Pin (Bi-Directional) True Mode Same-Pin (Bi-Directional) Inverted Mode
    Ex: serial.init(0, 0, 9600) Ex: serial.init(0, 0, -9600)
     ┌────────────┐ ┌──────────┐
    │ │Propeller P0├─────┳─────┤I/O Device│
     4.7 kΩ └────────────┘ │ └──────────┘
    ┌────────────┐ │ ┌──────────┐  4.7 kΩ
    │Propeller P0├─────┻─────┤I/O Device│ │
    └────────────┘ └──────────┘ 
    I am looking at P1 on the prop when I load the program with my osciliscope but its not doing anything
    This Serial LC shuld be the same basic thing as the 2X16?? right
    Thanks for the help
  • SRLMSRLM Posts: 5,045
    edited 2009-04-09 01:25
    Try using the FullDuplexSerialPlus object. This code should work provided you use pin 15 and change the switches on the LCD to 19200 baud.

    CON
    
      'These are clock constants
      _xinfreq = 5_000_000                      
      _clkmode = xtal1 | pll16x
    
      pinLCD = 15
    
    OBJ
      LCD    : "FullDuplexSerialPlus"
     
    
    PUB StartLCD
    
      LCD.start(24, pinLCD, 0, 19200)   'NOTE THE 24 as recieve Pin UNTESTED AND UNNEEDED?
    
      LCD.tx(12) 'clear
    
      waitcnt((clkfreq/1000)*7+cnt)
    
      LCD.tx(17) 'backlight
      LCD.tx(22) 'No cursor
      LCD.str(string("Hello World!"))
    
      repeat
    
    
    
    
  • mikedivmikediv Posts: 825
    edited 2009-04-09 16:33
    Hey SRLM thank you very much thanks to all you guys I have it working a bit" no pun intended" but when I look at the output pin on my scope its just a very dirty signal I have so many prop chips I have lost count but I started the whole thing with 2 propsticks not counting my hydra and to be honest whenever I design with them just about always they never fail to do some strange things I wonder if I have some wounded propsticks, but anyway thanks again gus.
Sign In or Register to comment.