Selfmade Dracblade - Need help to get started
bazi
Posts: 29
Hi,
i've built a dracblade with a few variations. The schematic i used was Propeller_v4.sch.pdf.
Instead of VGA & TV i have only a TV out on Pins 16,17 and 18. Pin 19 has a jumper + resistor for the fourth TV-pin (aural subcarrier i think, it isn't needed).
I've tested the TV-Out and Keyboard with propdos => works fine.
I've added a 16bit SPI Port Portexpander (MC23S17) for GPIO and two Atari Joysticks [noparse]:)[/noparse]
If i try to run the Parallax Graphics Demo, nothing shows up on TV and 4 LEDs, connected to the Expander are turned on. The expander is located at Pins 20,21,22,23. The Source is modified like this:
Mode should be PAL and the source of tv.spin says this:
The 512K ram is connected exactly like shown in the pdf. How to i test it?
How do i run CP/M on this board?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
some say the devil is dead... ...tish army!
Post Edited (bazi) : 6/12/2010 11:41:27 AM GMT
i've built a dracblade with a few variations. The schematic i used was Propeller_v4.sch.pdf.
Instead of VGA & TV i have only a TV out on Pins 16,17 and 18. Pin 19 has a jumper + resistor for the fourth TV-pin (aural subcarrier i think, it isn't needed).
I've tested the TV-Out and Keyboard with propdos => works fine.
I've added a 16bit SPI Port Portexpander (MC23S17) for GPIO and two Atari Joysticks [noparse]:)[/noparse]
If i try to run the Parallax Graphics Demo, nothing shows up on TV and 4 LEDs, connected to the Expander are turned on. The expander is located at Pins 20,21,22,23. The Source is modified like this:
tvparams_pins long %010_0101 'pins long %0001 'mode
Mode should be PAL and the source of tv.spin says this:
Does this mean, i have to change pins? Why are there 8 pins used for tv instead of 3 or 4?Somebody said...
%010: pins 23..16
The 512K ram is connected exactly like shown in the pdf. How to i test it?
How do i run CP/M on this board?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
some say the devil is dead... ...tish army!
Post Edited (bazi) : 6/12/2010 11:41:27 AM GMT
Comments
You can use the spi_warp.spin object (attached), which allows access to the SD card and also supports the XMM of the DracBlade. You have to use BST (or BSTC) to compile this with your test code, because you have to #define DracBladeProp to include the required pieces of code. Your code can then call the methods readram, writeram and sethighaddr to access the XMM in eight banks of 64KB each.
To run CP/M you can download the latest code from this thread. There's also a hard disk image and a boot.dsk that needs to copied to an SD card. Extract the zip and add the ./lib path to BST's compiler preferences (library search path), then compile cpm.spin to RAM (F10) or EEPROM (F11).
HTH
Juergen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pullmoll's Propeller Projects
Post Edited (pullmoll) : 6/12/2010 1:15:08 PM GMT
I'm guessing you need to comment out the have_vga and uncmment the have_tv?
Atari joysticks sounds great. Do you have a schematic?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
You only have to pullup 5 or 6 Input Pins (depends on how many buttons you have) and connect Joy-GND to GND and the 5 or 6 pins to the inputs.
If an input is 0 the button is pressed or the stick is moved.
I've got 2 competition pro, they look unused [noparse]:)[/noparse]
Take a look => http://www.epanorama.net/documents/joystick/ataristick.html
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
some say the devil is dead... ...tish army!
With Microswitches?!!
Is that a standard D9 connector? If so, maybe I could make up some sort of adaptor on the new boards that are coming out that have 8 more digital inputs and outputs. I'll think about that. Now I've seen how pullmoll can add a new pseudo port with only a few lines of code, adding ports for those extra IO pins ought to be fairly easy. (for him. Not for me).
You could potentially add two joysticks.
Which computer emulation could use these?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
Similarly the write loop can be shortened from 12 to 9. Have a look at VMCOG to see how.
It's not a big deal I just happened to notice because I was hacking on TriBlade external RAM access for VMCOG.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
Yes Don't know but i thought about first making a pong-game on the prop with TV-out, don't know how to use it with qz80, zicog, ...
But i think it should be easy, only 5 or 6 digital inputs. Nearly every Commodore and Atari and a lot others used this joysticks.
Here a some photos of my worst nightmare [noparse]:D[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
some say the devil is dead... ...tish army!
At the moment, the 'game' keys are the arrow keys on a keyboard. I think spacebar is used as well.
Just brainstorming here, but if the keyboard driver also polled an input chip like a HC240, maybe it could detect the buttons/microswitches, and convert those to keypress codes?
Hmm - Commodore and Atari. Are those possible as emulations? pullmoll would be the expert who could answer that.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
A modified keyboard driver is the simplest way, i think.
//edit:
I think i'll add them this way:
I have a second eeprom (64kb) on my board. This eeprom will hold configuration data and some bitmaps, texts, ...
I'll modify the keyboard driver to poll the inputs and if a button is pressed, for example, address 0x00 is read for the correspondig keycode. If moved left, address 0x01, ......, .....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
some say the devil is dead... ...tish army!
Post Edited (bazi) : 6/12/2010 3:12:19 PM GMT