Sunday, February 13, 2011

CMOS camera testing in Firmware level programming

The follow code is important for Hanback board's camera.(2M pixel camera MT9D111)

1. void CAMERA_Test(void)

{

uFramec = 0 ;

uLcdFbAddr = CODEC_MEM_ST;
eLcdBpp = RGB24;
eFlipDir = FLIP_NO;
eRotDeg = ROT_0;
uSrcCroppedHsz = 640;
uSrcCroppedVsz = 480;

eImgEffect = BYPASS;
eDstDataFmt = RGB24;
eSrcDataFmt = RGB24;
eProcessPath = P_PATH;
eOutputPath = DMA;
uSrcWidth = 800;
uSrcHeight = 480;

}

2. void CAMERA_InitSensor(void)
{
// 1. Reset sensor
//==========================================
CAMERA_ResetSensor();
Delay(5000);
// 2. Initalize the member variables and initalize the camera model.
//==========================================
oCim.m_uIfBits = 8;
oCim.m_bInvPclk = false,
oCim.m_bInvVsync = true,
oCim.m_bInvHref = false;
oCim.m_uSrcHsz = 640, oCim.m_uSrcVsz = 480;
oCim.m_eCcir = CCIR601;
oCim.m_eCamSrcFmt = CBYCRY;
CAMTYPE = 1;
CAMERA_InitS5K3BAF(oCim.m_eCcir, oCim.m_eCamSrcFmt, SUB_SAMPLING2);
}




Saturday, February 12, 2011

How to access HP notebook BIOS ?


I bought HP Compaq Presario CQ62. That laptop's CPU is AMD and OS is Windows 7. Actually I'm not professional in windows 7. May be Windows 7 is graphic very good, but not familiar me. Then I want to try change windows. I didn't access by traditional methods. For example I push DEL, F2, etc. I can't access BIOS and can't change BOOT configuration. I see some information to press F2.

There , if you want to more information about Boot.

Please visit to http://www.hp.com/go/techcenter/startup

That's very usefully for me. I change my OS.


Tuesday, February 8, 2011

Sunday, February 6, 2011

LED for greenhouse.

The following websites how to use LED in agriculture.

http://www.growlight.cn

http://www.ledgrow.eu/diy.html

http://www.ledgrow.eu/