Pic to PC AT keyboard caracters


Closed Thread
Results 1 to 6 of 6
  1. #1
    sezgin05's Avatar
    sezgin05 Guest

    Default Pic to PC AT keyboard caracters

    I want to send, some AT Keyboard codes, with PIC to PC. I can receive to keyboard the codes, but can not sending to PC.Help me.Please...

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

  3. #3
    sezgin05's Avatar
    sezgin05 Guest


    Did you find this post helpful? Yes | No

    Unhappy

    Thanks:
    I need sample PBP code for Pic to PC sending.

  4. #4
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Receive AT Keyboard codes by PIC and display over LCD

    Hello Sezgin05,

    Even I am looking at example of receiving and sending AT Keyboard codes to and from the PIC, but no good examples found.

    Can you share your Keyboard Receive Code with me (PBP only)

    Thank you.

    regards

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Hi,
    Are you ready to build the Lookuptable and conditions that goes with?

    if so, here's something that may work.
    Code:
            SCLK    VAR PORTC.1
            SDATA   VAR PORTC.0
            DEFINE  HSER_RCSTA 90h ' Enable serial port & continuous receive
            DEFINE  HSER_TXSTA 24h ' Enable transmit, BRGH = 1
            DEFINE  HSER_SPBRG 10  ' 115200 Baud @ 20MHz, -1.36%
            DEFINE  HSER_CLROERR 1 ' Clear overflow automatically
            
            Key         var WORD
            CounterBit  var byte
    
    MainLoop:
            gosub readps2
            HSEROUT [#KEY,", "]
            goto mainloop                         
    
    ReadPS2:
            FOR COUNTERBIT=0 TO 10
                WaitFallingEdge: if sclk then waitfallingedge
                KEY.0[COUNTERBit]=SDATA
                WaitRisingEdge: if sclk=0 then waitrisingedge
                NEXT
             KEY=(KEY>>1)&$ff          
             pauseus 50
             return
    http://www.hw-server.com/docs/PS2_port1.html
    Last edited by mister_e; - 11th March 2007 at 18:25.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default

    Hello Steve,

    I am planning to build an RF Keyboard which has a RF Tx connected to the Keyboard with a PIC in between and on the other end I have an RF Receiver Connected to the PC through a PIC.

    Yes I am also using the easyPIC3 Development platform to test out the code.

    Just one small question. If I am reading what comes out of the keyboard and shifting it in the PC at the other end , do I need a ASCII lookup table for the conversion ? I would be happier with Garbage out - Garbage in.

    Nevertheless it would be a good thing to see it on the LCD also. Could you just give a headway to the lookup table and condition , would be great.

    regards

Similar Threads

  1. Send data PIC to PC
    By konter in forum Off Topic
    Replies: 6
    Last Post: - 25th December 2009, 22:04
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. AT/PS2 Keybord - PIC Interface?
    By Kamikaze47 in forum Code Examples
    Replies: 73
    Last Post: - 9th August 2009, 16:10
  4. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  5. Replies: 11
    Last Post: - 12th July 2008, 02:36

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