Unibrain 630 Manuale Utente

Pagina di 73
Unibrain Fire-i 530/630/830 Operation Manual 
Page 48 
 
 
 
 
 
 
STEP 3    Read RS232 RX data from SIO_Data_Register (addr. : F2F22100 ) 
STEP 4    If data is further required repeat from STEP1 
Note that 1394 data consist of 32 bit data the data read should 
Bit 0 ~ Bit 7    : 1
st
 Data    
 
Bit 8 ~ Bit 15    : 2
nd
 Data 
Bit 16 ~ Bit 23    : 3
rd
 Data 
 
Bit 24 ~ Bit 31    : 4
th
 Data    
Bit 0 : Msb      Bit 31 : Lsb 
 
 
 
SIO (RS232) TX Control Procedure Method I 
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 SIO_Data_Register(Addr: 
F2F22100h)   
STEP 3    Write number of TX data to be transferred to TBUF_CNT of 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. 
 
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: 1
st
 Data    
 
Bit 8 ~ Bit 15: 2
nd
 Data 
Bit 16 ~ Bit 23: 3
rd
 Data 
 
Bit 24 ~ Bit 31: 4
th
 Data    
Bit 0 : Msb      Bit 31 : Lsb