Hi,
when I test the LPSPI_CFGR1_MATCFG bit ,There is one question that bothers me。
I configure LPSPI0 as master,LPSPI1 as slave. LPSPI1 transfer 5 datas[0x64,0x63,0x62,0x61,0x60] to LPSPI0, and
LPSPI0->CFGR1 |= LPSPI_CFGR1_MATCFG(3);
LPSPI0->IER |= LPSPI_IER_DMIE_MASK;//LPSPI_IER_DMIE_MASK;
LPSPI0->TCR |= LPSPI_TCR_CONT_MASK; //连续传输
LPSPI0->CFGR0 |= LPSPI_CFGR0_RDMO_MASK; //仅接收匹配
LPSPI0->DMR0 = 0x60; //最后一个数据进行匹配;
LPSPI0->DMR1 = 0x59;
After testing, I found that the last one data can't match with DMR0 and DMR1,regardless LPSPI_CFGR1_MATCFG(3) or 4,5,6,7.
Looking forward to your reply!Thanks.