Em đang làm đồ án về con này mà hiện tại tìm kiếm khắp nơi không có tài liệu chi cả. Không biết pro nào có tài liệu về nó cho em xin, thật cảm ơn vô cùng.
Hỏi về card ADSP - BF533
Collapse
X
-
Tags: None
-
bạn có tìm trên internet/google search... ? http://www.analog.com/en/processors-...s/product.htmlNguyên văn bởi Nhân Nguyên Xem bài viếtEm đang làm đồ án về con này mà hiện tại tìm kiếm khắp nơi không có tài liệu chi cả. Không biết pro nào có tài liệu về nó cho em xin, thật cảm ơn vô cùng.
chắc là bạn cần tài liệu tiếng Việt à? chắc khó kiếm...Mãi đi tìm vàng.
-
Cụ thể hơn là em có một bài tập thế này.
Tìm hiểu nguyên lý hoạt động, cơ chế bắt hình của card ADSP BF533 đang có. Viết chương trình bắt và xử lý các frame ảnh từ tín hiệu Video.
Yêu cầu:
- Ngôn ngữ lập trình sử dụng C/C++/Assemly…
- Phần mềm cần phải tạo ra file video AVI từ các frame ảnh trong dòng dữ liệu nhận được từ card BF533. Phần mềm play được file video đó.
Trong tài liệu tham khảo thầy đưa, mình đọc code mà không hiểu gì cả. Code gồm các file như
main.c,
PLL_Setup.c
DMA_Config.c,
Flash_Setup.c,
flashsetup.h,
SDRAM_Config.c
SDRAM_Config.c
...
Chẳng hạn, code của main.c:
code của PLL_setup.cCode:#include <cdefBF533.h> //BF533 Register Pointer Definition #include <stdio.h> #include <sys\exception.h> //Interrupt Handling Header // Sets up here all Prototype Functions void Init_EBIU(void); void Init_Flash(void); void Init_ADV(void); void Init_Interrupts(void); void Init_SDRAM(void); void Init_DMA(void); void Init_PPI(void); void Init_PLL(void); void main() { int i = 0; //setup; Init_PLL(); Init_EBIU(); //Async Memory Interface Setup Init_Flash(); //Flash Setup to config the flash GPIOs Init_ADV(); //Link the ADV7183 clock to the PPI and ADV7183 reset printf("\n ADV Setup Lock Delay!\n"); //Gives the ADV7183 time to lock after reset Init_Interrupts(); //Enter an interrupt subroutine after DMA has been finished Init_SDRAM(); //SDRAM Setup to store the video image Init_DMA(); //DMA Setup "PPI->DMA->SDRAM" Its configured in Stop Mode Init_PPI(); //PPI Setup while (1) { i = 1; } }//end main
code của DMA_Config.c:Code:#include <cdefBF533.h> #include <ccblkfn.h> #include <sysreg.h> void Init_PLL(void) { volatile int test=0; sysreg_write(reg_SYSCFG, 0x32); //Initialize System Configuration Register *pVR_CTL = 0x00FB; idle(); *pSIC_IWR = 0x1; *pPLL_CTL = 0x2C00; ssync(); idle(); }//end Init_PLL
thật sự em chưa hiểu được ý nghĩa của từng file, nói chi đến tìm hiểu codeCode:#include <cdefBF533.h> #define Line_Length 720 #define Frame_Length 525 void Init_DMA(void) { //Target address of the DMA *pDMA0_START_ADDR = 0x0; //Line_Length 16bit transfers will be executed *pDMA0_X_COUNT = Line_Length; //The modifier is set to 2 because of the 16bit transfers *pDMA0_X_MODIFY = 0x2; //Frame_Length 16bit transfers will be executed *pDMA0_Y_COUNT = Frame_Length; //The modifier is set to 2 because of the 16bit transfers *pDMA0_Y_MODIFY = 0x2; //PPI Peripheral is used *pDMA0_PERIPHERAL_MAP = 0x0; //DMA Config: Enable DMA | Memory write DMA | 2-D DMA | Discard DMA FIFO before start | enable assertation of interrupt | NDSIZE for stop mode | Enable STOP DMA *pDMA0_CONFIG = DMAEN | DI_EN | WNR | WDSIZE_16| DMA2D | RESTART | DI_EN; }//end Init_DMA
. Đọc code thì cấu trúc lệnh lạ hoắc. Không thể tìm hiểu được gì
.
Mong các pro chỉ giáo, cho em hiểu ít nhất cấu trúc cơ bản, ý nghĩa của mấy file - code này được không ạ. Em cảm ơn trước
code mẫu mà thầy gửi em em đã đính kèm ở dưới.Attached Files
Comment
-
Bài viết mới nhất
Collapse
There are no results that meet this criteria.

Comment