PropBasic: Video Examples - having to press Reset after pwr on with the PDB
Yendor
Posts: 288
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
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
Who does this write?
On BST Compile --> Compile and Load Ram
Post Edited (caskaz) : 4/3/2010 3:46:00 AM GMT
Not sure what you mean by 'who does this write?"
But I'm doing --> Compile and Load EEPROM on BST.
Your video-conposit-terminal(Pin12 - Pin14) is OK?
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
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!
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
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
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?
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
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.
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
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
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
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
I try to change counter phase value.
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