Shop OBEX P1 Docs P2 Docs Learn Events
demo kit and pinouts with respect to hydra for video driver — Parallax Forums

demo kit and pinouts with respect to hydra for video driver

Bob DruryBob Drury Posts: 236
edited 2009-05-22 09:11 in Propeller 1
I am trying to get the hydra graphics demo to run on the parallax demo board pin definition seems
confusing in tv_drv %001_0101 for pins 8-15 in Hydra %011_0000 for pins maybe it's not possible
·

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2009-05-22 01:10
    Bob Drury said...
    I am trying to get the hydra graphics demo to run on the parallax demo board pin definition seems
    confusing in tv_drv %001_0101 for pins 8-15 in Hydra %011_0000 for pins maybe it's not possible
    What exactly is confusing? The first 3 bit define the pin group, that's %001 for the demo board (15-8) and %011 for the Hydra (31-24). The lower 4 bit define the exact layout within the group:

    %0000 -> %0000_0111    (pins 24, 25, 26) Hydra
    %0101 -> %0111_0000    (pins 12, 13, 14)
    


    That's how the h/w is connected. So - everything else being equal - simply replace the pin definitions.
  • Bob DruryBob Drury Posts: 236
    edited 2009-05-22 02:54
    I have tried changing the pin definition and I get some output that is eratic when run on the demo board but runs properly on the hydra. Using the same tv the TV_010.spin runs properly on the demo screen and is steady so i don't think the hardware is the issue.

    On demo {long %001_0101 'pins} which gives, mode %0000_0111 broadcast, pins %0111_0000 pins (12,13,14) at least outputs something but when following is used which I think would be the correct definition
    {long %011_0101 'pins} which gives, mode %0000_1111 broadcast and aural, pins %0111_0000 pins (12,13,14) doesn't output anything.

    Why did Hydra use %011 and TV_Terminal.spin use %011

    Sorry I still don't understand why %0101 (5) would give the mask of %0111_0000 for pins 15/14/13/12/11/10/9/8
  • kuronekokuroneko Posts: 3,623
    edited 2009-05-22 03:23
    Bob Drury said...
    I have tried changing the pin definition and I get some output that is eratic when run on the demo board but runs properly on the hydra. Using the same tv the TV_010.spin runs properly on the demo screen and is steady so i don't think the hardware is the issue.
    demo screen meaning a TV attached to the demo board?
    Bob Drury said...
    On demo {long %001_0101 'pins} which gives, mode %0000_0111 broadcast, pins %0111_0000 pins (12,13,14) at least outputs something but when following is used which I think would be the correct definition
    {long %011_0101 'pins} which gives, mode %0000_1111 broadcast and aural, pins %0111_0000 pins (12,13,14) doesn't output anything.
    Using %011_0101 on the demo board doesn't get you anywhere. The demo board TV output is using pins 12/13/14 which is group 1 (%001_0101).
    Bob Drury said...
    Why did Hydra use %011 and TV_Terminal.spin use %011
    The Hydra must use group 3 because that's where the TV h/w is connected. As for TV_Terminal.spin, the one coming with the PropTool (1.2.6) is using %001_0101. There is a special version for the Hydra (unfortunately using the same name) which uses %011_0000.
    Bob Drury said...
    Sorry I still don't understand why %0101 (5) would give the mask of %0111_0000 for pins 15/14/13/12/11/10/9/8
    That's the way the TV driver works. Effectively it picks the long at pins0 and shifts it right by 16 which is the result of taking the middle 2 mode bits, i.e. %0101 and shift them 3 to the left.

    Which particular demo are you trying to run (name)? I have both boards here so I can have a look.
  • Bob DruryBob Drury Posts: 236
    edited 2009-05-22 03:35
    Thanks for your help in advance I am trying to run graphics_demo_010.spin it almost looks like a sync problem
    on the tv (unfortunately I am using a tft screen so there is no sync adjustment for horizontal and vertical)
    the Hydra is crystal clear, I can see the objects running on the propeller demo board , but no color and objects appear to be double in size.
  • kuronekokuroneko Posts: 3,623
    edited 2009-05-22 04:22
    Bob Drury said...
    Thanks for your help in advance I am trying to run graphics_demo_010.spin it almost looks like a sync problem
    on the tv (unfortunately I am using a tft screen so there is no sync adjustment for horizontal and vertical)
    the Hydra is crystal clear, I can see the objects running on the propeller demo board , but no color and objects appear to be double in size.
    OK, I grabbed the graphics demo file, made sure that it finds the demo board TV driver (indicated blue in the tool hierarchy, tv_drv_010.spin doesn't work for some reason). Then I disabled the mouse driver as the h/w is slightly different (Hydra 4 pins, demo board 2 pins). Finally, I changed the pin definition to %001_0101, set the clock to 5M/16x connected a TV and got the demo.

    Seems the tv_drv_010.spin has some issues when I set the broadcast frequency to 0, with the original 60M from the demo file it works ...

    Post Edited (kuroneko) : 5/22/2009 4:32:18 AM GMT
  • Bob DruryBob Drury Posts: 236
    edited 2009-05-22 04:37
    Thanks for your help I followed your instruction and the output is now clear
  • kuronekokuroneko Posts: 3,623
    edited 2009-05-22 09:11
    I said...
    Seems the tv_drv_010.spin has some issues when I set the broadcast frequency to 0 ...
    FWIW, this is simply a bug in this particular driver which only shows up when the broadcast field is 0 (tjz t1,[noparse]:o[/noparse]ff vs tjz t1,#[noparse]:o[/noparse]ff).
Sign In or Register to comment.