Shop OBEX P1 Docs P2 Docs Learn Events
How to have "debug" type computer monitor display in Propella? — Parallax Forums

How to have "debug" type computer monitor display in Propella?

CalebCaleb Posts: 18
edited 2008-03-17 14:44 in Propeller 1
I noticed that Propella has not built in "debug" type display function like basic stamp. Does anybody have object do this and give me simply·way to use or show me example how I can use in the propellar code to display valuable or results in computer monitor?

If there is not, can someone send me similar function using additional monitor port in Propellar demo board? In this case, I may need to have additional monitor to do this, rifht? I am realy beginner.
Thanks,
Caleb.·jumpin.gif

Comments

  • AribaAriba Posts: 2,685
    edited 2008-03-16 18:08
    Hello Caleb

    Try PropTerminal: http://forums.parallax.com/showthread.php?p=649540

    It has some examples in th ZIP.
    Here is another code example to show values with PC_Text.spin:

    {{ Text Test }}
    
    '  Shows how to display values on PropTerminal for Debugging
    
    CON
    
      _clkmode = xtal1 + pll16x
      _xinfreq = 5_000_000
    
    
    OBJ
      term   :     "PC_Text"        'You can also use TV_Text or VGA_Text objects
      
    VAR
      long  i
    
    PUB Main
    
      'start the terminal
      term.start(12)
      term.str(string("PC_Text Demo...",13))
    
      term.out(0)                   'show a single character defined by ASCII code 
      repeat i from 1 to 20
        term.out(12)                'change the color
        term.out(i&7)                 
        term.dec(i)                 'show a variable in decimal
        term.out(9)                 'tabulator
        term.out("$")
        term.hex(i,2)               'show a value in Hex
        term.out(9)
        term.out("%")
        term.bin(i,8)               'show a value binary
        term.out(13)                'force new line
        waitcnt(clkfreq+cnt)
    
    



    Andy

    Post Edited (Ariba) : 3/22/2008 8:01:22 AM GMT
  • RinksCustomsRinksCustoms Posts: 531
    edited 2008-03-16 23:18
    it doesn't get much easier or better than the prop terminal. You can even make the window bigger or smaller and print it too!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    E3 = Thought

    http://folding.stanford.edu/·- Donating some CPU/GPU downtime just might lead to a cure for cancer! My team stats.
  • RaymanRayman Posts: 14,162
    edited 2008-03-17 01:20
    PropTerminal is really nice.

    But, I shamefully plug my own PropMonitor here:

    http://forums.parallax.com/showthread.php?p=706777
  • joeldjoeld Posts: 49
    edited 2008-03-17 14:44
    After reading a previous post I noticed I'm not the only one that has experienced quality issues with this device. My screen also came unglued from the chip. From the start it was always finiky about booting up. Went through all the troubleshooting advice on the 4d site. It was running a program just fine then after sitting powered off for a day, refused to come back to life.

    Left me with mixed feelings on its reliability out in the field.
Sign In or Register to comment.