Pages: [1]   Go Down
Author Topic: BUS Shield ARCAN Problems  (Read 387 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: