Author Topic: Fast reading from sensors  (Read 213 times)

mc-John

  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Fast reading from sensors
« on: January 31, 2017, 07:28:16 pm »
This is a bit more complex than you would expect. First there are problems with 400KHz and using the 2.4GHz radio. The Radio blocks the TWI just too long for reliable operation at the higest speed.
Secondly to transport more than 255 bytes of memory the system requires specific memory configurations which would limit the amount of usable memory for the rest of the system. We think that more general memory is more important than giving memory to one specific function.

Your previous comments are all based on how fast something can be done. mc-OS and the whole environment are all based on simplified programming model. If you read a pin it does a lot of status and synchronizations checks. This cost performance so the system is not optimized for performance. A good example is reading lots of ADC data. While the processor manual specifies the fastest speed based on a specific way of reading. This requires a lot of setup and then you can read fast. If we would have build this we would not have a simple read analog pin interface and we think that simplicity is more important than performance.