Page 1 of 1

how to interface rfid-idr-232n with PIC18f4520

PostPosted: Sat Oct 27, 2012 2:10 pm
by wayne
i has a complete set of microchip development tools, can i directly connect the rs232 from rfid to pic board without max232 chip between of them? as i know there have build in max232 in development tool. beside, i had written a C language programming in pic in order to read the ID num in LCD, i write a USART program which to receive data from rfid but it totally cant work! after i doing some research, i found most of you are using UART. can you recommend some useful C code in order to read the ID? thank a lot for your big helping hand!

Re: how to interface rfid-idr-232n with PIC18f4520

PostPosted: Sun Oct 28, 2012 8:16 pm
by gadgetng
wayne WROTE:i has a complete set of microchip development tools, can i directly connect the rs232 from rfid to pic board without max232 chip between of them? as i know there have build in max232 in development tool. beside, i had written a C language programming in pic in order to read the ID num in LCD, i write a USART program which to receive data from rfid but it totally cant work! after i doing some research, i found most of you are using UART. can you recommend some useful C code in order to read the ID? thank a lot for your big helping hand!

Isn't there is a DIY project on this? Yes, there is one - PR8B.
http://www.cytron.com.my/viewProduct.php?pcode=PR8-B&name=RFID%20:%20Read%20&%20Display%20V2010

Re: how to interface rfid-idr-232n with PIC18f4520

PostPosted: Mon Oct 29, 2012 8:59 pm
by wayne
thank for your reply. i wanna to calculate delay cycle in PIC18. for example: delay10TCYx(4) = 40 cycle, how do i make the delay cycle become 43 cycle? is it add three more Nop() code to become 43 cycle? can you help me to check UART in 9600 baud rate cycle setting where TXBitUART = 92 cycle delay, RXHalfBit = 43 cycle and RXBitUART = 90 cycle. i am a new user in this PIC, sorry about i always ask some stupid question. thank you for your help!