Download Unibrain 780 Instruction manual
Transcript
Unibrain Fire-i OEM VGA/XGA firewire board cameras Operation Manual
Page 41
If (write data number > = TBUF_CNT)
{
RS232TX Start
Write Data number larger that TBUF_CNT is discarded.
For example if TBUF_CNT = 5 , in IEEE-1394 write is done by a unit of 4 bytes where 8 bytes shall
be written at SIO_Data_Register but only 5 bytes are transmitted and the 3 bytes remaining shall
be discarded.
}
STEP4 If there is data to be transmitted repeat from Step 1 .
Bit 0 ~ Bit 7: 1st Data
Bit 8 ~ Bit 15: 2nd Data
Bit 16 ~ Bit 23: 3rd Data
Bit 24 ~ Bit 31: 4th Data
Bit 0 : Msb
7.9.5.
Bit 31 : Lsb
SIO (RS232) TX Control Procedure Method II
STEP 1
Check TX buffer size
by reading TBUF_ST of the Transmit_Buffer_Status_Control
register(Addr. : F2F220Ch)
If ((TBUF_ST == Buffer_Size_Inq) or (TBUF_TDRD ==1)) then TX is COMPLETE else TX is
INCOMPLETE
TBUF_ST: Current TX Data buffer (Unit:byte) of the camera
TBUF_CNT: Read: Number of data transmitted by RS232 TX
Buffer_Size_Inq: Defined in Serial_Mode_Reg( Addr. : F2F22000h)
Ex) 20050000h: valid data buffer size = 20 number of data sent: 05
STEP 2 Write number of RS232 TX data to be set for TBUF_CNT at Transmit_Buffer_Status_Control
Register(Addr:F2F2200Ch)
TBUF_CNT can be configured by unit of byte.
The value of TBUF_CNT must be smaller than data written at SIO_Data_Register.
STEP 3 Write RS232 TX data set at TBUF_CNT to SIO_Data Register(Addr. : F2F22100h)
If (write data number > = TBUF_CNT)
{
RS232TX Start
Write Data number larger that TBUF_CNT is discarded.
For example if TBUF_CNT = 5 , in IEEE-1394 write is done by a unit of 4 bytes where 8 bytes shall
be written at SIO_Data_Register but only 5 bytes are transmitted and the 3 bytes remaining shall
be discarded.
}
STEP 4 If there is data to be transmitted repeat from Step 1 .
Bit 0 ~ Bit 7: 1st Data
Bit 8 ~ Bit 15: 2nd Data
Bit 16 ~ Bit 23: 3rd Data
Bit 24 ~ Bit 31: 4th Data
Bit 0: Msb
Bit 31: Lsb