> When you write data to SSPBUF, how do you know when the data transmision > is completed? The only way to know this is thru interrupt. If I send 2 > bytes of data, interrupt will happen 2 times. How do I know which > interrupt is the second interrupt(when the second byte is sent)? Because the send routine set a flag bit perhaps? ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads