??? 03/07/07 12:38 Read: times |
#134456 - let's calculate a bit Responding to: ???'s previous message |
OK so add up 4 cycles for the interrupt and return... Or, let's be more generous and calculate 20 cycles per "unnecessary" interrupt.
The maximum baudrate a vanilla (+ alike) '51 can handle in 9-bit mode is one character per 176 instruction cycles. In anything but the most extreme protocols, there is at least a byte or two of payload after the address, one or two bytes' time delay to turn around, and a couple of bytes of response, then some more delay for turning around the bus. Let's assume 6 bytes' time altogether, that's around 1000 cycles. So, the "unnecessary" interrupt took up 2% of your precious processing time... I don't think this is really worth even mentioning... On the other hand, those 50 gates or so, costing $0.00000001 per chip, make up such a nice line in the Features list, "Enhanced UART with automatic address recognition"... :-) JW |