I dragged by old NEC Multi-Sync 15" flat panel out and hooked it to my Demo board and compiled the 4 VGA demos as they came in the 79-zipfile. VGA and VGA2 the LEDs on the demo board lit up, but it simply produced a black screen and no sync (according to the monitor) VGA3 and VGA4 seemed to run just fine. Any thoughts as to why?
cheers ... BBR
p.s. this is running Brad's binary on my iMac.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
cheers ... brian riley, n1bq, underhill center, vermont
The Shoppe at Wulfden www.wulfden.org/TheShoppe/
Brian,
I'm not sure why VGA_Demo and VGA_Demo2 don't work ?? They use the same VGA timing as VGA3 and VGA4.
Do you have a different monitor you can try ? I do notice on mine that it comes up as 640x480 62Hz (62Hz is a bit odd, but it works).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
As I tend to make incremental updates in between Bean's official releases, I've appended my internal svn revision number to the binaries to make it easy to keep track of the latest code.
Those that already have -38 binaries need not update.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You only ever need two tools in life. If it moves and it shouldn't use Duct Tape. If it does not move and it should use WD40.
I have just started working with PropBasic past couple of days and noticed that when I save a file using "Save As” it doesn't add the file extension ".pbas" to the files. I also noticed that if I start a new file it is named "NONAME.pbas1" and hit save (so I don’t lose the code if there is a problem during testing) it saves the file with the extension "pbas1" This makes the file in either case appear missing in the open dialog when I want to work on it later.
Do I need to manually add the extension every time?
Tony,
The current IDE was just enough to get it working.
There is a MUCH better IDE in the works.
Please put-up with it for a little while longer until the new IDE is finished.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
I have found 1 TV that won't work with the VGA code. I'll get it changed to make it more compatible and repost the demo programs.
Bean.
VGA and VGA2 now work, but TV_Text produces only a black screen and video_game produces a black screen with small dot that responds to Left/Right Shift, but Fire(Spacebar) does nothing ... this is all under the latest binaries/new GUI IDE
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
cheers ... brian riley, n1bq, underhill center, vermont
The Shoppe at Wulfden www.wulfden.org/TheShoppe/
This is a very important piece of work. Many thanks.
Now the questions.
I read in this thread earlier that it's possible to load Spin objects as well as PropBasic generated assembler. Is that possible from within BST? The nirvana of multiple Cogs each running different code generated from different languages, some compiled others not, all linked together with common constants and global variables is very exciting and potentially extremely productive. Is that possible now?
Is there any sort of inline assembler optimizer that could at least flag possible redundant assembler instructions? I'm sure there's one inside of ICC, any other options?
If we have to hand optimize is there some potential of flipping pre-generated assembler and the basic code that created it? That way the assembler moves to the left side and can be edited/optimized while the basic code moves right and becomes comments.
It's like it's all coming together for the Propeller. A single IDE, potentially multiple languages, Complied and Interpreted, Amazing accessibility and migration options. Extremely cool.
Johned, · If you look at the demo program "dispatcher" it shows how to integrate the keyboard object by using ASM..ENDASM to insert some spin code to handle communication between PropBASIC and the keyboard object bu using HUB variables.
· It's nowhere close to seemless, but it does work. Maybe a better / easier way can be developed. But the idea will be the same.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
2. Why do I get an "Invalid Parameter" with the following code? Isn't "Hello World!" considered an inline string like "PropBASIC" in the Syntax Manual on Page 77?
Start:
' user start-up code
Main:
Pause 2000
SEROUT LCD, T19200, "Hello World!"
END
I am starting with this simple code learning the syntax for the commands I will use most. Then I will port my BS2 code to PropBASIC to run my Robots and be able to add a lot more functionality
SEROUT only sends a single character. You need to make a subroutine to send a string.
' Program Description
'
'
'
'
'Programmer
'Date
'Ver
'
DEVICE P8X32A, XTAL1, PLL16X
FREQ 80_000_000
' Define CONs
BaudVmusic CON "T9600" ' Baud rate to communicate with VMusic2 Player
' Define PINs
VmusicPinBirds PIN 10 LOW ' Connected to Input on Vmusic Module #1
' Define HUB variables
'
' Define DATA (DATA, WDATA, LDATA)
StopMusic DATA "VST",13, 0 ' Don't forget the terminating zero
' Define TASKs
' none
' Define variables (LONGs only)
' Define Subroutines
SendStr SUB 1 ' Pass string
' Start of main code
PROGRAM Start
Start:
PAUSE 5000
SendStr "VST" ' In-line string, zero is automatically appended (note no carrage return)
SendStr StopMusic
END
' Subroutine Code
SUB SendStr
DO
RDBYTE __param1, __param2 ' Get character
INC __param1 ' Point to next character
IF __param2 = 0 THEN EXIT ' Zero is string terminator
SEROUT VmusicPinBirds, BaudVmusic, __param2
LOOP
ENDSUB
' Task Code
' none
I hope this helps,
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
I know all the code that you and Jon have posted have been calling serial routines in a subroutine to conserve space. I guess it is the documentation that is a little deceiving to a newbie.
I guess it implies a string enclosed in quotes would be sent out. A least that's my take.
Yeah, I understand. It's one of those things that most people just expect to work.
Here are a couple others that may trip you up:
· Only one math operator is allowed per assignment
· Functions can only be assigned (cannot be used with operators)
· DATA, HUB vars, and strings are stored in HUB ram and must be read with RDREAD, RDWORD or RDLONG
P.S. If you can't get something working. Please feel free to post it. I'm here to help.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
I just downloaded bst today and it has been working great with PropBasic. Thanks Brad! I have been using EditPlus which I find is a great tool. I only work in windows, but if I needed a front end for a MAC, bst rocks! And I would pay for that. Oh that's another thread.
Jim
Bean said...
Yeah, I understand. It's one of those things that most people just expect to work.
Here are a couple others that may trip you up:
· Only one math operator is allowed per assignment
· Functions can only be assigned (cannot be used with operators)
· DATA, HUB vars, and strings are stored in HUB ram and must be read with RDREAD, RDWORD or RDLONG
P.S. If you can't get something working. Please feel free to post it. I'm here to help.
Run the bst file. When it launches, from the menu choose:
Tools->IDE Preferences->PropBASIC click Browse and find the PropBASIC-BST file that you just extracted.
after extracting PropBASIC I get one file "PropBASIC-BST.exe"
My security will not let me select this file from the BST Browse menu.
"Security Warning - PropBASIC-BST.exe removed".
Try downloading the file file again, except this time when you do a "Save target as", take the .exe out the file name of it before you download the zip. I bet Norton has a problem with downloading a file that has exe in it even though it is a zip.
Thanks for the help. I miss understood the Syntax Manual. I thought it showed that SEROUT could pass a string like in BS2 code. I believe I understand what I need to do thanks to your example. I attached the code below. Do I need to change anything? The code could be improved by?
As for question one, does the simple program keep sending a "H" every two seconds because PASM wants it starts keeps running through all memory locations to the end and starts over unless it runs into a END command? Am I on the right track?
The attached code flashed “Hello World!” and then garbage so fast the LCD couldn’t keep up. Looked at the code and realized I did have and END command. Added it and it works great.
Sorry for the small code post. I will post the whole file in the future no matter how small.
I've attached a template that I use for serial -- it allows me to send a character (once or repeated n times), and a string. Also has shells for SERIN and PAUSE.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
I have problem with last BST.
If I go to Help>About it give me that ERROR. LOOK on picture
Regards
Christoffer J
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Nothing is impossible, there are only different degrees of difficulty. For every stupid question there is at least one intelligent answer. Don't guess - ask instead. If you don't ask you won't know. If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
I have problem with last BST.
If I go to Help>About it give me that ERROR. LOOK on picture
Regards
Christoffer J
Can't translate the error message for me can you?
Something worries me actually. This is the first release where I've used a new type of internal resource, and I've no way of testing it on non-english copies of windows.
If you could, can you also try Help->Release Notes
and also File->New->PropBasic Template
All three use the same resource management mechanism and it would help to know if they all fail.
The other thing you could try for me is (re)moving your PropBasic-bst executable so bst can't find it. It dynamically creates an item in the about box to report the version info of PropBASIC if it can find a valid .exe file.
Can we continue this over in the bst thread so as to not pollute Beans Basic thread with my bugs [noparse]:)[/noparse]
Thanks!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You only ever need two tools in life. If it moves and it shouldn't use Duct Tape. If it does not move and it should use WD40.
Comments
I dragged by old NEC Multi-Sync 15" flat panel out and hooked it to my Demo board and compiled the 4 VGA demos as they came in the 79-zipfile. VGA and VGA2 the LEDs on the demo board lit up, but it simply produced a black screen and no sync (according to the monitor) VGA3 and VGA4 seemed to run just fine. Any thoughts as to why?
cheers ... BBR
p.s. this is running Brad's binary on my iMac.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
cheers ... brian riley, n1bq, underhill center, vermont
The Shoppe at Wulfden
www.wulfden.org/TheShoppe/
I'm not sure why VGA_Demo and VGA_Demo2 don't work ?? They use the same VGA timing as VGA3 and VGA4.
Do you have a different monitor you can try ? I do notice on mine that it comes up as 640x480 62Hz (62Hz is a bit odd, but it works).
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
·
As I tend to make incremental updates in between Bean's official releases, I've appended my internal svn revision number to the binaries to make it easy to keep track of the latest code.
Those that already have -38 binaries need not update.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You only ever need two tools in life. If it moves and it shouldn't use Duct Tape. If it does not move and it should use WD40.
I have found 1 TV that won't work with the VGA code. I'll get it changed to make it more compatible and repost the demo programs.
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
·
Do I need to manually add the extension every time?
Tony
The current IDE was just enough to get it working.
There is a MUCH better IDE in the works.
Please put-up with it for a little while longer until the new IDE is finished.
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
·
I knew you had bigger plans for this thing. Keep it up!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH
VGA and VGA2 now work, but TV_Text produces only a black screen and video_game produces a black screen with small dot that responds to Left/Right Shift, but Fire(Spacebar) does nothing ... this is all under the latest binaries/new GUI IDE
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
cheers ... brian riley, n1bq, underhill center, vermont
The Shoppe at Wulfden
www.wulfden.org/TheShoppe/
More than HAPPY to wait.
Thanks to you, Terry (Syntax Manual) and all who have made it great so far!
Looking forward to writing and testing code this week to really start getting comfortable with PropBASIC.
Tony
http://forums.parallax.com/showthread.php?p=882035
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You only ever need two tools in life. If it moves and it shouldn't use Duct Tape. If it does not move and it should use WD40.
Yes, what I have been so secret about is PropBASIC is now integrated into BST.
This means that Windows, Linix and Mac users can program in PropBASIC.
Please do not use the PropBASICIDE any more. It is a piece of·junk compared to BST.
I'd like to give BradC a big THANK YOU for all his hard work in getting this working.
P.S. I have chagne the first post in this thread with download instructions
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
Post Edited (Bean) : 2/16/2010 1:19:29 AM GMT
Now the questions.
I read in this thread earlier that it's possible to load Spin objects as well as PropBasic generated assembler. Is that possible from within BST? The nirvana of multiple Cogs each running different code generated from different languages, some compiled others not, all linked together with common constants and global variables is very exciting and potentially extremely productive. Is that possible now?
Is there any sort of inline assembler optimizer that could at least flag possible redundant assembler instructions? I'm sure there's one inside of ICC, any other options?
If we have to hand optimize is there some potential of flipping pre-generated assembler and the basic code that created it? That way the assembler moves to the left side and can be edited/optimized while the basic code moves right and becomes comments.
It's like it's all coming together for the Propeller. A single IDE, potentially multiple languages, Complied and Interpreted, Amazing accessibility and migration options. Extremely cool.
· If you look at the demo program "dispatcher" it shows how to integrate the keyboard object by using ASM..ENDASM to insert some spin code to handle communication between PropBASIC and the keyboard object bu using HUB variables.
· It's nowhere close to seemless, but it does work. Maybe a better / easier way can be developed. But the idea will be the same.
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
·
Just started working with simple code and have a couple of questions
I’m working with a Spin Stamp on a BOE. The LCD is Parallax's Serial Backlit LCD connected on pin 15 (LCD PIN 15)
1. Why does the following code send a "H" every two seconds to the LCD and not just one like when I put a END statement in?
2. Why do I get an "Invalid Parameter" with the following code? Isn't "Hello World!" considered an inline string like "PropBASIC" in the Syntax Manual on Page 77?
I am starting with this simple code learning the syntax for the commands I will use most. Then I will port my BS2 code to PropBASIC to run my Robots and be able to add a lot more functionality
Thanks for the help in advance.
Tony
You should attach the (whole) errant program. I just verified that the syntax described above works.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
I tried to do a simple string, "VST"
and them I tried it in the DATA section "StopMusic"
Attached is the simple program.
Thanks guys for what your doing!
Jim
PS I did try it on .79 and bst
I hope this helps,
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
·
I know all the code that you and Jon have posted have been calling serial routines in a subroutine to conserve space. I guess it is the documentation that is a little deceiving to a newbie.
I guess it implies a string enclosed in quotes would be sent out. A least that's my take.
Best Regards,
Jim
EDIT: I did try with and without ,0
Here are a couple others that may trip you up:
· Only one math operator is allowed per assignment
· Functions can only be assigned (cannot be used with operators)
· DATA, HUB vars, and strings are stored in HUB ram and must be read with RDREAD, RDWORD or RDLONG
P.S. If you can't get something working. Please feel free to post it. I'm here to help.
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
·
I just downloaded bst today and it has been working great with PropBasic. Thanks Brad! I have been using EditPlus which I find is a great tool. I only work in windows, but if I needed a front end for a MAC, bst rocks! And I would pay for that. Oh that's another thread.
Jim
after extracting PropBASIC I get one file "PropBASIC-BST.exe"
My security will not let me select this file from the BST Browse menu.
"Security Warning - PropBASIC-BST.exe removed".
Any ideas folks?
Roger
I assume you are using windows since you downloaded the .exe version ?
What anti-virus program are you using ?
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
·
Using Norton Internet Security.
Roger
I'm running XP and Norton 360. I did a download, extract and ran the bst IDE Preferences without a hitch.
Just for giggles, set up the zip file to extract and rename it to a txt file before unzipping. Then after it is unzipped, rename to .exe.
Just a thought.
Jim
EDIT: Nevermind,·didn't ·work.
Post Edited (hover1) : 2/17/2010 2:14:55 AM GMT
Try downloading the file file again, except this time when you do a "Save target as", take the .exe out the file name of it before you download the zip. I bet Norton has a problem with downloading a file that has exe in it even though it is a zip.
Jim
Post Edited (hover1) : 2/17/2010 2:29:30 AM GMT
I took the .exe out of the extract to directory name.
The extracted file name stayed the same. It worked.
( I don't have to understand how it works, just so it works)
Running VGA_DEMO5
Thanks
As for question one, does the simple program keep sending a "H" every two seconds because PASM wants it starts keeps running through all memory locations to the end and starts over unless it runs into a END command? Am I on the right track?
The attached code flashed “Hello World!” and then garbage so fast the LCD couldn’t keep up. Looked at the code and realized I did have and END command. Added it and it works great.
Sorry for the small code post. I will post the whole file in the future no matter how small.
Thanks for all the help and work
Tony
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
I have problem with last BST.
If I go to Help>About it give me that ERROR. LOOK on picture
Regards
Christoffer J
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
Can't translate the error message for me can you?
Something worries me actually. This is the first release where I've used a new type of internal resource, and I've no way of testing it on non-english copies of windows.
If you could, can you also try Help->Release Notes
and also File->New->PropBasic Template
All three use the same resource management mechanism and it would help to know if they all fail.
The other thing you could try for me is (re)moving your PropBasic-bst executable so bst can't find it. It dynamically creates an item in the about box to report the version info of PropBASIC if it can find a valid .exe file.
Can we continue this over in the bst thread so as to not pollute Beans Basic thread with my bugs [noparse]:)[/noparse]
Thanks!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You only ever need two tools in life. If it moves and it shouldn't use Duct Tape. If it does not move and it should use WD40.