阅读:1386回复:4
878a驱动中RISC指令写在哪里啊
我在做一个bt878a的视频采集卡,功能倒不是要很强,只要能采集视频就可以了,但是datasheet上说878a要用RISC指令来控制DMA操作,我是想用DriverStudio编写驱动,不知道这个RISC指令应该写在哪里啊,有没有人做过类似的工作,指点我一下吧。
[编辑 - 4/24/04 by transform] |
|
沙发#
发布于:2004-04-06 00:00
write RISC program in host memory;
pass the memory address to 878 then run it; |
|
板凳#
发布于:2004-04-06 17:52
那么是在什么情况下会运行呢,是说我把地址给了RISC地址寄存器后并达到同步,RISC指令就会开始运行了是么,需不需要其他的条件,比如寄存器置位等。谢了
|
|
地板#
发布于:2004-04-06 22:14
here is my sample code:
unsigned int ulDmaCtl = 0; RegRead(nDevNo,DMA_CTL_REG,&ulDmaCtl);//ulDmaCtl = READ_DMA_CTL(pdx); ulDmaCtl |= FIFO_ENABLE;//0x00000001 ulDmaCtl |= RISC_ENABLE;//0x00000002 RegWrite(nDevNo,DMA_CTL_REG,ulDmaCtl);//WRITE_DMA_CTL(pdx,ulDmaCtl); //here RISC_ENABLE is to run RISC program. |
|
地下室#
发布于:2004-04-07 08:42
Thank you very much, and I think I should start to program my driver.
|
|