-------------------------------------------------- From: "ivp" Sent: Wednesday, September 08, 2010 7:29 AM To: "Microcontroller discussion list - Public." Subject: Re: [PIC] dsPIC33F, remapping and SPI >> Also if you are using the SPI in master mode, why are you setting >> the slave select enable bit? (SSEN) > > Oli, > > My understanding is that SSEN is an optional pin function. ie that > bit does not select Slave Mode. SPI1CON1,MSTEN=3D0 does > > Joe Yes, you're probably right, it's unlikely to make any difference - I was=20 just grasping at straws really.. I had a pretty thorough look through but=20 nothing jumped out at me... What about the OSCCONL? Did I miss something there? Is there a reason for=20 that? I assume it's just defined as the lower byte of OSCCON or something? I take it you can't see anything on the pins with a scope is what you mean= =20 by "not seeing SPI activity" My guess would be something to do with the mapping or unlock (but I'm sure= =20 that's your guess too so it's not exactly inspired.. :-) ), maybe try=20 simplifying it a bit - map something like the timer output just to confirm= =20 you are doing it correctly. Also maybe test the unlock bit to see if it=20 unlocks correctly (if it's possible to read it at the necessary time) =20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .