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

125Khz clock for RFID

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








125Khz clock for RFID
PostPosted: Sat Apr 21, 2007 4:23 am     Reply with quote

I am modifying 125Khz RFID reader for Proximity card,
The original design of the reader circuit is quite simple, it use CMOS 4069 inverter IC to demodulated the signal to digital.
For the clock 125Khz, it is derived from 8Mhz crystal , and divide down to 125Khz by 74HC393 .

I have success decode the read data using 16F628A.
In order to save the crystal and 74HC393, I like to use 16F628A to generate the 125khz clock as well.
I use hardware PWM to generate 125khz, 50% duty , a nice square wave is generate at pin_b3.

However, when this PWM clock signal is feed to MIC4429 to drive antenna, the RFID detection range reduce by half, compare by using crystal divide clock source.
Also, there is more noice appear on 4069 when using the 16F628A PWM clock source.

Any special requirement for RFID clock? It shall be very straight forward as I think, but the two different clock source signal is given 2 different result.
They look almost identical under osciloscope. I have check grounding and other like decoupling cap, but not helping at all.

The 16F628 is using 4Mhz internal ocsilator. Will this be a problem?

Pls help, I am almost cracy about this problem.
I will post schematic if needed, or let me know if you need more info.

Thank you.

Code:
//My code to generate 125Khz 50%duty
#include <16F628A.h>
#FUSES NOWDT, INTRC_io, PUT, NOPROTECT, NOBROWNOUT, NOMCLR, NOLVP, NOCPD
#use delay(clock=4000000)

#use fast_io(B)

void main()
{

   Set_tris_b(0);
   setup_timer_2(T2_DIV_BY_1,7,1);
   setup_ccp1(CCP_PWM);
   set_pwm1_duty(4);

   while(1)
   {

   }
}
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Sat Apr 21, 2007 9:40 am     Reply with quote

Quote:

The original design of the reader circuit is quite simple, it use CMOS 4069 inverter IC to
demodulated the signal to digital.

Warning. To be able to work as demodulator, the CMOS 4069 must be of the unbuffered
type (4069UB)
It is not the same as the regular one without the UB letters.


Humberto
Victor



Joined: 27 Oct 2003
Posts: 12

View user's profile Send private message

PostPosted: Sat Apr 21, 2007 8:54 pm     Reply with quote

Sorry, previous post was made by me. (Forgot to login when made post)

I am using the correct version of 4069.

Instead, it is work, but when I use PWM as 125Khz clock source, there is unknown noise on 4069, and cause reduce of range.

Is there any different of 125Khz (PWM 50% ), and 8Mhz clock divide from 7hHC393?

When scope them, it look identical , both is same TTL level, but it give 2 different result.

Any thing need to take precaution? Please give me some hints.
Thank you.
Ttelmah
Guest







PostPosted: Sun Apr 22, 2007 7:20 am     Reply with quote

The 74HC outputs, are specified to pull 'down' to 0.33v, for loads up to 7.8mA. The PIC outputs, only specify 0.6v at the same current. However the input circuitry of the driver you are using, should not be affected by this. Do you have a 'F628', or a 'LF628'?. The latter has significantly slower transition times on the outputs (nearly double), which might have an effect.

Best Wishes
Victor



Joined: 27 Oct 2003
Posts: 12

View user's profile Send private message

PostPosted: Sun Apr 22, 2007 9:06 am     Reply with quote

I am using 16F628A, INTRC_IO.

One question, is the 125Khz clock for RFID must be a 50.00% duty cycle?
I am worry the generate PWM is slight phase shift , or not perfect 50% duty, and cause distorion, later pickup by the antenna itself, and cause internal oscilation.

I am almost give up about this, worst case I will use 8Mhz crystal + 74HC393 to generate the 125Khz, which is tested no problem.

I taught I can save the 2 components in the designs, but seem like I am wrong in this case.

Thank you.
Tom-H-PIC



Joined: 08 Sep 2003
Posts: 105
Location: New Castle, DE

View user's profile Send private message

schematic?
PostPosted: Sun Apr 22, 2007 11:23 pm     Reply with quote

Hello
I'm vary interested in this is there a schematic reference for this circuit on the web some place?
Thanks
Tom
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