Go Down

Topic: BUS Shield ARCAN Problems (Read 449 times) previous topic - next topic

knip

Hi everyone, I have some problems with Arcan Shield library (http://forja.rediris.es/frs/download.php/1222/ArCan_v1.00.tar.gz).
I'm trying the examples of TX/RX transmission that I found on the website (www.arcan.es).

I made a test this morning.

File ArCan.cpp
boolean tArCan::init(void)
{
    // Hacemos un reset por soft al mcp2515
    // Despues del reset entra en modo de configuracion
    digitalWrite(ArCan_CS,LOW);
    spi_putc(SPI_RESET);
    digitalWrite(ArCan_CS,HIGH);

    // Esperamos un poco para que se estabilize el mcp2515 despues del reset
    delay(20);
   
    // load CNF1..3 Register
    digitalWrite(ArCan_CS,LOW);
    Serial.write("TRY1");
    spi_putc(SPI_WRITE);
    Serial.write("TRY2");

Arduino Serial Console printed string "TRY1", but didn't print string "TRY2".

I hope someone can help me.
Bye.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy