RFID Click PROBLEM

General discussion on mikroElektronika development boards.
Post Reply
Author
Message
Prsli
Posts: 14
Joined: 22 Oct 2013 09:57

RFID Click PROBLEM

#1 Post by Prsli » 07 Nov 2013 19:07

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
Last edited by Prsli on 13 Nov 2013 11:14, edited 1 time in total.

Prsli
Posts: 14
Joined: 22 Oct 2013 09:57

Re: RFID Click

#2 Post by Prsli » 11 Nov 2013 18:27

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;
}
}
}

Prsli
Posts: 14
Joined: 22 Oct 2013 09:57

Re: RFID Click

#3 Post by Prsli » 11 Nov 2013 19:13

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)

Prsli
Posts: 14
Joined: 22 Oct 2013 09:57

Re: RFID Click PROBLEM

#4 Post by Prsli » 13 Nov 2013 21:33

Bump

Prsli
Posts: 14
Joined: 22 Oct 2013 09:57

Re: RFID Click PROBLEM

#5 Post by Prsli » 20 Nov 2013 10:02

Is anyone from support department reading these forums?

User avatar
dejan.odabasic
mikroElektronika team
Posts: 2649
Joined: 30 Apr 2012 14:20

Re: RFID Click PROBLEM

#6 Post by dejan.odabasic » 21 Nov 2013 19:42

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.

Prsli
Posts: 14
Joined: 22 Oct 2013 09:57

Re: RFID Click PROBLEM

#7 Post by Prsli » 22 Nov 2013 10:23

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

User avatar
dejan.odabasic
mikroElektronika team
Posts: 2649
Joined: 30 Apr 2012 14:20

Re: RFID Click PROBLEM

#8 Post by dejan.odabasic » 22 Nov 2013 12:12

Hello,

There should be no interferece between two different UART modules.

Best regards.

Prsli
Posts: 14
Joined: 22 Oct 2013 09:57

Re: RFID Click PROBLEM

#9 Post by Prsli » 27 Nov 2013 17:27

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

Prsli
Posts: 14
Joined: 22 Oct 2013 09:57

Re: RFID Click PROBLEM

#10 Post by Prsli » 03 Dec 2013 18:40

bump

Prsli
Posts: 14
Joined: 22 Oct 2013 09:57

Re: RFID Click PROBLEM

#11 Post by Prsli » 08 Dec 2013 18:01

bump
Is there any way to contact you about this matter other than via forum?

User avatar
dejan.odabasic
mikroElektronika team
Posts: 2649
Joined: 30 Apr 2012 14:20

Re: RFID Click PROBLEM

#12 Post by dejan.odabasic » 09 Dec 2013 18:29

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.

Prsli
Posts: 14
Joined: 22 Oct 2013 09:57

Re: RFID Click PROBLEM

#13 Post by Prsli » 10 Dec 2013 00:03

I apologize.
Thank you for working on my problem.

User avatar
dejan.odabasic
mikroElektronika team
Posts: 2649
Joined: 30 Apr 2012 14:20

Re: RFID Click PROBLEM

#14 Post by dejan.odabasic » 17 Dec 2013 19:39

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.

wuu
Posts: 115
Joined: 24 Mar 2008 00:48

Re: RFID Click PROBLEM

#15 Post by wuu » 30 Jul 2023 17:30

Hi,

I have the same problem as described here. Does anyone have a solution?

Post Reply

Return to “Development Boards”