GrandAlf
Advanced Member level 2
Anyone help with this, not very good at C yet. What I have is an AT89s8252 programmed with k**l and tiny rtos. I have one task that that sits and uses _getkey and assigns it to an 8 bit int global variable. This variable is then read by another task that processes it if > 0. The problem I have is that if more than one number is received in a period less than the processing time, I find I am missing it. What I would like to do is for the _getkey task to write to a buffer of 10 say, and then read it in the other task, of course when a particular location is read it should then be destroyed and the next in the queue move up to be processed, until the buffer was empty. I have searched on the web, but cannot find anything suitable for MCUs. I had thought that this chip had a hardware buffer, but in this application it seems to have no effect. Would very much appreciate any assistance on this.
Mike
Mike