This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PRU固件编程求助

Other Parts Discussed in Thread: TIDEP0057

我在使用TI官方提供的历程(TIDEP0057)时碰到这样的问题:比如下方的使用PRU固件支持BISS编码器协议时

// load firmware
PRUICSS_setPRUBuffer(pruIcss0Handle, 0, (UInt32*)BiSSFirmware, sizeof(BiSSFirmware));

// configure shared memory interface
// clear ICSS0 PRU0 data RAM
memset((void *)(((PRUICSS_HwAttrs *)(pruIcss0Handle->hwAttrs))->baseAddr + 0x0000), 0, (4*1024));
// BiSS encoder configuration: clock_speed=1; crc_bits=8, encoder_bits=12
HW_WR_REG32(((PRUICSS_HwAttrs *)(pruIcss0Handle->hwAttrs))->baseAddr + 0x0000, 0x0001080C);

//Run firmware
PRUICSS_pruExecProgram(pruIcss0Handle, 0);

TaskOSAL_sleep(25);
// write known patterin into position regigister
HW_WR_REG32(((PRUICSS_HwAttrs *)(pruIcss0Handle->hwAttrs))->baseAddr + 0x8, 0xFFFFFFFF);
TaskOSAL_sleep(100);
// check if BiSS encoder has been detected (pattern has been overwritten by PRU firmware)
biss_angle = HW_RD_REG32(((PRUICSS_HwAttrs *)(pruIcss0Handle->hwAttrs))->baseAddr + 0x8);
if(biss_angle == 0xFFFFFFFF)
return;

比如高亮处的代码,我只能看到顶层的程序,至于该地址中写入0x0001080C究竟代表什么我不知道。我想问一下有没有帮助的文档。谢谢。