BeanBrain 0 Posted April 17, 2006 Report Share Posted April 17, 2006 Bug description: BoostC v6.35 header files for PIC18F2455, PIC18F2550, PIC18F4455, PIC18F4550 do not have the macro definitions for SPI port pin names. These definitions are required for SCK, SDI, SDO, SS and NOT_SS (last two are an identical value). Steps to reproduce: Referencing any SPI port pin names. Expected behaviour: In each of the four header files need to add the macro definitions for pin bit numbers under the definitions of the relevant port. I obtained the pin bit position from Microchip's PIC18F2455/2550/4455/4550 Data Sheet - DS39632C I added the folloowing five definitions: /////// PORTA Bits ///////////////////////////////////////////////////// #define SS 0x00000005 #define NOT_SS 0x00000005 /////// PORTB Bits ///////////////////////////////////////////////////// #define SDI 0x00000000 #define SCK 0x00000001 /////// PORTC Bits ///////////////////////////////////////////////////// #define SDO 0x00000007 Is the problem 100% reproduceable: Yes IDE version : Any Compiler : BoostC Compiler Compiler version: 6.35 Target device : PIC18F2455, PIC18F2550, PIC18F4455, PIC18F4550 OS: : XP Pro SP2 Comments: I've only checked for these five pin bit positions on the specified four MCUs as I my current target is a PIC18F4550 and all four are covered by the same data sheet. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.