Shop OBEX P1 Docs P2 Docs Learn Events
PropBasic: Video Examples - having to press Reset after pwr on with the PDB — Parallax Forums

PropBasic: Video Examples - having to press Reset after pwr on with the PDB

YendorYendor Posts: 288
edited 2010-12-25 18:53 in Propeller 1
Hi Guys,

I'm running·the·propbasic programs video.pbas or video2.pbas on the professional development board.

Should the programs 'run' (generating video)·if you turn the power from off to·on?

The only way they·run for me is if I press·the 'reset' button after powering on.

I tried an LED program and it works fine.

Am·I'm missing something, or if this is the correct operation?

Thanks!

[noparse][[/noparse]edit] Attched files - These are the example files that come w/ propbasic.

Post Edited (Yendor) : 4/3/2010 2:57:22 AM GMT

Comments

  • caskazcaskaz Posts: 957
    edited 2010-04-03 02:37
    Please show me video.pbas.
  • YendorYendor Posts: 288
    edited 2010-04-03 02:56
    See top of post
  • caskazcaskaz Posts: 957
    edited 2010-04-03 03:28
    It works fine both video and vide2.
    Who does this write?

    On BST Compile --> Compile and Load Ram

    Post Edited (caskaz) : 4/3/2010 3:46:00 AM GMT
  • YendorYendor Posts: 288
    edited 2010-04-03 04:00
    Thanks for trying.
    Not sure what you mean by 'who does this write?"

    But I'm doing --> Compile and Load EEPROM on BST.
  • caskazcaskaz Posts: 957
    edited 2010-04-03 04:18
    Who does author of vide.pbas&vide2.pbas?

    Your video-conposit-terminal(Pin12 - Pin14) is OK?
  • Toby SeckshundToby Seckshund Posts: 2,027
    edited 2010-04-03 08:00
    This sounds like another case of cold powering being different to a manual reset from already being powered up.

    I have had this on a DracBoard where the cold powerup is 70-80% successful and on a wangle I was trying to switch off the EEPROM where extra pulses were being generated on P27 before the KBD driver had finished being loaded over from the EEPROM.

    In both cases the ccts were 100% successful from manual resets.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Style and grace : Nil point
  • YendorYendor Posts: 288
    edited 2010-04-07 02:47
    caskaz, I would imagine Bean is the author.

    I have:
    Pin12 going to V0 (1.1k ohm)
    Pin14 going to V2 (270 ohm)

    I did ohm it out, showed appropriate resistor values, and even tried it on a different TV, to no avail.

    Toby - 10/10 times of powering on, it did not function - only after hitting reset did it function. Did you have a solution?

    I see some sort of sync happening, but no 'action'.

    I'm new at both the video and the prop with propbasic, so please execuse the missing fundamentals.

    There could be some condition that needs to be taken into consideration for power up vs. the condition there is to wake up, it's just that I'm not there yet.

    I guess the big questions is does it work with the Propeller Demo Board, when powering on, or is RESET necessary, too?

    I guess the next step is to try out some 'action' with spin to see if similar issues occur.

    Thoughts and comments are appreciated!
  • Toby SeckshundToby Seckshund Posts: 2,027
    edited 2010-04-07 11:00
    Yendor

    No I am afraid I do not have answer yet. I had tried to use an edge trigered Flip-Flop to change things after boot up, unfortunately there seemed to be extraneous pulses preceeding that, rather than just a high impedance, so the change over happened too soon. Wether this is a simular thing that plays up on the DracBlade I haven't looked into that much yet. It doesn't access the SD card correctly (according to the LED) and throws a "Spacebar" error from not initilizing the external memory properly. But as I say the reset button is a winner every time. I put a long delay (5 secs ) right at the start to see if that changed anything, which it didn't.

    I tried the 3.3V reg after the 5V reg as in the DemoBoard, and both strait from the incomming 9V but it changed nothing.



    Still looking ....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Style and grace : Nil point
  • BeanBean Posts: 8,129
    edited 2010-04-07 11:10
    I will try this as soon as I can.
    I had the same problem with my HC-OSD boards. I found that changing the Propeller chip would solve the problem. But I don't know what was causing the problem.

    See if it starts after about 60 seconds. My HC-OSD boards would. This leads me to believe that it has something to do with the WAITCNT since the counter overflows every 56 seconds or so (@ 80MHz). But I tried all kinds of things, and I could not make the fault chips work no matter what I did.

    I remember something about having to delay awhile after setting up the video counter and before the first WAITVID, but I don't remember the details.

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.
    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There are two rules in life:
    · 1) Never divulge all information
  • YendorYendor Posts: 288
    edited 2010-04-07 13:10
    Bean,

    Brilliant - Right on the money!

    Just under 60 seconds (seems like 45-55 seconds under a few different tries) it starts working.

    Does it matter that this is a new Prop?
  • BeanBean Posts: 8,129
    edited 2010-04-07 14:28
    It would be very chip dependent.

    If a chip did not start, a quick power off - power on would usually make it start. Or else waiting the 50-60 seconds.

    I had about 1 in 20 that would have the problem. I never did figure it out the problem.

    Yendor, do you have another Propeller chip you can try ?

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.
    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There are two rules in life:
    · 1) Never divulge all information
  • YendorYendor Posts: 288
    edited 2010-04-07 14:44
    No. Unfortunately, I don't have another chip. I have a protoboard, but would need to solder something up for that.

    Do you think it's the chip or the video operation/driver within the chip? It almost seems something is missing or can be corrected in software, to me.

    If it's a hw/chip issue - maybe we can try starting on a different cog?

    I did try a simple LED program (no video), and it seems to work fine with that (pwr on), so it doesn't seem to be the chip in a sleepy state, but then again it's not advanced to use the internal counters. I haven't tried the video drivers in spin yet, either, to see if similar results occur.
  • BeanBean Posts: 8,129
    edited 2010-04-07 14:56
    To me it seems to be a problem with WAITVID missing the CNT value, then it has to wait for it to roll over.
    I too tried putting all kinds of long delays all over the place in the video driver, but no luck preventing the problem.

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.
    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There are two rules in life:
    · 1) Never divulge all information
  • caskazcaskaz Posts: 957
    edited 2010-04-08 11:55
    Hi.

    I tried video.pbas & video2.pbas using DemoBoard on TV-monitor(not LCD).
    It's OK.
    I buy LCD-monitor(7-inch).and I checked today.
    video.pbas is OK, but video2.pbas is NG.

    I checked Graphic_Demo, Graphic_Palette, TV_Terminal_Demo, and TV_Text_Demo inside libraley folder on Propeller Tool.
    All clearly display on LCD. It's stable.

    I adjusted VR inside video-RGB converter, and image for video2.pbas displayed. But unstable.
    Hardware trouble, or software?


    LCD: LQ070A3AG01 made by Sharp
  • TonyWaiteTonyWaite Posts: 219
    edited 2010-04-08 13:44
    @caskaz

    It might seem a silly question, but are you using the most up-to-date version of PropBASIC?

    I was reminded of an early experience that I had with some VGA examples ...

    Regards,

    T o n y
  • BeanBean Posts: 8,129
    edited 2010-04-08 14:29
    caskaz,
    Sounds like you are having a timing issue with the new LCD.
    You might have to tweak the counter phase value. Some LCDs are really touchy about timing.

    Your issue really has nothing to do with the other problems listed above.

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.
    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There are two rules in life:
    · 1) Never divulge all information
  • caskazcaskaz Posts: 957
    edited 2010-04-08 14:58
    Thanks, Bean.
    I try to change counter phase value.
  • kuronekokuroneko Posts: 3,623
    edited 2010-04-08 23:59
    Is this issue specific to the PDB or would other platform show the same behaviour (I wouldn't want to purchase a PDB to track it down)?
  • BeanBean Posts: 8,129
    edited 2010-04-09 00:43
    I personally have only seen it on my HC-OSD board which used the surface mount version of the Propeller.

    It may very well be an issue with how my code works. I don't know, I just know that changing the propeller chip solves the problem when it occurs.

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.
    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There are two rules in life:
    · 1) Never divulge all information
  • kuronekokuroneko Posts: 3,623
    edited 2010-12-25 18:53
    Solution to the OP's problem is listed in this thread: [post=963328]Ideas or theory on odd problem related to spin program startup[/post].
Sign In or Register to comment.