missing high bits of word val


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    17


    Did you find this post helpful? Yes | No

    Default

    compiler returns this error: This style array syntax not supported

    i'm looking at this page now for some pointers,
    http://www.picbasic.co.uk/forum/show...ht=style+array


    maybe there is a limitation on the usart for sizes >byte or there is a register config setting i've missed on this 16f88.

    i'm looking into it, back later ...

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by archendekta View Post
    compiler returns this error: This style array syntax not supported

    i'm looking at this page now for some pointers,
    http://www.picbasic.co.uk/forum/show...ht=style+array


    maybe there is a limitation on the usart for sizes >byte or there is a register config setting i've missed on this 16f88.

    i'm looking into it, back later ...

    Then have a word variable like

    Code:
    Temp VAR WORD
    Then, modify the print routine as follow.

    Code:
    Print2LCD
      
        FOR Ndx=0 to 18
            Temp = Tst_Array[Ndx]       
            HSEROUT [Temp.LowByte,Temp.HighByte ]
        NEXT Ndx
        
    RETURN
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Jan 2009
    Posts
    17


    Did you find this post helpful? Yes | No

    Default

    that worked sayzer. thanks.


    curious, this is the format for arrays in PBP to get word, longint values through usarts to radios?

  4. #4
    Join Date
    Jan 2009
    Posts
    17


    Did you find this post helpful? Yes | No

    Default

    it's working now. now that you helped with the high-low byte. on the receiving end i'm just multiplying the highbyte by a constant and adding it to the lowbyte to get my 16bit value.

    many thanks

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  3. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th July 2008, 23:19
  4. calculation problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2006, 15:23
  5. error on compiling
    By parker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th June 2005, 14:31

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