hyperterminals commands


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    May 2005
    Location
    Ne ohio
    Posts
    21


    Did you find this post helpful? Yes | No

    Default ansi codes

    Darrel,
    I included your ansi.inc file and tried a compile but mpasm gave errors.

    sonmething about "found label after column 1" and
    a few illegal charcters.

    I'm using pbp in Microcode studio and Mpasmwin.

    I only included the .inc file and did not use any of the macros.

    thanks,
    Brian

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


    Did you find this post helpful? Yes | No

    Default

    Hi ptig185,

    Make sure you have at least 1 HSEROUT statement in your main program.

    The include file uses the HSEROUT?C macro's, but it doesn't uses an HSEROUT itself. So PBP doesn't include the HSEROUT?C macro unless you have an HSEROUT statement somewhere in your program.

    HTH,
    DT

  3. #3
    Join Date
    May 2005
    Location
    Ne ohio
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Darrel,

    I added the HSEROUT command and that worked but the CurMove command gives me some errors. I'm using MPASM in Microcode studio.

    Thanks,
    Brian M.
    ===============================
    define osc 20
    define i2c_slow 1 '20mhz requires slower transfers in seeprom
    include "modedefs.bas"
    include "ansi.inc"

    HSEROUT [10,13]
    @ ClrScr
    @ Blink
    @ BackColor blue
    @ CurMove 1, 2 'errors here

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


    Did you find this post helpful? Yes | No

    Default

    Try adding this at the bottom of your program.


    Code:
    @  ifdef doesnotcompile   ; force PBP to include the HSEROUTDEC? macro
        HSEROUT  [DEC 1]
    @  endif
    DT

  5. #5
    Join Date
    May 2005
    Location
    Ne ohio
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    That fixed it but it would not compile with just the

    HSEROUT [10] Before or After the CurMove command

  6. #6
    Join Date
    May 2005
    Location
    Ne ohio
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Now it won't compile once again!???!!!!
    It did compile a few time then I tried adding the HSEROUT back in jsut after
    the CurMove command and it did not compile. Now it won't compile.


    '=================== myfile =================
    'file: AnsiTest.bas

    define osc 4
    include "modedefs.bas"
    include "ansi.inc"


    Row var byte
    Col var byte
    Row=1
    col=1
    SerPinOut var portC.6 'Usart output TX
    SerPinIn var portC.7 'Usart input RX


    @ ClrScr
    @ Blink
    @ BackColor blue
    @ ForColor yellow
    @ CurMove 1,2
    @ RequestCurPos

    ' HSEROUT [DEC 10]

    ''TermColor ForegroundLightDark, Fore0groundColor, BackgroundColor
    ''@ TermColor Yellow, Blue

    'HSEROUT [10,12]

    'row=15:col=15
    ' serout2 PortC.6,16468,[27,91,DEC row,59,DEC Col,72]

    'POSITION: 'POSITION CURSOR ON LINE & COLLUM
    'SEROUT2 SerPinOut,16468,[27,91,"H"]
    'SEROUT2 SerPinOut,16468,[27,91,DEC Row,";",DEC Col,"f"]


    @ ifdef doesnotcompile ; force PBP to include the HSEROUTDEC? macro
    HSEROUT [DEC 1]
    @ endif

  7. #7
    Join Date
    May 2005
    Location
    Ne ohio
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    This is strange, I commented all the ansi stuff out. Then brought it back in
    a bit at a time and now it will compile. ??????????

    I tried deleting all the output files but that did not help. Now it's compiling
    once again.

    Brian

Similar Threads

  1. LCD commands
    By ruijc in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 26th September 2008, 12:09
  2. DS2480D commands
    By manwolf in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 21st June 2008, 05:32
  3. PBP - are DEFINE command(s) mandatory?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th September 2006, 16:43
  4. Replies: 0
    Last Post: - 28th June 2006, 12:54
  5. Timing in PICBasic Pro commands
    By freelancebee in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th September 2005, 00:50

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