Need help or idea how to


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105

    Question Need help or idea how to

    I use 16f877 and 4x4 matrix keyboard with rutine by mister_e.
    Also I use Hardware usart in PicMicro for rx-tx data to PC .
    Program work on next way:
    User use 4x4 keyboard and if he press key PicMicro send at that moment No:. of key from 1 to 16,taht work extra,when PC receive key No:. it return some word with index like these "128DOG" Becouse 4x20 LCD what I use have locations for chr from 128 -231 it simple to PicMicro know where must display word "DOG" .

    Question hove to I thel Pic in same time when user type on keyboard to data is received from PC when I know to PicMicro can't work multitasking !

    All thing must work like PC terminal and PC never send more then 8 chr to PicMicro.
    Like "128ABCDE" include position in front word like you see.

    Any suggest are welcome .

    Regards Robert
    Last edited by phoenix_1; - 16th May 2008 at 15:50. Reason: error

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


    Did you find this post helpful? Yes | No

    Default

    This will be a time slicing thingy. You could use a Timer interrupt to scan the Keyboard (look for SCAN_ONCE in my routine) + Usart interrupt for RX.

    OR simply USART RX interrupt.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Wink

    Can you give me short example please.
    For now you always give extra good ideas and help then one time more ;-).

    When I finish project I will give it full for all with hardvare and software I promice that.
    Maybe someone will need same as me.
    I need that terminal becouse I dont have place for standard monitor or pc lcd and classic keyboard where i use pc for some job that is core of my problem.

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


    Did you find this post helpful? Yes | No

    Default

    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, 17:17
  2. Need idea hove to..?
    By phoenix_1 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 14th May 2008, 18:41
  3. Idea of master/slave serial comm.
    By sirvo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th December 2007, 08:36
  4. Replies: 5
    Last Post: - 18th July 2007, 10:43
  5. Replies: 10
    Last Post: - 17th July 2006, 02: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