HBI-V1 programing information needed...

Page 3/6
1 | 2 | | 4 | 5 | 6

By NYYRIKKI

Enlighted (5385)

NYYRIKKI's picture

09-12-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

By HansO

Paladin (672)

HansO's picture

12-12-2004, 15:02


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.

By jr

Champion (375)

jr's picture

20-12-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?

By BiFi

Enlighted (4348)

BiFi's picture

21-12-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.

By mfrissen

Rookie (19)

mfrissen's picture

13-01-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 Wink

By mfrissen

Rookie (19)

mfrissen's picture

14-01-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+

By HansO

Paladin (672)

HansO's picture

14-01-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.

By mfrissen

Rookie (19)

mfrissen's picture

14-01-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.

By mfrissen

Rookie (19)

mfrissen's picture

14-01-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)...

By HansO

Paladin (672)

HansO's picture

14-01-2005, 16:40

Nice! msxhans at yahoo dot com wil do fine. The pdf will eventually be stored at funet.

Page 3/6
1 | 2 | | 4 | 5 | 6