Writing parallel data with the BS2?
Kevin Harris
Posts: 15
I'm working on a project interfacing with the original MOS 6581 SID chip from a Commodore 64. It requires data to be fed in parallel to it. Is there any way to use the BS2 to send 13 bits in parallel to the chip or am I going to need to get a shift register to do the work? I noticed on some versions of the stamp, there exists the LCDCMD which seems similar to what I need, but it is not available to me. Any help is appreciated.
Thanks,
Kevin Haris
Thanks,
Kevin Haris
Comments
The outputs can be used in Parallel.
DIRS and OUTS controls all 16 bits.
DIRA to DIRD and OUTA to OUTD controls the 16 bits as nibbles (OUTA is P0 to P3)
DIRH and DIRL, OUTH and OUTL control the output as 8 bits.
For example:
DIRH = 255 ' set P8 to P15 as output
FOR X = 0 to 255
OUTH = x ' sets P8 to P15 in Parallel to value
NEXT
Hope this helps, look it up in the BASIC Stamp Manual for more clarification.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·
Kevin
Keep me updated with the progress of interfacing the SID chip...
I would like to do the same one day, but I'm busy with another project right now...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Living on the planet Earth might be expensive but it includes a free trip around the sun every year...
Experience level:
[noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
[noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
[noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
[noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
[noparse][[/noparse] ] I dream in SX28 assembler...
/Bamse