Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/26/07 13:04
Read: times


 
#138007 - Serial transmission in scheduller instead of int
Hi everyone,

I have the following scenario:
I have a SW fifo buffer where all the bytes that I want to transmit through serial port of 8051 are stored. I also have a scheduller interrupt triggered every 1ms.

I am transitting at speed 9600baud (1,04ms/byte inclusive start/stop bit).

Is there any danger if the transmission (fetching 1 byte from FIFO and placing to SBUF when TI is set) is done in the scheduller instead of doing it in the serial vector interrupt?

The advantages of such solution is that I have more controll over my program. But is it possible that such scenario would in some case not work?

Thank you very much, greetings
Attila

List of 19 messages in thread
TopicAuthorDate
Serial transmission in scheduller instead of int            01/01/70 00:00      
   danger, maybe, loss of efficiency YES ABSOLUTELY!!            01/01/70 00:00      
      avoiding interrupts means...            01/01/70 00:00      
      Scheduller....            01/01/70 00:00      
         there is no such thing            01/01/70 00:00      
            Limitation API            01/01/70 00:00      
               API?            01/01/70 00:00      
                  Yes ASIC design fixed...            01/01/70 00:00      
                     debug possibilities?            01/01/70 00:00      
                        Monitor is nice idea            01/01/70 00:00      
   1ms vs 1.04ms            01/01/70 00:00      
      absolutely NOT            01/01/70 00:00      
         ok but 1 byte is transmitted together            01/01/70 00:00      
            if it does, then you need to KISS            01/01/70 00:00      
         I took the 1ms processing tick for granted...            01/01/70 00:00      
   Thanks for the inputs...            01/01/70 00:00      

Back to Subject List