??? 12/05/06 16:59 Read: times |
#129015 - I remember it this way: "when SM2 is set I only ge Responding to: ???'s previous message |
from another datasheet, maybe clearer The signal to load SBUF and RB8, and to set RI, will be generated if, and only if, the following conditions are met at the time the final shift pulse is generated. (a) RI = 0, and (b) Either SM2 = 0, or the received 9th data bit = 1. If either of these conditions is not met, the received frame is lost, and RI is not set. If both conditions are met, the received 9th data bit goes into RB8, and the first 8 data bits go into SBUF.
Does this mean that I must manually set the SM2 bit every time I receive a byte? No, it means that when a slave recognizes its address it must reset it, then when the transmission is complete set it again. I remember it this way: "when SM2 is set I only get an interrupt on addresses. Erik |