| ??? 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 |
| Topic | Author | Date |
| 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 |



