debugin


Closed Thread
Results 1 to 4 of 4

Thread: debugin

  1. #1
    Join Date
    Mar 2004
    Posts
    74

    Default debugin

    I am using the dubugin command to send commands to a pic 16f628 from hyperterminal. I am currently storing each character received in a seperate variable then using if then statements checking for the commands, ( 1 character at a time). Is there a way to do this easier.

    dubugin[wait("rep"),b0,b1,b2,b3,b4]

  2. #2
    Join Date
    Mar 2004
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    I have modified the code to this
    DebugIn [wait("rep"),STR b0\2,b1,b2]

    but if i send b0 out to hyperterm via debug I only get the first character of the 2 character string
    any ideas?

  3. #3
    Join Date
    Mar 2004
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    After reading another thread I found a solution. While the variable B0 contains the string simply sending B0 out via debug isnt showing the string, to do this I changed it to debug b0[0],b0[1]
    I assume, correct me if I am wrong that if I only send debug b0 then it assumes debug b0[0]

    if any one is interested, the thread that I found this on is
    http://www.picbasic.co.uk/forum/show...hlight=strings

  4. #4
    Join Date
    Mar 2004
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    have struck another problem.
    I now wish to get rid of b2 and put any characters after b0 into var b1 untill a CR is received

    In the PBP manual there is STR ArrayVar\n{\c} receive string of n characters optionally ended in character c
    Can this be used somehow with 13 (ie CR)

    any ideas?

Similar Threads

  1. Debugin
    By tbh9365 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 14th January 2008, 22:14
  2. DEBUGIN not working on 12F629
    By fredpret in forum Serial
    Replies: 1
    Last Post: - 22nd September 2007, 11:39
  3. Serin / Serin2 / Debugin Differences
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th January 2006, 06:32
  4. Debugin Causesing Restart
    By IceCube in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 30th September 2004, 01:20
  5. Debugin problem
    By moby in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 11th September 2004, 15:12

Members who have read this thread : 1

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