Problem with Hydra HX512KSRAM
Giemme
Posts: 85
Hi
I am testing the Hydra 512K Sram with following code. This code should write a byte into the address 0000 and then read it back ( nothing impossible :-(
OBJ
· VGA··················· : "VGA_Text"
· SRAM512K··········· : "HX512KSRAM_ASM_DRV_010.spin"
PUB Start
' Initialise the SRAM card
· SRAM512K.SRAM_Start_ASM_Driver(%000_11_11)
' Initialise the values
· Address := $0000
· bytVal := 81
'· SRAM512K.SRAM_LoadAddr64K_A($0000) ' Fetching the memory didn't bring to much :-(
' write a byte into the address
· SRAM512K.SRAM512K.SRAM_Write64K_A(Address, bytVal )
' Read the byte from the address·
· bytVal := SRAM512K.SRAM_Read64K_A(Address)
· VGA.str(string("$"))
· VGA.hex(Address, 4)
· VGA.str(string(": "))
· VGA.hex(bytVal, 2)
Expected result should be 81 but I usually get 04 !!
What did I wrong?? Any Idea?
I don't think that the card is broken because its leds are flashing properly.
Thanks in advance·if you can help me.
Regards
Gianni
Post Edited (Giemme) : 3/25/2008 7:24:34 AM GMT
I am testing the Hydra 512K Sram with following code. This code should write a byte into the address 0000 and then read it back ( nothing impossible :-(
OBJ
· VGA··················· : "VGA_Text"
· SRAM512K··········· : "HX512KSRAM_ASM_DRV_010.spin"
PUB Start
' Initialise the SRAM card
· SRAM512K.SRAM_Start_ASM_Driver(%000_11_11)
' Initialise the values
· Address := $0000
· bytVal := 81
'· SRAM512K.SRAM_LoadAddr64K_A($0000) ' Fetching the memory didn't bring to much :-(
' write a byte into the address
· SRAM512K.SRAM512K.SRAM_Write64K_A(Address, bytVal )
' Read the byte from the address·
· bytVal := SRAM512K.SRAM_Read64K_A(Address)
· VGA.str(string("$"))
· VGA.hex(Address, 4)
· VGA.str(string(": "))
· VGA.hex(bytVal, 2)
Expected result should be 81 but I usually get 04 !!
What did I wrong?? Any Idea?
I don't think that the card is broken because its leds are flashing properly.
Thanks in advance·if you can help me.
Regards
Gianni
Post Edited (Giemme) : 3/25/2008 7:24:34 AM GMT
Comments
I will try tonight
Regards
Gianni
Andre'
thanks for this information.
mmmhh now I have to buy a tv :-( and my desk doesn't have a lot of space.
Questions:
how many pins not used by the memory card are still available? are there any pins (TV, Audio, Net, etc) that I can cannibalize??
what if I use a second propeller that generates the vga output?
Regards
Gianni
Using another propeller pretty much negates the advantage of having SRAM, at least for using the SRAM as display buffer. Unless the SRAM is connected to the bvideo generating prop of course.
...as alternative remains a video2vga converter
http://www.svideo.com/video2vga.html
or
http://www.aver.com/mpd/tvbox9_spec.html
Regards
Gianni
Post Edited (Giemme) : 3/25/2008 8:54:39 PM GMT
this is the workaround to the problem when you are using the hx512ksram, you cannot use the vga and you don't have a TV.
I found this TV2VGA card that recognize NTCS and PAL signal (so I don't have to convert the video driver)
http://www.grand.com.tw/tvpc_console2.html·
for 120 swiss francs = 120$· (the dollar is almost 1 to 1 with the swiss francs!!·A good reason to make another trip to the states and buy a lot of gadgeds...)
Additionally the card allows Picture on Picture (this is helpfull if you have only one vga output)
Idea!! why we don't build a propeller tv2vga converter???
Now I can continue with my zx81 emulator project.
See you
Gianni
P.S.Are there any solutions to have more resolutions on tv than 256x192??
Post Edited (Giemme) : 3/30/2008 7:20:50 AM GMT
Considering this one costs $47.99 - it looks like gadgets are cheaper on this side of the pond.