Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to use clock oscillator?

Status
Not open for further replies.

hemnath

Advanced Member level 3
Advanced Member level 3
Joined
Jun 24, 2012
Messages
702
Helped
61
Reputation
120
Reaction score
57
Trophy points
1,308
Location
Chennai
Visit site
Activity points
6,589
I have attached a circuit. Please go through it.

Here Q1 output is connected to MCU pin RA5. Why it is connected? How the crystal is configured?

Im using CCS C compiler. Normally i use the default line when crystal is connected to RA4 and RA5.
#use delay(clock=20000000)

But here Clock is connected to only RA5. Please help how to use it.

Thanks in advance
 

Attachments

  • Circuit.png
    Circuit.png
    45.6 KB · Views: 63
Last edited:

Hi,

The device ASF1 is not a crystal, it is an External Oscillator, a crystal and transistors/logic gates etc creating a waveform.
However what frequency that device is producing is not given

So you need to set the Config statement for EXT OSC.

However for the devices shown on that diagram wonder why the 690s Internal oscillator is not being used, its more that accurate enough.
 

I want to use external oscillator. Attached is the datasheet. I want to use 20Mhz.

How to configure in CCS C compiler. Please help
 

Attachments

  • G2_Datasheet.pdf
    906.9 KB · Views: 50

Hi,

Yes, that chip looks suitable, though not sure in CCS C how you specify the config statements, #pragma ?
Believe you need to specify EC MODE.

Assuming you are looking to build that circuit using the SHT1x sensor, they are probably the most accurate temp/hum chips around but they are expensive and small and they can easily get damaged, as I found out the hard way.

You might want to consider the much cheaper DTH11 / 22 modules which are more robust in their construction, though not as accurate.
 

Thank you very much for the suggestion.

Now im using DHT11 module. Is it possible to simulate DHT11 in proteus?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top