3
oscillator Circuit : - Any micro controller requires circuitry that generates the clock pulses by which all internal operations are synchronized. C R Y S T A L C 1 2 2 p F C 2 2 2 p F 12MHz PIN 18(XTA PIN 19 ( X Fig. Oscillator Ci rcuit  In AT 89C51 two pins viz.pin no 18 &19 ( XTAL1 & XTAL2 ) are provided for connecting a resonant network to form an oscillator. A quartz crystal is used with ceramic capacitors as shown in above circuit diagram. The crystal frequency is the b asic internal frequency of the micro controller. The range of the crystal that can be connected to the micro controller is 1Mhz to 16 Mhz. Different crystals are available such as the Quartz, Rochelle salts, and Tourmaline etc. We have preferred to use Quartz crystal because it is inexpensive and readily available. C1 and C2 are between 10pF to 40 pF. The capacitors C1, C2 are used for stable frequency operation i.e. in the condition where there is high noise and humidity as in the case of factories. Due to this the oscillator frequency can alter, for the suppression or do we can sa y deletion of this the two capacitor are used for stable frequency.

8051 oscillator ckt diagram and description

Embed Size (px)

Citation preview

Page 1: 8051 oscillator ckt diagram and description

7/29/2019 8051 oscillator ckt diagram and description

http://slidepdf.com/reader/full/8051-oscillator-ckt-diagram-and-description 1/3

oscillator Circuit : -

Any micro controller requires circuitry that generates the clock pulses by which

all internal operations are synchronized.

C R Y S T A L

C 1 2 2 p F C 2 2 2 p F

1 2 M H z

P I N 1 8 ( X T A

P I N 1 9 ( X

F i g . O s c i l l a t o r C i r c u i t

 

In AT 89C51 two pins viz.pin no 18 &19 ( XTAL1 & XTAL2 ) are provided for connecting a resonant network to form an oscillator. A quartz crystal is used with ceramic

capacitors as shown in above circuit diagram. The crystal frequency is the basic internal

frequency of the micro controller. The range of the crystal that can be connected to themicro controller is 1Mhz to 16 Mhz. Different crystals are available such as the Quartz,

Rochelle salts, and Tourmaline etc. We have preferred to use Quartz crystal because it is

inexpensive and readily available.

C1 and C2 are between 10pF to 40 pF. The capacitors C1, C2 are used for stable

frequency operation i.e. in the condition where there is high noise and humidity

as in the case of factories. Due to this the oscillator frequency can alter, for the

suppression or do we can say deletion of this the two capacitor are used for 

stable frequency.

Page 2: 8051 oscillator ckt diagram and description

7/29/2019 8051 oscillator ckt diagram and description

http://slidepdf.com/reader/full/8051-oscillator-ckt-diagram-and-description 2/3

The 8051 oscillator & clock

Pins XTAL1 & XTAL2 are provided for connecting a resonant network to formoscillator. Typically a quartz crystal and capacitors are employed. the crystal

frequency is the basic internal clock frequency of the microcontroller. Themanufacturers make available 8051 designs that can run at specified maximum& minimum frequencies, typically 1 Mhz to 16 Mhz. Minimum frequencies implythat some internal memories are dynamic & must always operate above aminimum frequency or data will be lost.

P2 P1 P2 P1 P2 P1 P2 P1 P2 P1 P2 P1 P2 P1

State 1 State 2 State 3 State 4 State 5 State 6

One Machine Cycle

 ALE

Serial data communication needs often dictate the frequency of the oscillator because of the requirement that internal counters must divide the basic clock rateto yield standard communication baud rates. If the basic clock frequency is notdivisible without a reminder, then the resulting communication is not standard.

The smallest interval of time to accomplish any simple instruction or part of complex instruction is called as the machine cycle. The machine cycle is madeup of six states. A state is the basic time interval for discrete operations of themicrocontroller, such a fetching an opcode byte, executing an opcode or writingdata byte. Two oscillator pulses define each state.

Program instruction may require one, two, or four machine cycles to be executed,depending upon the type of instruction. Instructions are fetched & executed bythe microcontroller automatically beginning with the instruction located at ROMmemory address 0000h at the time the microcontroller is first reset.

To calculate the time any particular instruction will take to be executed, find thenumber of cycles C. The time to execute that instruction is then found bymultiplying C by 12 & dividing the product by the crystal frequency.

C * 12dT = _________ 

Crystal Freq.

Page 3: 8051 oscillator ckt diagram and description

7/29/2019 8051 oscillator ckt diagram and description

http://slidepdf.com/reader/full/8051-oscillator-ckt-diagram-and-description 3/3