MPLAB and the simulator under windows at least - doesn't support much really. I doen't support the serial port in any of ot's modes, it doesn't support the A/D functions, it doesn't support PWM, CCP or a whole load of other things. On the 12 series PICs, it doesn't support much in the way of GPIO either, like the pin GP3/MCLR and stuff You could try 4.99.07 from the microchip website, this claims to support more peripheral functions, I know that they said it supported the GPIO port on the 12 series better, but I found that version perpetually crashed on my system, especially when saving a project. Personally, I'm hanging on for version 5.00, due out within a fortnght. regards, Kevin ----- Original Message ----- From: Somasundaram Meiyappan To: Sent: Thursday, March 09, 2000 1:41 AM Subject: 16F876, SSPSTAT(CKE) bit cannot be changed? > Hi PIClisters, > > I was trying to configure the SPI mode in a 16F876 in MPLAB. I set the bank > properly(Bank1). Then said - BSF SSPSTAT,CKE / BSF SSPSTAT,6. But the CKE > bit does not get set when I am running the program under MPSIM. I use MPLAB > 4.12.00 . I also tried setting the SSPCON (Bank0) before/ after configuring > the SSPSTAT. In either way, the CKE bit is not set in SSPSTAT. > > Have you experienced such problems before? If so, is it a problem with > MPLAB or with the device? > > Thanks and Regards, > Somasundaram Meiyappan. > > ** Snippet No.1 > bsf STATUS,RP0 > bsf SSPSTAT,CKE > > bcf STATUS,RP0 > movlw 0x22 > movwf SSPCON > > ** Snippet No.2 > bcf STATUS,RP0 > movlw 0x22 > movwf SSPCON > > bsf STATUS,RP0 > bsf SSPSTAT,6 > > ** Snippet No.3 > bsf STATUS,RP0 > movlw 0x40 > movwf SSPSTAT ; Pls. note that Bits 0-5 are read only in SSPSTAT > > bcf STATUS,RP0 > movlw 0x22 > movwf SSPCON > > All the codes above did not set CKE. But the SSPCON register is being > changed by all the codes. >