 | 我们是用mcbsp与dma方式,但是仅仅发送了当前地址的数据,其余的均未发送,why?下面是我们的程序,请您帮忙检查一下,我们不知道mcbsp与dma具体如何配合使用 stm SPCR1_0,SPSA_0 stm #1000000011010010b,SPSD_0 stm SPCR2_0,SPSA_0 stm #0000000001011010b,SPSD_0 stm PCR_0,SPSA_0 stm #0000111100000001b,SPSD_0 rsbx intm stm #0030h,IMR stm RCR1_0,SPSA_0 stm #0000011100000000b,SPSD_0 ;8 words of each frame;8 bits of each word stm RCR2_0,SPSA_0 stm #000001110000110b,SPSD_0 stm XCR1_0,SPSA_0 stm #0000011100000000b,SPSD_0 ;8 words of each frame;8 bits of each word stm XCR2_0,SPSA_0 stm #0000011100000000b,SPSD_0 ;8 words of each frame;8 bits of each word stm SRGR1_0,SPSA_0 stm #0000000000000100b,SPSD_0 stm SRGR2_0,SPSA_0 stm #0010000000000110b,SPSD_0 stm MCR1_0,SPSA_0 stm #0000h,SPSD_0 stm MCR2_0,SPSA_0 stm #0000h,SPSD_0 stm RCERA_0,SPSA_0 stm #1111h,SPSD_0 stm RCERB_0,SPSA_0 stm #1111h,SPSD_0 stm XCERA_0,SPSA_0 stm #1111h,SPSD_0 stm XCERB_0,SPSA_0 stm #1111h,SPSD_0 * complete the initialization of McBSP0. stm SPCR1_0,SPSA_0 stm #1000000011011011b,SPSD_0 stm SPCR2_0,SPSA_0 stm #0000000001011011b,SPSD_0 stm PCR_0,SPSA_0 stm #0A00h,SPSD_0 stm SPCR2_0,SPSA_0 stm #0000000011011011b,SPSD_0 stm DMSRC4,DMSA ; Uses DMA channel #4 as serial port transmit data channel stm #2100h,DMSDN stm DMDST4,DMSA stm DXR1_0,DMSDN stm DMCTR4,DMSA stm #010h,DMSDN stm DMSFC4,DMSA stm #0010000000000000b,DMSDN stm DMMCR4,DMSA stm #1101001101000001b,DMSDN stm DMIDX0,DMSA stm #0001h,DMSDN stm #0001000000010000b,DMPREC serial_transmit_intr: rete .end |