?? bf533_ez-kit_adv_reset.asm
字號:
/******************************************************************************/
//
// Name: BF533 EZ-KIT video ITU-656 receive mode
//
/*****************************************************************************************************************
(C) Copyright 2003 - Analog Devices, Inc. All rights reserved.
File Name: BF533_EZ-KIT_ADV_reset.asm
Date Modified: 3/27/03 TL Rev 1.2
Software: VisualDSP++3.1
Hardware: ADSP-BF533 EZ-KIT Board
Special Connections: None
Purpose: To reset the ADV7183 video device
Program Parameters:
************************************************************************************************/
#include <defBF533.h>
.global BF533_EZ_KIT_ADV_reset;
/**************************************************************************/
//That procedure resets the ADV7183 decoder via the flash flag
#define flashA_csio 0x20270000 // EZ-KIT flash base addr
#define portA_data_out 0x04 // EZ-KIT flash offset
#define RST_7183 0x3 //decoder reset bit #3 in flashA portA
#define PPICLK_ADV7183_SELECT 0x4 //decoder clock to PPI bit #4 in flashA portA
#define ADV7183_OE_bit 2 // ADV7183 /OE = PF2
#define ADV7183_OE 0x4 // ADV7183 /OE = PF2
/**************************************************************************/
.section L1_code;
BF533_EZ_KIT_ADV_reset:
// de-assert reset from ADP7183 device (flashA portA bit 3)
p1.h = hi(flashA_csio);
p1.l = lo(flashA_csio) + portA_data_out;
r0 = b[p1] (z);
bitset(r0,RST_7183); // de-assert reset of the decoder device
bitset(r0,PPICLK_ADV7183_SELECT); // connect the ADV7183 LLC1 to the PPI_CLK
b[p1] = r0;
// Set FIO_INEN bit for Output flags
// Workaround for anomaly ID# 05000079 for rev < 0.2 only
p0.l = lo(DSPID);
p0.h = hi(DSPID);
r0 = [p0];
r0 = r0.l(z); // need only low 16-bit word
CC = r0 < 0x2 ( IU ) ; // rev < 0.2
IF ! CC JUMP SKIP_FIO_INEN;
// enable PF inputs
p0.l = lo(FIO_INEN);
p0.h = hi(FIO_INEN);
r0 = w[p0](z);
bitset(r0, ADV7183_OE_bit);
w[p0] = r0;
SKIP_FIO_INEN:
p0.l = lo(FIO_DIR);
p0.h = hi(FIO_DIR);
r0 = w[p0](z);
bitset(r0, ADV7183_OE_bit);
w[p0] = r0;
//The Flag PF2 (ADV7183_OE) will be cleared to enable the all ADV outputs
p0.l = lo(FIO_FLAG_C);
p0.h = hi(FIO_FLAG_C);
r0.l = ADV7183_OE;
w[p0] = r0;
BF533_EZ_KIT_ADV_reset.END:
RTS;
/****************************************************************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -