Shop OBEX P1 Docs P2 Docs Learn Events
Looking for methods for fast SDI or SQI - Page 2 — Parallax Forums

Looking for methods for fast SDI or SQI

2»

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2012-11-13 05:45
    Just one last question, will the memory access be at a fixed distance to a hubop (e.g. rdbyte)? If that's the case we don't have to worry about misalignment.
  • ctwardellctwardell Posts: 1,716
    edited 2012-11-13 05:58
    kuroneko wrote: »
    Just one last question, will the memory access be at a fixed distance to a hubop (e.g. rdbyte)? If that's the case we don't have to worry about misalignment.

    It will be 4n system clocks from a hubop for sure as there are no waitpne or waitcnt between the hub op and the SQI code. I can make it fixed if needed.

    There are actually no waitxxx at all unless we end up needing waitvid at all.

    This cog polls a mailbox (the emulated system bus) in a loop and when it sees a memory request it does a lookup to map between emulated high order address and real high order address and then accesses the SQI device as needed and writes the result back to the hub.

    Hopefully we can do clock sync code on cog startup and then be good to go.

    C.W.
  • aldoriforaldorifor Posts: 15
    edited 2012-11-14 02:18
    [h=2]icon1.png Re: Looking for methods for fast SDI or SQI[/h]
    What comes in mind is:
    1 color VGA mode using regular PLL single-ended, instead of PLL internal (video mode)

    Color is shifted out on falling edge of PLL.
    If that clock edge is not good, use PLL differential mode.

    Hello Tony,
    We can use regular PLL single-ended to clock the video generator instead of special PLL internal(video mode). Is it sure ?
    * If Yes, it will be great because in this way for non video usage of the video generator , the video generator clock can be send out ( a copy!) of the prop.
    Where do you find that color is shifted out on falling edge of PLL ? and what about pixel clock shifting?
    Have you experimented this?
    Using video generator for sending out informations is my obsession.
    Once, i have planned to send out address for an LMM external memory at more than propeller system clock. But video generator seem not to be one shot.
  • tonyp12tonyp12 Posts: 1,950
    edited 2012-11-14 05:36
    Originally Posted by tonyp12
    Q: Is the colors shifted out on falling or rising edge of a PLL clock?

    Kuroneko
    A:Falling edge.


    So the data-out would be "most valid" on the rising edge.
  • aldoriforaldorifor Posts: 15
    edited 2012-11-14 06:14
    Thanks tony,
    I have also found your original thread with Kuruneko.
    Do you know if it is possible to force the video generator to send one frame only? or do you know someone who has yet done that?
  • kuronekokuroneko Posts: 3,623
    edited 2012-11-16 23:56
    aldorifor wrote: »
    Do you know if it is possible to force the video generator to send one frame only?
    It's simple, once you run out of frame clocks (vscl[11..0]) it reloads. So either you keep feeding it or you switch it off.
  • aldoriforaldorifor Posts: 15
    edited 2012-11-17 23:09
    [h=2]Re: Looking for methods for fast SDI or SQI[/h]
    quote_icon.png Originally Posted by aldorifor viewpost-right.png
    Do you know if it is possible to force the video generator to send one frame only?



    It's simple, once you run out of frame clocks (vscl[11..0]) it reloads. So either you keep feeding it or you switch it off.

    Thanks Kuruneko,
    I imagine that if the frame clock is very fast (ie more than 80MHz) it will be difficult to continously feed the video g
  • kuronekokuroneko Posts: 3,623
    edited 2012-11-21 00:35
    aldorifor wrote: »
    Thus it will probably better for my planned application to stop the video generator just after (?!!) the waitvid instruction (using Vmode Vcfg, is it true?). Does it stop at the end of the current frame? and what about the restart time?
    Why don't you tell us a bit more about what exactly you want to do? Sending stuff out isn't usually the issue, getting it back in is. To answer your question(s), if you stop the video h/w it stops, the current frame is not completed. Restart behaviour depends on a lot of things, most notably when it's stopped. PLL clock to system clock ratio is another factor. Knowing what we're up against (i.e. what are your plans) will increase the chances of finding a solution.
  • tonyp12tonyp12 Posts: 1,950
    edited 2012-11-21 07:22
    Could you just stop the PLL clock output by setting OUTA pinx high, as it will be ORed and always stay high.

    Or write a low to DIRA pinx to set it to a input (have 10k pulldown on trace)

    But if change state on the 3rd clock of the instruction, maybe hard to get sync with actual data?
Sign In or Register to comment.