
Zoran ZR 36506 USBV ision – Datasheet
Zoran Proprietary and Confidential
I nternal Microcontroller Host R equest I nterface
5 -1
5
I
NTERNAL
M
I CROCONTROLLER
H
OST
R
EQUEST
I
NTER FACE
In USB mode, the ZR36506 internal 8-bit microcontroller (the V8) waits for a command from
the host PC to perform one of the following tasks: Load EEPROM, Upload Flash, cancel Flash
Upload and Erase Flash.
In USB mode, the microcontroller does not access the RBCS directly. This is due to the fact that
The following register is an interface with the microcontroller:
RBCS
Address
Register
Name
Function
Value
Default
Value
66
V8_CMMND
(R/W register)
d0:
LD_EPRM (Download
EEPROM to SRAM).
d1:
LD_FLSH (Upload
Flash to PC).
d0-d1: CLR_FLSH (Clear
Flash memory).
d2:
CNCL_LD (Cancel
Flash Upload).
d3-d7: reserved.
‘01’
‘02’
‘03’
‘04’
00H
Once the ZR36506 device is connected to USB, the software driver can perform these
operations:
1.
Set the LD_EPRM bit (Reg.66, bit d0). This causes the camera to update the V8 software
from the external EEPROM, if it exists. Note that before setting the LD_EPRM bit of
Reg.66, the SER_MODE Reg. (Reg.7) has to be set to 0xb0. After setting the LD_EPRM
bit, the software waits until the LD_EPRM bit returns to ‘0’.
Set the AUTO_BLK bit (Reg.7, bit d7) to enable the V8 to use the Bulk pipe to send data
to the host computer. Set the LD_FLSH bit (Reg.66= 0x02, bit d1). This causes the camera
to upload all picture and audio data from Flash memory to the host computer using the
Bulk pipe (EP #4). The software should wait until the LD_FLSH bit returns to ‘0’. Note
that even if there is no data in the Flash memory (i.e. no pictures were taken), the data
transfer starts from address 0 of the Flash memory and ends at the last byte of the Flash
(size of the Flash memory is 2 Mbytes). Note that audio data is optional and follows the
given picture.
2.
3.
If there is a request to cancel the operation of uploading the Flash memory, set the
CNCL_LD bit (Reg.66=0x04, bit d2). The software waits until Reg.66 returns to 0x00.
Set the CLR_FLSH bits (Reg.66, bit d0-d1, 0x03) upon request from user. This causes the
camera to erase Flash memory. The software waits until Reg.66 returns to 0x00.
4.