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.
reading the comment before this table explain why this table is discontinuos between 1 second and half second:
//*****************************************************************************
//
// Maps items from the period menu to match values for RTC. Lower 8 bits
// is subsecond value, upper 24 bits is seconds. The lower 8 bits represent
// subseconds in 7 bits, right-justififed. So 0x01 is 1/128 of a second.
// The order of the values here needs to match what appears in the PERIOD
// menu in menus.c.
//
//*****************************************************************************
static uint32_t g_pui32LogPeriod[] =
{
0x00000004, // 1/32 4/128 -> 1/32
0x00000008, // 1/16 8/128 -> 1/16
0x00000010, // 1/8 16/128 -> 1/32
HI Roberto
Thank you for clarifying. I have read the comment but could not understand the comments properly. Now I understand how the division has been done. But yet, I don't understand-- How 128 has been calculated. That is, why always 128 are being divided? Can you please explain?
In addition, I have also tried to log data with 0x01 according to the comments in the code. But, it does not work. If I put 0x01 in the code, I got 52 samples per second whether I should get 128 samples per second. Can you also explain why this is happening?
Again thank you for helping me.
Regards
Rupok
Mohammad Shams Arman Rupok said:In addition, I have also tried to log data with 0x01 according to the comments in the code. But, it does not work. If I put 0x01 in the code, I got 52 samples per second whether I should get 128 samples per second. Can you also explain why this is happening?
Hi Mohammad, assuming you are using serial channel, sorry but it cannot work, you are using a slow channel to transfer too many data and this channel has limited bandwidth, 52 is a multiple of transmitted baud rate, you can obtain better performance saving data to flash pendrive or SD card, this can help a lot more due to channel speed two three order of magnitude greater than serial channel, if more is needed then and HIGH speed channel like network is absolutely necessary but 123 series just has on chip USB OTG (12Mbps) and SSI the fastest channel. Binary compressed RLL protocol can help raise serial transfer but don't expect to have more than 5 10K samples/sec.