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 CCS Technical Support

Fingerprint sensor RS232 communication
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sohailkhanonline



Joined: 06 Mar 2008
Posts: 35
Location: pakistan

View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger

PostPosted: Tue Apr 15, 2008 4:01 am     Reply with quote

Another point is this that you can never achieve baud rate of 9600 with 4 Mhz clock
I prefer you use hardware UART
transmit RC6
receive RC7
then write the interrupt service routine and in that routing use getc for taking variable from buffer and assign it immediately
make a user defined function where you can use
while (TRUE)
{
and when all the characters are recieved in you string define a break statement
}

I prefer you use 20Mhz HS oscillator
and MAX232 in b/w ur uC & finger print module
I hope it helps
_________________
sohail khan
Depner



Joined: 15 Apr 2008
Posts: 4
Location: Hungary

View user's profile Send private message

PostPosted: Tue Apr 15, 2008 4:09 am     Reply with quote

Hi sohailkhanonline,
I'm already using Hardware UART. But if I'll use Max3232, then I must switch to sw, because hw. can not invert. As far as I know that's needed for the level translators.
Thanks for the tip for the Xtal. Now this is just a demo board, on the final application then I'll use 20 Mhz xtal.
Ttelmah
Guest







PostPosted: Tue Apr 15, 2008 4:34 am     Reply with quote

Er.
The serial hardware lines are _always_ inverted. They correctly give the standard signals to feed buffer chips like the MAX3232. This is the standard for hardware UART lines.
What they can't do is go to the non standard +ve logic mode, needed if you feed an RS232 line _without_ a buffer.

Best Wishes
Depner



Joined: 15 Apr 2008
Posts: 4
Location: Hungary

View user's profile Send private message

Working...
PostPosted: Wed Apr 16, 2008 12:20 am     Reply with quote

So, it's working. No level converters, no nothing. Very Happy It _is_ TTL levels. I jumped on it with an oscilloscope, and there were some really beautifull 5 V signals.
The problem was a little wiring issue... Twisted Evil I tried it with a tiny code, it is recognising the fingerprints very good!
Now comes the programming. This is a very interesting project. I will read through the forum, 'cause I've got some questions about the rs-232 communication. If I won't find the answers, I will ask for your help a little bit.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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