Has anyone successfully used the Ubicom sample dual UART & IIC multimaster virtual peripheral ? I've just returned to a project where I'm intending to use this code. The dual UART had a fatal flaw which I have fixed. This probably came from someone having duplicated code for a single UART but missing a common flag fatally shared between the two routines - possibly OK if only one was active at once and you changed serial connections over to test each in turn. I've added a 3rd UART to this and they all work OK. I've just started on the IIC (where I only need a single master) and at first try it appeared "dead in the water". I added a debugging call to a print routine part way through the code. This needed a bank switch and I then restored the bank to where it "should" have been after the serial call, and lo & behold, it burst into somethinfg like life. Removing the serial call but keeping the subsequent bank call (which should now be redundant) and it still works partially. This suggests the basic code is flawed. If anyone else has used this with success I'd love to hear from them. I'll no doubt get it going but short circuiting having to fix something which isn't meant to be broken would be nice. I'd like to think that it was just something I was doing wrong but the fact that the UART was definitely broken suggests the other problem also may be real. regards Russell McMahon -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads