8051 out put pin frequency

Status
Not open for further replies.

getavinks@gmail.com

Member level 1
Joined
Jun 5, 2012
Messages
39
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
1,473
hello, i am using atmel 8051 with 11.0592 mhz crystal.
what will be the frequency when i make a pin high- low;

P1.0 = 1 ;
p1.0 = 0 ;

what will the frequency of p1.0 pin?
 

hello, i am using atmel 8051 with 11.0592 mhz crystal.
what will be the frequency when i make a pin high- low;

P1.0 = 1 ;
p1.0 = 0 ;

what will the frequency of p1.0 pin?

If you used 12MHz crystal the max frequency would be around 500kHz, with 11MHz it will be roughly 11/12 of that estimation ..
:wink:
IanP
 
Reactions: DrWhoF

    DrWhoF

    Points: 2
    Helpful Answer Positive Rating
If you used 12MHz crystal the max frequency would be around 500kHz, with 11MHz it will be roughly 11/12 of that estimation ..
:wink:
IanP


Thanks for your response.

How to calculate this frequency?
 

Thanks for your response.

How to calculate this frequency?

The original 8051 core runs at 12 clock cycles per machine cycle, with most instructions executing in one or two machine cycles.
So, one machine cycle takes 1 micro-sec if the 8051 is operating from a 12 MHz clock.
SET and CLR istructions are executed in one machine cycle.

1us+1us=2us ====> f=500kHz

:wink:
IanP
 
Reactions: DrWhoF

    DrWhoF

    Points: 2
    Helpful Answer Positive Rating
Execution time

The time needed to execute any particular instruction is determined by the formula



T is equal to C times 12 divides F

C is the number of cycles to execute the program

F is the frequency of the crystal
 
Reactions: DrWhoF

    DrWhoF

    Points: 2
    Helpful Answer Positive Rating
see 8051 has a DIVIDE by 12 circuit built inside. So first of all divid ur clk freq by 12 and then inverse gives execution time for each cycle.

12MHz/12 = 1MHz

Execution time = 1/1MHz = 1uS

so it will take 1uS for setting bit and then 1uS for reset bit

Hence 2uS

Hence frq = 1/2uS = 500kHz


HOPE IT HELPED !!!
 
Thanks it was help full
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…