Shop OBEX P1 Docs P2 Docs Learn Events
Advice — Parallax Forums

Advice

BrakkarooBrakkaroo Posts: 3
edited 2012-05-16 15:58 in BASIC Stamp
Greetings to All, recently purchased a Wiznet wiz812mj rev 1.0 could not find info to be able to
interface with a BS2. Is SPI also called RS-232? Any references with schematics and example
code will help. Can anyone help, good question.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2012-05-16 15:40
    Like with anything else, you have to start with the datasheet (here). SPI is completely unrelated to RS-232. There are examples in the Nuts and Volts Columns of a variety of SPI devices. Unfortunately, there is a lot of variation from one SPI device to another and you'll have to study the datasheet and the WIZ5100 datasheet thoroughly. Basically, you use the LOW and HIGH statements to enable and disable the /SCS line respectively, then use SHIFTIN and SHIFTOUT to transfer data (with SCLK as the clock line and MISO as the data line for SHIFTIN and MOSI as the data line for SHIFTOUT).

    You won't likely find any specific examples of the use of this with a Stamp, so you'll have to do some research and self-education. Look at examples of the use of SPI with other devices in the StampWorks Manual and the Nuts and Volts Columns archive.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-05-16 15:58
    One example of using a SPI device with a BS2 is Ron Czapala's code to use Nordic nRF24L01+ modules with the Basic Stamp.
Sign In or Register to comment.