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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/30/08 12:14
Read: times


 
#161220 - printf slows I/O interrupt
Responding to: ???'s previous message
Ok, in short points what now happens and what works :

- URAT baud rate generated by T2, automatically reloaded
- T0 triggered interrupt with very short ISR just writing/reading values to ADC/DAC/GPIO
- polled UART communication in main loop, just for "reporting purposes"


The problem: when I use something like "while (!TI); TI = 0; SBUF = foo;" in the main
loop everything works fine and with the full speed of UART. Also the T0 is going on doing
analog signal conversion. When I use printf instead, I see the output done by T0 "slowing
down", meaning that less T0 interrupts occur during runtime of printf. It basically looks
like printf sets an global interrupt disable during runtime

List of 9 messages in thread
TopicAuthorDate
Keil printf disables output ?            01/01/70 00:00      
   Cross post            01/01/70 00:00      
      Keil printf disables output ?            01/01/70 00:00      
         Keil printf disables output ?            01/01/70 00:00      
         Not solved?            01/01/70 00:00      
            printf slows I/O interrupt            01/01/70 00:00      
               unlikely to disable IRQs            01/01/70 00:00      
                  you can use your own putchar() function with Keil            01/01/70 00:00      
                     you can use your own putchar() function with Keil            01/01/70 00:00      

Back to Subject List