Hi Louie,

The 18F is jumpered in to the LABX1 and running fine. I set the OSC to run at 32Mhz. I am debugging with SEROUT2 command.

It appears that I am getting ACK from the Gyro because I am getting a debug statement out just after the "WHILE SSPCON2.6 : WEND.

I am freezing up though at "WHILE !SSPSTAT.0 : WEND". So I am not seeing any data out yet.

Here is that code segment along with my SEROUT2 Debug Statements in that section.

FOR e = 6 TO 11

SEROUT2 PORTB.7,84,[" READ GYRO ",10,10]
' Receive the 8 bit data from gyroscope
SSPCON2.3 = 1 ' Enable the Receiver to clock in data
WHILE !SSPSTAT.0: WEND ' Wait until Buffer Full bit is set
XYZ_RAM[e] = SSPBUF ' Load each XYZ_RAM byte in array

SEROUT2 PORTB.7,84,[" XYZ_RAM ",DEC XYZ_RAM[E],10,10]
' Master sends ACK for first 5 data packets
IF e != 11 THEN
SSPCON2.4 = 1 ' Initiate Acknowledge sequence
WHILE SSPCON2.4 = 1: WEND ' Wait until Acknowledge sequence Idle
ENDIF
NEXT e

Again your help is very much appreciated.

Fritz