CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PIC 18F4620 + RFID reader TTL

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Knight_FlyCn



Joined: 10 May 2013
Posts: 16
Location: Việt Nam

View user's profile Send private message AIM Address

PIC 18F4620 + RFID reader TTL
PostPosted: Sun May 19, 2013 11:30 am     Reply with quote

I have a project. Read tag in RFID and send to PIC 18F4620. After pic send to PC. See by terminal.
I connect pic and reader so by pictuer
[img][/img]

Who can help me code ?. I coding but don't work
_________________
Thinh
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Sun May 19, 2013 7:08 pm     Reply with quote

Hi,

Unless you show us what you've already done, it's not very likely that you'll receive any help. This is a 'help you' forum, not a 'do it for you forum'!

As shown, you have a serious hardware problem. The Tx output of the RFID module, and the Tx output of the USB-to-Serial converter IC are wired to the same Rx input on the PIC. That won't work. If you need two serial ports, you need to decide which serial data source is the higher priority, and use the hardware UART on the PIC for that source. The other source can use a software serial port.

A couple of comments:

1. You really need to break your project up into manageable 'chunks'. For example, get your serial communications working with the PC first before you attempt to get the RFID reader working. That PL2303 is really old, and it's got a really high pin count (which makes wiring mistakes more likely). Consider a simpler, more modern equivalent, or use RS232 with a MAX232 instead.

2. Post a link to your RFID reader. Clearly, you've got some hardware issues to resolve. Don't keep us in the dark about the actual hardware you are using.

3. Do you know that your PIC is actually running? Can you blink an LED at a predictable rate?

4. Post the code you've got so far!

John
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group