Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Electronic Equipment > Microcontrollers 8bit > Re: Pic16f916 q...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 11 Topic 757 of 862
Post > Topic >>

Re: Pic16f916 question; External clock on Timer0

by Ian Malcolm <abuse@[EMAIL PROTECTED] > Nov 26, 2006 at 02:35 PM

la_panza wrote:
> Klaus (DK) ha scritto:
> 
> Hi , thanks for answering
> 
> 
>>On the other hand, please explain why your 13.56 (I guess it is MHz) is
>>so im****tant for you. What is the needed resolution of that clock? Any
>>other relevant information could be handy in order to help you.
>>Regards
>>Klaus
> 
> 
> I'm designing an ISO 15693 vicinity card reader, the unit is composed
> by a PIC16F and an analog front-end IC that drives the antenna and
> demodulates signals coming from the cards.
> 
> The analog front-end IC has its own 13.56 crystal, the electromagnetic
> field generated by the antenna supplies power to the cards, but the
> 13.56 MHZ field is also used as master clock for the card's internal
> logic.
> 
> All the card timings during data reception and transmission is based on
> a 18.88 microsecond time unit, (13.56 MHZ divided by 256). the PIC16F
> has the duty of composing data packets, send them with the right
> timing, as well as decode response packets coming from the cards.
> 
> The PIC has a 20 MHZ quartz, it has other tasks and must be kept quite
> fast,
> Now, f I plan to use...say... Timer2 to generate the 18.88 Usec. timer
> tick, the value to set on Timer2 period register is 94.4; Since it's
> not possible to give such a value to a register, I fear that even a
> minimum timing error may propagate along the data frame and make the
> coding / decoding fail... Ideal solution would be to use the SAME clock
> supplied to the cards as a timer clock!
> 
> Hope the explanation is clear enough...
> 
> Thankyou for interest  ....
> 
> Adolfo (****denone, IT)
> 
> 
> 
> 
> The cards get power by inductively
> 
> 
>>la_panza skrev:
>>
>>>Hello all, I need to obtain a timer tick of 18.88 microseconds on a 20
>>>MHZ clocked PIC16F
>>>
>>>On the same board I also have a 13.56 clock, but for speed problems I
>>>neet to keep the processor clocked at 20 MHZ
>>>
>>>This 13.56 MHZ signal, divided by 256 is exactly the timer tick I want,
>>>so I thought to feed this signal as an external clock for Timer'0
>>>(T0ckl).
>>>
>>>On the datasheet though, I've read some warning and limitations about
>>>the use of Timer0 with external clock, I did not clearly understand if
>>>in a case like mine I'm allowed to do it...
>>>
>>>who can help please?
>>>
> 
> 
13.56 * 3 / 2 = 20.34

Overclocking the PIC this much should be possible, Substitute a PLL 
based clock for the PIC's crystal, locked to 1.5 * the front end clock.
Your timer 2 period register could now be loaded with 96. (I haven't 
checked the data sheet, I just scaled your values . . .)


-- 
Ian Malcolm.   London, ENGLAND.  (NEWSGROUP REPLY PREFERRED)
ianm[at]the[dash]malcolms[dot]freeserve[dot]co[dot]uk [at]=@[EMAIL PROTECTED]
 [dash]=- & 
[dot]=.
*Warning* SPAM TRAP set in header, Use email address in sig. if you must.
 




 11 Posts in Topic:
Pic16f916 question; External clock on Timer0
"la_panza" <  2006-11-25 02:25:05 
Re: Pic16f916 question; External clock on Timer0
"Klaus (DK)" &l  2006-11-25 21:47:48 
Re: Pic16f916 question; External clock on Timer0
"la_panza" <  2006-11-26 02:27:12 
Re: Pic16f916 question; External clock on Timer0
Ian Malcolm <abuse@[EM  2006-11-26 14:35:52 
Re: Pic16f916 question; External clock on Timer0
"la_panza" <  2006-11-26 07:26:37 
Re: Pic16f916 question; External clock on Timer0
"martin.shoebridge&q  2006-11-26 16:37:41 
Re: Pic16f916 question; External clock on Timer0
"la_panza" <  2006-11-26 15:13:51 
Re: Pic16f916 question; External clock on Timer0
"Klaus (DK)" &l  2006-11-27 17:57:56 
Re: Pic16f916 question; External clock on Timer0
"la_panza" <  2006-11-27 10:30:26 
Re: Pic16f916 question; External clock on Timer0
"Klaus (DK)" &l  2006-11-27 23:16:16 
Re: Pic16f916 question; External clock on Timer0
"la_panza" <  2006-11-27 14:38:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 21:06:30 CST 2008.