> I'm trying to have fun with SPI. I know nothing about it, but since I got
> nice ENC28J60 ethernet module, I wanted to ping Google too, like Matt did.

Good to hear Seb!

> Trouble is I'm using 18F25K22 and I can only access MSSP2 module, not the
> first one. From what I can understand reading spi_master_hw.jal, it assumes
> MSSP1 (actually aliases pointing to MSSP1 module when looking at 18f25k22
> device file). So, isn't MSSP2 supported ?

The PIC's with two MSSP have both MSSP1 and MSSP2, but not MSSP (like
older PICS's). The aliases where added for compatibility since MSSP1
is MSSP for PIC's with only one of these.

MSSP2 will require a separate SPI library, or a constant in the
current lib to choose between 1 and 2.

Why can you only access MSSP2? Hardware?

> In order to test SPI, are SD cards easier to deal with than an ethernet
> module ?

Probably, but you can do some simple test like enc_read_revision() in
enc28j60.jal. I think I get "6" from that proc.

Matt.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to