Small great problem


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Variable Value is not loaded with the character that you load into byte Dato, if you want it to be displayed than either you print also variable Dato or as in the example below you transfer Dato into Value.

    correct your ascii code for the letters c;r and s


    Code:
    '$63 = c
    '$72 = r
    '$73 = s
    
    if P1 = 0 THEN
    'Dato = $73 ' 
    Dato = $72
    Value=Dato
    lcdout $fe,$c0,"Key: ",Value," "
    Pause 50
    GOSUB TX
    endif
    Al.
    All progress began with an idea

  2. #2
    Join Date
    Jul 2005
    Location
    Ferrara - Italy
    Posts
    13


    Did you find this post helpful? Yes | No

    Red face

    Quote Originally Posted by aratti View Post
    Variable Value is not loaded with the character that you load into byte Dato, if you want it to be displayed than either you print also variable Dato or as in the example below you transfer Dato into Value.

    correct your ascii code for the letters c;r and s


    Code:
    '$63 = c
    '$72 = r
    '$73 = s
    
    if P1 = 0 THEN
    'Dato = $73 ' 
    Dato = $72
    Value=Dato
    lcdout $fe,$c0,"Key: ",Value," "
    Pause 50
    GOSUB TX
    endif
    Al.
    Thanks Aratti! Thanks very much!
    I have effected the changes from you signalled and in effects we are now all some right ... It's still me impossible to send the data on the PS/2. Is it possible that the error is in the command SHIFTOUT?

    Thanks very very muche for your irreplaceable help!

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    .... Is it possible that the error is in the command SHIFTOUT?
    I think you have spotted the problem. Read the thread @ the given link, it will help you in understanding the ps2 protocol.

    http://www.picbasic.co.uk/forum/show...=communication

    Al.
    All progress began with an idea

  4. #4
    Join Date
    Jul 2005
    Location
    Ferrara - Italy
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by aratti View Post
    I think you have spotted the problem. Read the thread @ the given link, it will help you in understanding the ps2 protocol.

    http://www.picbasic.co.uk/forum/show...=communication

    Al.
    Thank you very much!

Similar Threads

  1. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  2. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 21:04
  3. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 21:39
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59
  5. HSEROUT Problem
    By Keith in forum General
    Replies: 2
    Last Post: - 25th June 2005, 15:09

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