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

mt8870

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



Joined: 04 Jun 2008
Posts: 23

View user's profile Send private message

mt8870
PostPosted: Fri Jul 13, 2012 5:37 am     Reply with quote

Hi,

I want to use MT8870 IC to decode DTMF tones. This circuit need 3.5795MHz XTAL. This signal can be generated by PWM of a micro?
I want to use PIC18F25k20.

Thank you.
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Fri Jul 13, 2012 6:35 am     Reply with quote

Usually on the datasheet of your PIC you will see the Frequency range for the PWM.

There might be other ways... maybe using regular I/O ... you will have to time things carefully.

G
_________________
CCS PCM 5.078 & CCS PCH 5.093
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Fri Jul 13, 2012 11:58 am     Reply with quote

Quote:

This circuit need 3.5795MHz XTAL


you already HAVE your answer
temtronic



Joined: 01 Jul 2010
Posts: 9221
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Jul 13, 2012 12:56 pm     Reply with quote

one option...

You could use the 3.5795 xtal as the 'master' clock for the PIC and use the PLL ( if the PIC has it) to internally run the PIC faster.

Since I don't know what else the PIC has to do it is a viable option. I use 4MHz xtals all the time on 4550 projects...
...and my trusty Model III runs at 2Mhz!
It all depends on the scope of the project.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 13, 2012 1:14 pm     Reply with quote

Quote:

I want to use MT8870 IC to decode DTMF tones. This circuit need
3.5795MHz XTAL. This signal can be generated by PWM of a micro?
I want to use PIC18F25k20.

What is your PIC oscillator frequency ?
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Mon Jul 16, 2012 12:53 pm     Reply with quote

PCM and Temtronic are steering you in a good direction.

If you use an external 3.3579545 mhz xtal and the PLL in the 18F family PIC
it will be the osc source for the DTMF decoder -

You have a #use delay of (14318181)
that results in low enough RS232 clock errors with BRG16 asserted.

Then you just feed the osc out pin of your pic to the osc IN pin of the DTMF detector chip. all in all - not so bad a way to handle it.

As to the timer periods that this provides - it is less sweet, in that when divided down from Fosc - you are stuck with (multiples &&|| fractions) of appx 7millisecs.
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