Missing SPI2 on PIC18F4xJx

Beta Testing discussion on mikroPascal PRO for PIC.
Post Reply
Author
Message
Zsola
Posts: 16
Joined: 29 Nov 2008 02:31

Missing SPI2 on PIC18F4xJx

#1 Post by Zsola » 22 Apr 2010 20:56

Hello!

The second MSSP support missing in Lib SPI. Some PICs there are 2 MSSP, on smallers you can only use the 2nd as SPI (not I2C).
I noticed the followings:
-You cannot use SPI2 nor I2C2;
-The PIC18F6x and 18F6xJx series uses the same registers and give similar functions (18F4xJ50 family support DMA too, but I dont need that now).
-The configs (*.mlk) are in the "c:\Program Files\Mikroelektronika\mikroPascal PRO for PIC\Defs"

I put this in the P18F46J50.mlk in the Lib section:
- <LIB>
<ALIAS>SPI-Dual</ALIAS>
<FILE>__Lib_SPI_c345d654</FILE>
<TYPE>REGULAR</TYPE>
</LIB>

The SPI2 after Port Mapping seems working.
Please check this, because I dont have SPI ICs right now, I want to use SD card on SPI2 (I2C1 is working with 5 different ICs).
Thank you!

Post Reply

Return to “mikroPascal PRO for PIC Beta Testing”