*****************************************************
SETTINGS FOR BF533 EZ-KIT AND MICRON MI360 SENSOR
*****************************************************

-----------------------------------------------------
EZ-KIT SWITCH/JUMPER SETTINGS:
-----------------------------------------------------

Switches: all OFF
SW9(1:4) = ON if using pushbuttons
	
Jumper JP1 ON
Jumper JP2 OFF

-----------------------------------------------------
AV-EXT POPULATED JUMPERS:
-----------------------------------------------------

JP2.1/2
JP3.3/5
JP3.4/6
JP4.7/8
JP6.3/5
JP6.4/6
JP9.3/5
JP9.4/6

-----------------------------------------------------
MI360 IMAGE FORMAT:
-----------------------------------------------------

Hor Pixels: 640
Ver Pixels: 480
Format: RGB
Bits per pixel: 16

-----------------------------------------------------
MI360 BASIC CONFIGURATION:
-----------------------------------------------------

Hardware:
---------
JPB2 DNP

Software:
---------
SCCB Write Address:	0xB8
SCCB Read Address:	0xB9

Reg  =  Value
-------------
0x01 = 0x0004	// Set to Core Register Space
0x0D = 0x0001	// Soft Reset of Core
// Wait 200000 cycle delay
0x0D = 0x0000
// Wait 200000 cycle delay
0x01 = 0x0004	// Set to Core Register Space
0x05 = 0x0084	// Horizontal Blanking Control Register
0x06 = 0x0010	// Vertical Blanking Control Register
0x07 = 0x3002	// Output Control Register
0x20 = 0xD020 
0x21 = 0xE401
0x35 = 0x0040
// Wait 200000 cycle delay
0x01 = 0x0001	// Set to Image Flow Processing Space
0x07 = 0x0001
// Wait 200000 cycle delay
0x07 = 0x0000
// Wait 200000 cycle delay
0x37 = 0x0020
0x01 = 0x0001
0x05 = 0x0003	// Aperture Correction (sharpening)
0x08 = 0xDA00	// Enable RGB and invert Pixel Clock
0x2E = 0x1084	// AE  Target Control
0x3A = 0x0043	// Output Format Control 2  - 555 BGR, swap bytes
0x33 = 0x1411	// Sharpness and Saturation
0x39 = 0x0122	// Upper Shutter Delay Limit
0x3B = 0x042C	// Black Subtraction
0x3E = 0x0FFF	// Gain threshold for CCM adjustment
0x48 = 0x0007	// Color bar
0x59 = 0x00F8
0x5A = 0x012A
0x5C = 0x201E
0x5D = 0x2725
0x64 = 0x117D
// Wait 800000 cycle delay

-----------------------------------------------------
SAMPLE BF533 BASIC REGISTER CONFIGURATION:
-----------------------------------------------------

	#define en_async_mem 	0xF
	#define PPICLK_Expansion_CLK_SELECT 0x20
	
	// addresses for Port B in Flash A
	#define pFlashA_PortB_Dir	(volatile unsigned char *)0x20270007  //dir
	#define pFlashA_PortB_Data	(volatile unsigned char *)0x20270005 //out
	#define pFlashA_PortA_Dir	(volatile unsigned char *)0x20270006  //dir
	#define pFlashA_PortA_Data	(volatile unsigned char *)0x20270004 //out

	// Link the signals over the EZ-KIT to the EZ-Extender
  *pEBIU_AMBCTL0	= 0x7bb07bb0;
	*pEBIU_AMBCTL1	= 0x7bb07bb0;
	*pEBIU_AMGCTL	|= en_async_mem;
	 	
	// Initialize flash A csio regs (port A)
  *pFlashA_PortA_Data = 0x0;		// Clear data registers
	*pFlashA_PortA_Dir = 0xFF;      // Set Direction = Output
	ssync();
	*pFlashA_PortA_Data |= PPICLK_Expansion_CLK_SELECT;
	
-----------------------------------------------------
PART REVISIONS:
-----------------------------------------------------

These configurations apply to:
- BF533 Rev. 0.3 or higher
- AV-Extender card Rev. 1.2
- Micron MI360 Headboard Rev. 3
- Micron MT9v111 Sensor Rev. 3