AnsweredAssumed Answered

TWI RSTART of BF518F?

Question asked by zenwall on Oct 9, 2011
Latest reply on Oct 11, 2011 by zenwall

Hello all,

I am using the BF518F to write/read AT24C64.When reading,how can I get a RSTART?Using *pAdditionalInfo?How?Any example?

My config:

 

adi_twi_bit_rate rate = {100, 50};              //
ADI_DEV_CMD_VALUE_PAIR twi_init[] =
    {
        {   ADI_DEV_CMD_SET_DATAFLOW_METHOD, (void *)ADI_DEV_MODE_SEQ_CHAINED   },
        {   ADI_DEV_CMD_SET_SYNCHRONOUS,     (void *)TRUE                       },
        {   ADI_TWI_CMD_SET_HARDWARE,        (void *)ADI_INT_TWI                },
        {   ADI_TWI_CMD_SET_FIFO,            (void *)0x0000                     },
        {   ADI_TWI_CMD_SET_RATE,            (void *)(&rate)                    },
        {   ADI_TWI_CMD_SET_LOSTARB,         (void *)3                          },
        {   ADI_TWI_CMD_SET_ANAK,            (void *)1                          },
        {   ADI_TWI_CMD_SET_DNAK,            (void *)1                          },
        {   ADI_DEV_CMD_SET_DATAFLOW,        (void *)TRUE                       },
        {   ADI_DEV_CMD_END,                 (void *)NULL                       }
}

Outcomes