Shop OBEX P1 Docs P2 Docs Learn Events
TV Broadcast using TV_Text - Page 2 — Parallax Forums

TV Broadcast using TV_Text

2

Comments

  • NewzedNewzed Posts: 2,503
    edited 2007-06-06 14:08
    Mike, Paul's program says:

    PUB start(basepin) : okay··

    So where do I set basepin = 0?

    I have my own version of the TV program that works just fine, and has the statement you referenced:

    PUB start' | i

    · 'start the tv terminal - TV must be switched to "Game".
    · term.start(0)

    I would like to get Paul's program running but I can't set the Start key.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • Mike CookMike Cook Posts: 829
    edited 2007-06-06 14:20

    Sid,

    Well I guess I'm at a loss, the only thing that I see that Paul posted was his version of TV_Text.spin, on page one of this thread near the bottom of the page. If you'll post a copy of it (entire archive), I'll take a look at it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike
  • NewzedNewzed Posts: 2,503
    edited 2007-06-06 14:25
    Mike, I have attached a copy of Paul's file as I downloaded it.· I have also attached a copy of the TV.spin object I am using.

    Sod

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
  • Mike CookMike Cook Posts: 829
    edited 2007-06-06 14:37
    Sid,

    Try the attached archive, you will need to adjust:
    CON 
    _clkmode = xtal1 + pll16x                   ' Set chip to run at 16 times the installed crystal
    _xinfreq = 5_000_000                        ' Define the installed crystal
    
    

    If you using a crystal different than 5 MHz


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike
  • NewzedNewzed Posts: 2,503
    edited 2007-06-06 15:32
    Mike, I tried your file.· Added another line and I am broadcasting OK except that it looks like the lower half of the font in each line is missing.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • Mike CookMike Cook Posts: 829
    edited 2007-06-06 16:07

    You might try tinkering with the Broadcast frequency, that's how I cleaned mine up, some. I'm not done experimenting yet, will probably build Beau's LC circuit as posted here:

    http://forums.parallax.com/showthread.php?p=593861

    And try a 6 Mhz crystal.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-06-06 16:20
    I don't know what to say guys other than it won't work with the TV you have, many TVs are very forgiving in the frequency it receives, clearly yours are not. Mike your use of 61.2625MHz demonstrates this, but because you are using a frequency that is not a nice multiple of your crystal the generated frequency with have jitter and that shows up as the noise you are seeing.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-06-06 18:33
    And there is an additional differnce in the file besides the header values tv_pins is now assigned differently to corectly set the mode for broadcast based on the base pin value (high or low nibble).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • tatatomtatatom Posts: 16
    edited 2007-06-07 19:51
    I have tried numerous(!) frequency settings and 4 different TVs from B&W portables to newish colour and the best I can get now are the strange cut-in-half lines described by newzed. See attached image. I tried adding multiple lines and they are all cut in half. Any other settings that need to be tweaked?

    Tom
    640 x 479 - 67K
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-06-07 20:01
    Thats not an issue with the broadcast mode, it's·the driver being used incorrectly. You are running it in 16x16 tile mode instead of 16x32 so only the top halves of the characters are being displayed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.

    Post Edited (Paul Baker (Parallax)) : 6/7/2007 9:51:03 PM GMT
  • NewzedNewzed Posts: 2,503
    edited 2007-06-07 22:19
    Paul, how and where do I change the mode to 16x32?

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-06-07 22:35
    Please post your code and all sub objects that have been modified.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Mike CookMike Cook Posts: 829
    edited 2007-06-07 23:08
    Paul,

    Your right some TV's are pretty sloppy and will decode an display properly an 'off carrier' signal, found out that the 13" color TV in my office will display a pretty good picture when I set the broadcast frequency for 60_000_000.

    One more thing, would it be as simple as using the BS2_Functions.spin:

    PUB FREQOUT(Pin,Duration, Frequency)

    or

    PUB FREQOUT_SET(Pin, Frequency)

    to make some simple sounds on P15 and have them also transmitted along with the video carrier? If not can you point me in the right direction.

    Thanks,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-06-07 23:25
    The frequency must be generated on another cogs CTRA in mode 1 using FM modulation centered at 4.5 MHz and the AuralSub Field of the video Generator chosen to pick up that output. The extent of my knowledge on this subject is laid out on page 11 of the datasheet (ie neither I nor anyone that I'm aware of has·implemented this yet, but the hardware facilities exist).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • tatatomtatatom Posts: 16
    edited 2007-06-08 09:50
    So how do I set the driver to 16 X 32 tiles instead of 16 X 16?
    I have tried changing the MODE setting in TV_Text_Paul and can't get it. Is there sometyhing else needed in conjuction with MODE change or just something else?

    Tom


    DAT & TV_Params from TV_Text_Paul below:

    DAT

    tv_params long 0 'status
    long 1 'enable
    long 0 'pins
    long %10110 'mode
    long 0 'screen
    long 0 'colors
    long cols 'hc
    long rows 'vc
    long 4 'hx
    long 1 'vx
    long 0 'ho
    long 0 'vo
    long 61_250_500 'broadcast
    long 0 'auralcog
  • NewzedNewzed Posts: 2,503
    edited 2007-06-08 12:46
    Paul, I have attached my program, plus a copy of the object it uses - TV_Text_Paul.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-06-08 16:31
    Sid your program is displaying the bottom half of the characters.

    Tom, please post your code both the modified driver and your top level object.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • NewzedNewzed Posts: 2,503
    edited 2007-06-08 16:48
    Paul, what I am seeing is the top half.· Here is a picture.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    450 x 195 - 5K
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-06-08 17:11
    I ran the code you provided, it shows up perfectly. The only thing I can think of is that you are running code other than which you posted, try downloading your own code into a new folder and compile onto the EEPROM and test it again.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.

    Post Edited (Paul Baker (Parallax)) : 6/8/2007 5:17:02 PM GMT
  • NewzedNewzed Posts: 2,503
    edited 2007-06-08 17:18
    Paul, was that comment for me or Tom?

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-06-08 17:48
    It was addressed to you Sid, so far you're the only one to post code. Here is the image capture of your code when I run it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
    1156 x 860 - 229K
  • NewzedNewzed Posts: 2,503
    edited 2007-06-08 18:10
    OK, Paul.· Why can I not get the same result.

    I created a new folder "TVCast', copied the top file and the two objects into it, but I still get the top half of the text.

    In the DAT block, under tv_params, if I change the mode from %10010 to %10000 and SetXY(0,0) the display shows up in the same place as in your picture, but still only the top half.· If I change mode back to %10010, the program still responds to the SetXY command, except that (0,0) starts at about what would be (0,4) with the mode set at %10000.

    My aural subcarrier resistor is a 1 percent 562 ohm.· My TV is a Sanyo 13".

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-06-08 18:31
    Somehow, somewhere bit 4 of the mode is being set to 0, this needs to be set to 1 to display the bottom half. Since TV_Text.spin·is dependant on TV.spin and that is the only file in the object hierarchy which we haven't been passing back and forth, this must be where the issue lies. You·changing the file is the only thing I can think of which could cause the discrepancy. I have attached the original TV.spin

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • NewzedNewzed Posts: 2,503
    edited 2007-06-08 18:37
    Paul, that did it.· Thank you very much.· Now all I have to do is add a keyboard.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-06-08 18:39
    Glad to hear you got it working Sid.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • NewzedNewzed Posts: 2,503
    edited 2007-06-08 18:44
    Paul, the TV I had was V1.0.· The one you posted was 1.1.· No wonder it wouldn't work!!

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • NewzedNewzed Posts: 2,503
    edited 2007-06-08 21:42
    Tom, do you have your broadcast working yet?

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • tatatomtatatom Posts: 16
    edited 2007-06-08 22:11
    Same here. I had ver 1.0 too. Now with ver 1.1 it works great!!
    Thanks to everyone for helping me solve this problem
    I'm really impressed with both the prop chip and level of expertise that went into all the helpful replies.

    Tom
  • NewzedNewzed Posts: 2,503
    edited 2007-06-09 13:53
    Paul, I added a keyboad and it is working fine.

    Now, I can change the display colors by manipulating the values in DAT/pallette in TV_Text_Paul.· Is there any way I can change the colors in the top file so I can have different colored lines of text?

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • NewzedNewzed Posts: 2,503
    edited 2007-06-11 20:36
    Paul, have you had a chance to look at my last post about changing text colors in the top file?

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
Sign In or Register to comment.