Need idea hove to..?


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Cool

    Quote Originally Posted by mackrackit View Post
    Do you have pin #3 on the display going to a pot as a voltage divider for contrast?
    You have 100% good question !!!!
    When I was use 2x16chr display it have bad contrast and I was see TEST on it,but 4x20 have extra contrast and with same value all poligons are black at these oment I was reduce fix resistors on network on pin 3 and problem go out I can look normaly and 4x20 work fine.

    The best thing is have mentors out of personal laboratory !
    Other can find what you cant in your project ;-)).

    The best regards to all

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    So, can we infer that all is well now and is working ok?
    (a few things are getting lost in the English translation )

  3. #3
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by skimask View Post
    So, can we infer that all is well now and is working ok?
    (a few things are getting lost in the English translation )
    Yes my dear friend work 100% ok.
    Many hank's o all you !!!
    I little think about some small problems but in core all work good.

    Here is little more about what I probe to do.

    In project I have one RS232 conection via hser in 877 to pc via max 232,one 4x20 chr lcd (that problematic hehehe) and 4x4 matrix keyboard.
    Device must work on next way:
    1.it must send no:. of key what is push by persone who use it.
    2.in middle time it must display what return application from pc via rs232 on lcd.
    3.application return some instructions like words like "DOG" or "CAT"or...and position where it will be displayed on lcd by line and row - position in line 1,2,3 or 4.
    It is something like terminal for PC.

    For now I success send key no:. with mister_e rutine for matrix keyboard
    But I stil look hove to configure that famose from PC to PIC...

    Maybe somethin like 1,5,DOG or ???
    And hove to I decode that ?

    I was use 877 with Nokia 6210 and there I was use skip xxx chr and get message and decode it like bite but here I dont know hove to start.


    Regards to all ( any suggest is welcome).

    Sorry for bad english again !!!

    Robert

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    This might get you started.

    Read all data from the PC into an array in the PIC.
    Code:
    [WAIT("?"),STR NUMS\8]
    The above will wait for "?" (could be whatever you want) and the next part will put the rest of the data in an array that has 8 places.

    The array will start at 0, so if you wrote it out it would look like this:
    NUMS[0]
    NUMS[1]
    NUMS[2]
    NUMS[3]
    NUMS[4]
    NUMS[5]
    NUMS[6]
    NUMS[7]

    Now you can make each part a variable that is a bit easier to work with:
    X1 = NUMS[0]
    X2 = NUMS[1]
    X3 = NUMS[2]
    X4 = NUMS[3]
    X5 = NUMS[4]
    X6 = NUMS[5]
    X7 = NUMS[6]
    X8 = NUMS[7]

    Now lets say X1 is equal to 1 and you want to start display at line 1 position 2.
    Code:
    LCDOUT $FE, $80 + X1
    $80 is line 1 position 1. (refer to the manual for more)

    Now to display some of the other data:
    Code:
    LCDOUT $FE,$80 + X1,X2,X3,X4
    X2 = D
    X3 = O
    X4 = G

    Something like that maybe.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. How do they do this? Any idea?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 28th August 2011, 18:17
  2. Giving power to MCU upon button press - Good Idea?
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st July 2009, 08:34
  3. Idea of master/slave serial comm.
    By sirvo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th December 2007, 09:36
  4. Replies: 5
    Last Post: - 18th July 2007, 11:43
  5. Replies: 10
    Last Post: - 17th July 2006, 03:23

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