Error: This style srray syntax not supported??????


Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Error: This style srray syntax not supported??????

    Using MCS, PBP2.47, MPASM
    PIC = 18F4550

    The two line of core are...
    Code:
    ADT[ADCHAN].highbyte = ADRESH
    ADT[ADCHAN].lowbyte = ADRESL
    i tried the alternates with the same results...

    Code:
    ADT[ADCHAN].byte0 = ADRESH
    ADT[ADCHAN].byte1 = ADRESL
    Any idea whats causing it and how to fix it?

    Thanks

    :edit,
    ADT is word array of 8
    ADCHAN is byte var

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    >>Any idea whats causing it ...
    Wrong syntax.

    >> and how to fix it?
    Code:
    ADCIN 0, ADT[ADCHAN]
    -- OR --

    Code:
    ADresult   VAR WORD EXT
    @ADresult = ADRESL
    
    ...
    ADT[ADCHAN] = ADresult
    -- OR --
    Code:
    ADT[ADCHAN] = ADRESH << 8 + ADRESL
    -- OR --

    ...<br>
    DT

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Thanks Darrel... I used the latter because i'm using ADC int's... with your interrupt system... and so, can't use ADCIN...

    Thanks

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