Shop OBEX P1 Docs P2 Docs Learn Events
Debug to TV using 1-PinTV +option 1-PinKBD (minimal footprint; screen buf overl — Parallax Forums

Debug to TV using 1-PinTV +option 1-PinKBD (minimal footprint; screen buf overl

Cluso99Cluso99 Posts: 18,069
edited 2010-05-05 21:03 in Propeller 1
Debug to TV using 1-Pin· (Now also includes optional 1-Pin Keyboard Driver)

05May2010: v1.25 allows user selection of column & row sizes
05May2010: v1.20 adds automatic parameter calculation and timing diagram
24Apr2010: Updated demo v1.10 in·OBEX· http://obex.parallax.com/objects/578/
(includes 1-Pin TV Driver and 1-Pin Keyboard drivers)

(Previous version v1.08 does not have the 1-Pin Keyboard Driver)

Features: 1-PinTV
  • Uses only 1 propeller pin·and a single series·resistor (100R...1K1, 270R preferred)
  • see below for instructions to make a cable with the resistor in the plug
  • 40x25 default (64x25 & 80x25 with overclocking)
    • maximum settings...
    • 80MHz··40x25 with inverse
    • 80MHz··64x25 No inverse
    • 96MHz··64x25 with inverse
    • 96MHz··80x25 No inverse & some flicker
    • 104MHz·80x25 No inverse
    • see program to remove two inverse instructions
  • NTSC or PAL
  • Black & White composite video to TV or LCD (typically yellow RCA connector)
  • Embedded in the cog...
    • Font 128 characters 8x8
    • Characters with bit7=1 show as inverse (not for all higher resolutions)
    • Video driver
    • Mini-Terminal driver
      • Clear Screen : chr(0) & chr(24) [noparse][[/noparse]I may remove chr(24) as all drivers seem to use chr(0)?]
      • Backspace··· : chr(8)
      • LineFeed····· : chr(10)
      • Home········· : chr(11)
      • CarriageReturn : chr(13) automatically scrolls up when required
      • Esc············ : chr(27) -not implemented-
      • Right·········· : chr(28) wraps on same line
      • Left············: chr(29) wraps on same line
      • Up············· : chr(30) wraps on same column
      • Down········· : chr(31) wraps on same colum
      • Scrolls down automatically when required
      • Includes Goto(x,y) in hub code
    • Automatically displays cursor
  • Screen buffer located in hub
    • Overlays (re-uses)·the hub space occupied by the cog code (plus 4 longs)
    • Screen buffer can be directly accessed by your program if desired
  • Output methods (in hub)
    • chr/out/tx (for compatability with most other drivers)
    • str (for zero terminated strings)
    • hex (for outputing in hex format)
    • dec (for outputting in decimal format)
    • bin (for outputting in binary format)
    • home (sends cursor home)
    • clear (clear screen & cursor home)
    • gotoxy (sends cursor to col,row where 0,0 is home)
    • cr (performs a carriage return =chr(13))
It is simple to add debug methods in your program to output various messages or values at various stages in your programming to aid in debugging.

It can also be used as a B&W text terminal replacing TVText in normal programs, or as an additional output to your TV/VGA.

Features: 1-PinKBD
  • Uses only 1 propeller pin·and three·resistor (100R & 2x 10K) and +5V·
  • See below for instructions to make a cable with the resistors in the plug
  • Works with most keyboards...
    • PS2
    • USB with adapter (in PS2 mode)
    • DIN5 with adapter cable (older keyboards)
  • Optional ASCII output conversion or ScanCodes
  • 16 byte buffer in cog minimises hub space
  • Requires <space> to·calculate keyboard timing
    • Once done for a specific keyboard these values·can be hardcoded
      • Saves synchronisation each time
      • Saves hub space·
  • Ideally suited for a Debugging keyboard or the main Keyboard
  • Useful in conjunction with the 1-PinTV driver

Enjoy cool.gif

Edit: There are instructions to build the video cable with the resistor inbuilt at the connector here http://forums.parallax.com/showthread.php?p=849265·Also instructions to build the·1-pin keyboard cable.

Below: Photos 1-5 are·of the video cable. The photos A-H are of the cable for my 1pin PS2 Keyboard driver.

attachment.php?attachmentid=67390

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:

· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)·
· Prop OS: SphinxOS·, PropDos , PropCmd··· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBlade Props: www.cluso.bluemagic.biz

Post Edited (Cluso99) : 5/5/2010 9:54:23 AM GMT
«13

Comments

Sign In or Register to comment.