We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi...could somebody describe the architecture of an 8051 microcontroller cpu?
thanks a lot...and where can i find more information about the cpu clock(how it works)?
same place,
What information do you require that is not in the so-called "bible" ?
The "bible" gives the basics - you must also read the Datasheet for specific details of the particular chip you're using.
Pages 10 and 11 of the first link discuss the CPU clock. They have a diagram of how an oscillator is connected to the part. And it has a discussion of the notion of instruction cycles.
The 8051 core usually measures execution in terms of instruction cycles. Individual instructions take between 1..3 instruction cycles to execute depending on how complex they are. (See the manual.) The original 8051 required 12 clocks to progress through one instruction cycle, so one instruction might take 12..36 clock cycles. With a 12MHz clock input, this means one instruction cycle takes one microsecond, which some people find convenient for timing.
More modern parts generally need fewer clocks per instruction cycle. 4 clocks/cycle is common, but I've also seen 6, 2, and 1 clock/cycle parts.
The clock input to peripherals like a timer, baud rate generator, and so on, is generally the oscillator frequency sent through some sort of input stage that lets you divide or "prescale" the clock to a lower frequency so that you get a more useful or larger range for your timers. Details vary in this area, so check the data sheet for your particular part.