K=FCbek Tony wrote: > Hi, > > Tobie Hornswill wrote: > > >reads 1790 (0000000010110011) ... Could it be that the compass sends > it's 16 > >bits non stop (without pausing between each byte) while the PIC needs > more > >space to "breath" between each byte ? I guess I could run the PIC as > master > > You did not mention if You are using the built in SPI module ? > I'm assuming you are, in this case I guess you cannot use this module. > I dont think there is support for 16 consecutive data bits. Why not? I see no reason the SPI cannot handle 2 bytes consecutivly. The first 8 bits fill the shift register, get transfered to the SSPBUF, sets BF flag, and continue filling the Shift register. You will HAVE to move the byte out of SSPBUF before the shift register fills! (Collision) Mind you, I've not tried this, but I see no contradiction in the manual. > But I guess I will be corrected by people on the list if I'm wrong :). > My guess is that you need to do it by sw. ( very easy with SPI, albeit > a bit slower ). > > /Tony > > Tony K=FCbek, Flintab AB > =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2 > E-mail: tony.kubek@flintab.com > =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2 > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > "[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's -- * | __O Thomas C. Sefranek tcs@cmcorp.com |_-\<,_ Amateur Radio Operator: WA1RHP (*)/ (*) Bicycle mobile on 145.41, 448.625 MHz http://hamradio.cmcorp.com/inventory/Inventory.html http://www.harvardrepeater.org -- http://www.piclist.com hint: PICList Posts must start with ONE topic: "[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's