Author
| HBI-V1 programing information needed...
|
HansO msx addict Posts: 375 | Posted: December 09 2004, 08:55   |
Quote:
| I noticed a switch on the side of the digitizer and a line from it goes to the upper input but not the lower. I wonder what the manual says about the two seperate inputs. Is there a difference between them? I found out the switch is some brightness setting on the input. My guess is the switch is supposed to be for the upper input only, but by trial and error it also works on the lower input.
@HansO: Maybe scanning it and putting it online can help us get a better view on some things when somebody can translate it.
@NYYRIKKI: I'll continue the disassembly to find out what all commands do. And I'll do some testing with the cartridge itself.
|
The switch is intended to enable/disable the teminator resistor on the video. A video signal is supposed to be terminated by 75 ohm. But when connecting two video devices on one video signal the load is two times 75 ohm, which lowers the signal so that the image is less bright and also could have sync problems. So indeed the switch has influence on the brightness.
I will scan the manual! It has some diagrams that explain this switch. |
|
NYYRIKKI msx master Posts: 1499 | Posted: December 09 2004, 09:10   |
Is these connectors meant for two inputs or video troughput?
|
|
BiFi msx guru Posts: 3142 | Posted: December 09 2004, 09:32   |
@NYYRIKKI: I tried both connectors and they're both input. I haven't tried 2 seperate input signals yet though.
@HansO: Thanks for the explanation and we're looking forward to the manual scans.
|
|
NYYRIKKI msx master Posts: 1499 | Posted: December 09 2004, 11:24   |
I think, they are just connected together. It's like a branch box. I would not recommend two inputs at a same time without knowledge it works that way. I must warn you, that the digitizer, that I now have was killed by input signal from video. If there are two inputs, I think, that the risk will increase.
|
|
HansO msx addict Posts: 375 | Posted: December 09 2004, 11:41   |
It is not intended to use this as two inputs, but as a daysychain. Similar to SCSI!
Connect video input to one and connect a videomonitor to the other. The terminator switch prevents the double terminating.
|
|
BiFi msx guru Posts: 3142 | Posted: December 09 2004, 12:04   |
Ah, so it can be used as a throughput connector. I must agree it's logical if you think about it... there are video inputs that don't have any display (or a second connector for it) and you want to know what you're about to digitize. Of course you can make a little program that will get a digi, but it's hardly what you want at that moment.
|
|
NYYRIKKI msx master Posts: 1499 | Posted: December 09 2004, 17:06   |
Here is a bit fixed version of the information, we have collected about controlling this device on ML:
#7E00-#7EFF: Read buffer. Will return 256*256 picture. After one byte is read, next one will be returned. (LDIR/OTIR is used to read multiple bytes at a time)
#7FFC R/W: %ABC***XX
A Read: Busy or something like that (Z=Idle, NZ=Busy) Usually you can skip with ESC key.
B Read: Sync something (Wait to be NZ and wait to be back Z)
C Read: Sync something else (Wait to be Z and wait to be back NZ) (Video refresh?)
XX Write: Command
00 = Terminate
01 = Digitize
10 = ??
11 = ??
#7FFD R/W: %A**DXXYY
A Read: Even/Odd frame
D Read: Video signal detected (NZ = No video signal)
XX Write: Start block Y
YY Write: Start block X
#7FFE Write: %XXYYYZZZ
XX = Screen mode
00 = SCREEN 12
01 = SCREEN 10/11
10 = SCREEN 8
11 = Other / Clear memory
YYY = Block size Y
ZZZ = Block size X
#7FFF Write: 8bit data (???)
To reset, write 0 to #7FFF - #7FFC (=backwards)
BIOS Routines:
--------------
#4010 "SONY HBI-V1 V10",0
#4020 Digitize
Input:
C 0 = Copy to VDP
B 0 = Don't loop
E Nuber of frames to wait (0 = No wait)
HL Pointer to 7 bytes parameter table
Table pointed by HL:
n 0-255
n+1 0-3 Screen mode
n+2 0-7 Block size Y ???
n+3 0-7 Block size X ???
n+4 0-3 Start block Y ???
n+5 0-3 Start block X ???
n+6 0-3 Command
#4023 DCOPY or something like that
Input:
HL Pointer to parameter table
Table pointed by HL:
Lucky guess: x,y,x,y,x,y
#4026 YJK color adjust (Similar to CALL YJK)
Input:
Color table pointed by HL
#4029 DCLS
Input:
None
Explanation:
Calls digitize routine (#4020) with following values:
BC=1
E=0
Table pointed by HL: 0,3,0,0,0,0,1
#402C Start digitize software
Input:
None
Explanation:
Same as CALL DG in BASIC. Loads the BASIC program from ROM.
#402F Send command to hardware
Input:
HL Pointer to 7 bytes parameter table
Table pointed by HL:
Same as in Digitize routine.
#4032 Copy Digitizer RAM to VRAM.
Input:
None
|
|
HansO msx addict Posts: 375 | Posted: December 12 2004, 15:02   |
Quote:
|
I will scan the manual!
|
Done. The (Japanese) manual is scanned and online at http://www.hansotten.com - Whats new on the MSX Info pages. Also new is the (dutch) Turbo5000 manual and sources of the SVI.738 CP/M format utility. |
|
jr msx addict Posts: 310 | Posted: December 20 2004, 12:54   |
Does the HBI-V1 show a live preview of the video on the screen while you have the digitize software menu open? I noticed that it sends command 1 (to #7FFC) after the menu has been drawn and when you choose "start", it sends command 2. Perhaps cmd 1 means init and 2 digitize?
|
|
BiFi msx guru Posts: 3142 | Posted: December 21 2004, 07:01   |
No, the way it was done makes it too slow for that. The digitized data needs to be transferred to VRAM first before you can view the result which takes up some time and because of that, live preview while the menu is displayed is not possible. The only live preview is without the menu using another monitor connected to the cartridge.
|
|
mfrissen msx novice Posts: 19 | Posted: January 13 2005, 23:07   |
Hi, well i got an German userguide for the HBI-v1 digitizer, this is an direct translation, but maybe usefull ?
but again , nothing about programming the digitizer in asm, only basic , but stilll its , the manual its self is ore clear then japanese
|
|
mfrissen msx novice Posts: 19 | Posted: January 14 2005, 00:01   |
Ow i forgot, the swith is indeed for the brightness of he digitized image, but the connector towards the msx is the input, not the other one, it will also give an signal but it's ment to be connected to a monitor, so you cant controll the brightness on this connector sinds its an output
For the people that are interested in the complete dis-assembly of the rom, i just made one (i assume thats legel if you got the original ??) also an hex/ascii dump of the compleet rom.
For me its just to get a better reference when displaying ans searching in de source on my laptom while testing it on my msx2+
|
|
HansO msx addict Posts: 375 | Posted: January 14 2005, 09:30   |
It would be nice to have that translation online! Some of the Basic calls have obscure arguments, their meaning can only be guessed.
|
|
mfrissen msx novice Posts: 19 | Posted: January 14 2005, 13:38   |
ok, i will scan the manual to PDF, but i can't host it on a web site sinds i don't have one!
I have send a email to msx hans , maybe he's interested in putting the translated docs on his web-site ...
I also started to subdivide the HBI source in subroutinens to get a more clear view of things and to find out what every peice of code does before i start playing with the i/o ports them self.
|
|
mfrissen msx novice Posts: 19 | Posted: January 14 2005, 13:53   |
Ow i saw that the 'art'of converting the hb1 module to from NTSC to PAL is lost, wel mine is fixed in germany in 1991 , so i can make some good pictures of it to see wats different ...
I saw that there is 1 little extra home made pcb in my module on the and of the original pcb, its connected with 2 wires to the original....but sinds i'm not in to electronics (but i can see its home made because of the soldering and color)...
|
|
|
|
|