Advice needed. FOR...NEXT loop


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    atomski's Avatar
    atomski Guest


    Did you find this post helpful? Yes | No

    Default

    Mel, I have another question for you regarding this problem.
    I've done what you've suggested as shown below:

    Tone var Byte[11]

    Loop:
    FOR i = 1 TO 10
    FREQOUT Pin, Period, Tone[i]
    NEXT i

    However I have 10 4-digit dec numbers that the PC program
    is sending out via rs-232 as ASCII characters in hex format
    as shown below:
    for 1234 it sends $04, $D2
    or
    for 5678 it sends $16, $2E

    So, my numbers are WORD sized. Can my Tone array hold
    10 word sized velues?

    How can I get them by using HSERIN command? Perhaps
    like this:

    HSERIN [STR Tone\11]

    Also, how can I store these 10 values (the Tone array) into
    the on-board eeprom and read them back from eeprom to
    memory at power-up?

    --
    Sincerest regards,

    YZ7REA Vladimir M SKrbic
    4N7ATV Repeater Administrator
    YU7GHZ Radio Club President
    Last edited by atomski; - 24th June 2004 at 18:26.

Similar Threads

  1. Controlsystem for compact sporting (clay shooting)
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 30th July 2009, 16:48
  2. Serin to Serin2 ??
    By Gixxer in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th January 2008, 03:56
  3. Serial Relays
    By tazntex in forum General
    Replies: 3
    Last Post: - 17th May 2007, 17:42
  4. Advice needed on 'neat' Project!
    By vacpress in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th February 2007, 06:21
  5. Newbie question:
    By Izone in forum mel PIC BASIC
    Replies: 2
    Last Post: - 26th February 2006, 16:24

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