RFID Click PROBLEM
RFID Click PROBLEM
Hello,
I bought RFID Click board but i cant find example for pic, there is only example for arm.
Could you please provide me with a working example?
Thank you
I bought RFID Click board but i cant find example for pic, there is only example for arm.
Could you please provide me with a working example?
Thank you
Last edited by Prsli on 13 Nov 2013 11:14, edited 1 time in total.
Re: RFID Click
Hellp, i am trying to run the code from arm example for RFID. It builds without errors but it gets stuck at
while (!EchoResponse()) {
LATE = 0xFF;
IRQ_IN = 1;
delay_ms(1);
IRQ_IN = 0;
delay_ms(1);
}
EchorResponse function always returns 1 and it never gets out of above while loop
char EchoResponse() {
CS = 0;
SPI1_Write(0x00); // Send cmd to CR95HF
SPI1_Write(ECHO);
CS = 1;
while(1){
CS = 0;
SPI1_Write(0x03);
tmp = SPI1_Read(0);
CS = 1;
if((tmp & 0x08) >> 3){
CS = 0;
SPI1_Write(0x02);
tmp = SPI1_Read(0);
CS = 1;
if(tmp == ECHO){
return 1;
}
return 0;
}
}
}
while (!EchoResponse()) {
LATE = 0xFF;
IRQ_IN = 1;
delay_ms(1);
IRQ_IN = 0;
delay_ms(1);
}
EchorResponse function always returns 1 and it never gets out of above while loop
char EchoResponse() {
CS = 0;
SPI1_Write(0x00); // Send cmd to CR95HF
SPI1_Write(ECHO);
CS = 1;
while(1){
CS = 0;
SPI1_Write(0x03);
tmp = SPI1_Read(0);
CS = 1;
if((tmp & 0x08) >> 3){
CS = 0;
SPI1_Write(0x02);
tmp = SPI1_Read(0);
CS = 1;
if(tmp == ECHO){
return 1;
}
return 0;
}
}
}
Re: RFID Click
I think spi always reads 0x00.
only thing that i changed is instead of
SPI1_Init_Advanced(_SPI_FPCLK_DIV64, _SPI_MASTER | _SPI_8_BIT | _SPI_CLK_IDLE_LOW | _SPI_FIRST_CLK_EDGE_TRANSITION | _SPI_MSB_FIRST | _SPI_SS_DISABLE | _SPI_SSM_ENABLE | _SPI_SSI_1, &_GPIO_MODULE_SPI3_PC10_11_12);
i putted spi1_init(); since advanced init parameters dont exist.
Rfid is connected on portc on Easy for pic board.(pic18f45k22)
only thing that i changed is instead of
SPI1_Init_Advanced(_SPI_FPCLK_DIV64, _SPI_MASTER | _SPI_8_BIT | _SPI_CLK_IDLE_LOW | _SPI_FIRST_CLK_EDGE_TRANSITION | _SPI_MSB_FIRST | _SPI_SS_DISABLE | _SPI_SSM_ENABLE | _SPI_SSI_1, &_GPIO_MODULE_SPI3_PC10_11_12);
i putted spi1_init(); since advanced init parameters dont exist.
Rfid is connected on portc on Easy for pic board.(pic18f45k22)
Re: RFID Click PROBLEM
Is anyone from support department reading these forums?
- dejan.odabasic
- mikroElektronika team
- Posts: 2649
- Joined: 30 Apr 2012 14:20
Re: RFID Click PROBLEM
Hello,
I'm sorry for late reply, I myself have tried to test the RFid click(SPI) with EasyPIC v7.
Unfortunately I ran on similar problem as you reported.
I'll need to make future investigation to find out what is the cause of the problem.
In the mean whille I suggest that you try to interface the board via UART.
Best regards.
I'm sorry for late reply, I myself have tried to test the RFid click(SPI) with EasyPIC v7.
Unfortunately I ran on similar problem as you reported.
I'll need to make future investigation to find out what is the cause of the problem.
In the mean whille I suggest that you try to interface the board via UART.
Best regards.
Re: RFID Click PROBLEM
Thank you for your reply.
I have WIFI Click Plus on my portD connected via UART. Is i ok if i also use uart connection for RFID on portC or will they interfere?
I will tinker with it while I wait for your findings.
Cheers
I have WIFI Click Plus on my portD connected via UART. Is i ok if i also use uart connection for RFID on portC or will they interfere?
I will tinker with it while I wait for your findings.
Cheers
- dejan.odabasic
- mikroElektronika team
- Posts: 2649
- Joined: 30 Apr 2012 14:20
Re: RFID Click PROBLEM
Hello,
There should be no interferece between two different UART modules.
Best regards.
There should be no interferece between two different UART modules.
Best regards.
Re: RFID Click PROBLEM
Any news on my problem?
Also is there an example for RFID Click connected over UART?
Also can I use INT_O and INT_I pins instead of moving jumpers to position to use RX and TX pins?
Thank you
Also is there an example for RFID Click connected over UART?
Also can I use INT_O and INT_I pins instead of moving jumpers to position to use RX and TX pins?
Thank you
Re: RFID Click PROBLEM
bump
Is there any way to contact you about this matter other than via forum?
Is there any way to contact you about this matter other than via forum?
- dejan.odabasic
- mikroElektronika team
- Posts: 2649
- Joined: 30 Apr 2012 14:20
Re: RFID Click PROBLEM
Hello,
As soon as I make some concrete progress on you issue I'll share my solution with you.
Please have little patience.
Beside forum you can contact us on ticket support desk:
http://www.mikroe.com/support
Best regards.
As soon as I make some concrete progress on you issue I'll share my solution with you.
Please have little patience.
Beside forum you can contact us on ticket support desk:
http://www.mikroe.com/support
Best regards.
Re: RFID Click PROBLEM
I apologize.
Thank you for working on my problem.
Thank you for working on my problem.
- dejan.odabasic
- mikroElektronika team
- Posts: 2649
- Joined: 30 Apr 2012 14:20
Re: RFID Click PROBLEM
Hello,
Please try testing this project.
Just make sure that you short connect the RE1(SI0) with VCC pin like noted in comment header.
Best regards.
Please try testing this project.
Just make sure that you short connect the RE1(SI0) with VCC pin like noted in comment header.
Best regards.
Re: RFID Click PROBLEM
Hi,
I have the same problem as described here. Does anyone have a solution?
I have the same problem as described here. Does anyone have a solution?