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

Back to Subject List

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


 
#161194 - Keil printf disables output ?
Responding to: ???'s previous message
Problem was solved by shifting baudrate generation from T1 to T2.


Now another issue: I have an interrupt several hundert times a
second reading and writing external I/O and it works fine. The
main program is just supervising stuff and putting it out on UART.

New problem - fitting to the headline : when using simple putchar
in the main loop there is no problem but when using fprint instead
the mentioned I/O interrupt is slowed down significantly.

Is printf disabling interrupts during runtime ? As far as I have
read printf is also just using putchar so there should be no such
problem, right ?

Just for comment: I dont care how long printf needs to put stuff
out since main things happen in the interrupt. So there is no
execution time problem for me using printf, if it wouldnt slow
down my I/O interrupt

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