Saturday, 14 December 2013

Microprocessor Architecture used in mobile phone

in this article and in the next article  you will learn about memory and addresses of a memory location , in which information, data, are store 

The Design of a Memory Chip

Using the RD and WR controls we can determine the direction of flow either into or out of memory. Then using the appropriate Enable input we enable an individual memory register.

What we have just designed is a memory with 4 locations and each location has 4 elements (bits). This memory would be called 4 X 4 [Number of location X number of bits per location].

The Enable Inputs

How do we produce these enable line?
Since we can never have more than one of these enables active at the same time, we can have them encoded to reduce the number of lines coming into the chip.
These encoded lines are the address lines for memory. 

The Design of a Memory Chip

So, the previous diagram would now look like the following:

The Design of a Memory Chip

Since we have tri-state buffers on both the inputs and outputs of the flip flops, we can actually use one set of pins only.
The chip would now look like this:

the steps of writing into Memory

What happens when the programmer issues the STA instruction?
The microprocessor would turn on the WR control (WR = 0) and turn off the RD control (RD = 1).
The address is applied to the address decoder which generates a single Enable signal to turn on only one of the memory registers.
The data is then applied on the data lines and it is stored into the enabled register.

Dimensions of Memory

Memory is usually measured by two numbers: its length and its width (Length X Width).
The length is the total number of locations.
The width is the number of bits in each location.

The length (total number of locations) is a function of the number of address lines.
# of memory locations = 2( # of address lines)

So, a memory chip with 10 address lines would have 
210 = 1024 locations (1K)

Looking at it from the other side, a memory chip with 4K locations would need 
Log2 4096=12 address lines

The 8085 and Memory

The 8085 has 16 address lines. That means it can address 
216 = 64K memory locations. 
Then it will need 1 memory chip with 64 k locations, or 2 chips with 32 K in each, or 4 with 16 K each or 16 of the 4 K chips, etc.

how would we use these address lines to control the multiple chips?

Chip Select

Usually, each memory chip has a CS (Chip Select) input. The chip will only work if an active signal is applied on that input.

To allow the use of multiple chips in the make up of memory, we need to use a number of the address lines for the purpose of “chip selection”.
These address lines are decoded to generate the 2n necessary CS inputs for the memory chips to be used.

Chip Selection Example

Assume that we need to build a memory system made up of 4 of the 4 X 4 memory chips we designed earlier.

We will need to use 2 inputs and a decoder to identify which chip will be used at what time. 

The resulting design would now look like the one on the following slide.

Chip Selection Example



for further detail and any query you can mail on muradalishah57@yahoo.com or can call on +923329473428, 
https://www.google.com.pk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCwQFjAA&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMicroprocessor&ei=ZXWtUveFJozN7Abq3YHQDw&usg=AFQjCNELdGXZS5JPzHDs9j6hJNdWlSLE-A&sig2=Q81X9sIqEa1ta5p6Tc37CA&bvm=bv.57967247,d.ZGU

Microprocessor Architecture(mobile)

as i discuss in the previous post about memory element and various topic that are releated to microprocessor architecture that is use in htc ,android and and many cell phones leptops etc microprocessor is the main part of any operating system and other words it is the control, basic of a mobile , 

The Basic Memory Element

The basic memory element is similar to a D latch.
This latch has an input where the data comes in. It has an enable input and an output on which data comes out.

The Basic Memory Element

However, this is not safe.
Data is always present on the input and the output is always set to the contents of the latch.
To avoid this, tri-state buffers are added at the input and output of the latch.

The Basic Memory Element

The WR signal controls the input buffer.
The bar over WR means that this is an active low signal.
So, if WR is 0 the input data reaches the latch input.
If WR is 1 the input of the latch looks like a wire connected to nothing.
The RD signal controls the output in a similar manner.

A Memory “Register”

If we take four of these latches and connect them together, we would have a 4-bit memory register

A group of memory registers

Expanding on this scheme to add more memory registers we get the diagram to the right.

A group of Memory Registers

If we represent each memory location (Register) as a block we get the following










Microprocessor elements

We have already discussed the general purpose registers, the Accumulator, and the flags.

The Internal Architectureo

The Program Counter (PC)
This is a register that is used to control the sequencing of the execution of instructions.
This register always holds the address of the next instruction.
Since it holds an address, it must be 16 bits wide.
The Stack pointer
The stack pointer is also a 16-bit register that is used to point into memory. 
The memory this register points to is a special area called the stack.
The stack is an area of memory used to hold data that will be retreived soon.
The stack is usually accessed in a Last In First Out (LIFO) fashion.

Externally Initiated Operations

External devices can initiate (start) one of the 4 following operations:
Reset 
All operations are stopped and the program counter is reset to 0000.
Interrupt
The microprocessor’s operations are interrupted and the microprocessor executes what is called a “service routine”.
This routine “handles” the interrupt, (perform the necessary operations). Then the microprocessor returns to its previous operations and continues.
Ready
The 8085 has a pin called RDY. This pin is used by external devices to stop the 8085 until they catch up.
As long as the RDY pin is low, the 8085 will be in a wait state.
Hold
The 8085 has a pin called HOLD. This pin is used by external devices to gain control of the busses.
When the HOLD signal is activated by an external device, the 8085 stops executing instructions and stops using the busses.
This would allow external devices to control the information on the busses. Example DMA.

The Design and Operation of Memory

Memory in a microprocessor system is where information (data and instructions) is kept. It can be classified into two main types:
Main memory (RAM and ROM) 
Storage memory (Disks , CD ROMs, etc.)

The simple view of RAM is that it is made up of registers that are made up of flip-flops (or memory elements). 
The number of flip-flops in a “memory register” determines the size of the memory word.
ROM on the other hand uses diodes instead of the flip-flops to permanently hold the information.

Accessing Information in Memory


For the microprocessor to access (Read or Write) information in memory (RAM or ROM), it needs to do the following:
Select the right memory chip (using part of the address bus).
Identify the memory location (using the rest of the address bus).
Access the data (using the data bus).

Tri-State Buffers

An important circuit element that is used extensively in memory.
This buffer is a logic circuit that has three states:
Logic 0, logic1, and high impedance.
When this circuit is in high impedance mode it looks as if it is disconnected from the output completely.


The Tri-State Buffer

This circuit has two inputs and one output.
The first input behaves like the normal input for the circuit.
The second input is an “enable”.
If it is set high, the output follows the proper circuit behavior.
If it is set low, the output looks like a wire connected to nothing.

The Basic Memory Element

The basic memory element is similar to a D latch.
This latch has an input where the data comes in. It has an enable input and an output on which data comes out.
                                     

the remaining part of the topic will be post in the new article very soon , be in tough with this blog to read more .............





Microprocessor Architecture(used in mobile )

In this post i will cover all those internal architecture of an microprocessor that is the building block of all mobiles, egg htc , android etc anyone can study it in short but explanatory form , not only mobiles, but also computers, leptopes having this basic, which is describe below, in this post i discussed a lilttle about microprocessor but will cover and explain all knowledge about this in different post.
The microprocessor can be programmed to perform functions on given data by writing specific instructions into its memory.
The microprocessor reads one instruction at a time, matches it with its instruction set, and performs the data manipulation specified.
The result is either stored back into memory or displayed on an output device.

The 8085 Architecture

The 8085 uses three separate busses to perform its operations
The address bus.
The data bus.
The control bus.
16 bits wide (A0 A1…A15)
Therefore, the 8085 can access locations with numbers from 0 to 65,536. Or, the 8085 can access a total of 64K addresses.

“Unidirectional”.
Information flows out of the microprocessor and into the memory or peripherals.

When the 8085 wants to access a peripheral or a memory location, it places the 16-bit address on the address bus and then sends the appropriate control signals
Data bus
8 bits wide (D0 D1…D7)
“Bi-directional”.
Information flows both ways between the microprocessor and memory or I/O.

The 8085 uses the data bus to transfer the binary information.

Since the data bus has 8-bits only, then the 8085 can manipulate data 8 bits at-a-time only
Control bus
There is no real control bus. Instead, the control bus is made up of a number of single bit control signals
operation type in microprocessor
All of the operations of the microprocessor can be classified into one of three types:
Microprocessor Initiated Operations
Internal Operations
Peripheral Initiated Operations
Microprocessor initiated operation
These are operations that the microprocessor itself starts.
These are usually one of 4 operations:
Memory Read
Memory Write
I/O Read (Get data from an input device)
I/O write (Send data to an output device)
It is important to note that the microprocessor treats memory and I/O devices the same way.
Input and output devices simply look like memory locations to the microprocessor.
For example, the keyboard may look like memory address A3F2H. To get what key is being pressed, the microprocessor simply reads the data at location A3F2H.

The communication process between the microprocessor and peripheral devices consist of the following three steps:
Identify the address.
Transfer the binary information.
Provide the right timing signals.
Red operation
To read the contents of a memory location, the following steps take place:
The microprocessor places the 16-bit address of the memory location on the address bus.
The microprocessor activates a control signal called “memory read” which enables the memory chip.
The memory decodes the address and identifies the right location.
The memory places the contents on the data bus.
The microprocessor reads the value of the data bus after a certain amount of time.
internal data operation
The 8085 can perform a number of internal operations. Such as: storing data, Arithmetic & Logic operations, Testing for condition, etc.
To perform these operations, the microprocessor needs an internal architecture similar to the following:
                                             

Sunday, 24 November 2013

HTC mobile tracking

WHER'S MY DROID
                      IF u lost your HTC mobile and you want to find it , use Android stolen phone apps, this mobile apps is suitable for those area where mobile phone stolen ratio is greater, and also use for tracking purposes , that is HTC with this apps can track easily .it was develop on 2009 and gain much popularity with in year 
HOW TO INSTALL WHER'S MY DROID
                      First download this apps ,and install it in your phone, you do a number of thing in it , you can locate your mobile either by ring setup or GPS setup
RING SETUP
                     By ring setup you can make your phone ring remotely by sending a special text number that you have chosen already in ring setup ,the device will start ringing and you will  hear it.
                                               
GPS SETUP 
                   This is another feature of WHERE'S MY DROID apps , in which you will send a word that you have chosen already in advance while GPS SETUP, to the phone , then you will receive four message back to the phone from which you send the chosen word.
the first text will acknowledge you that GPS is working 
the 2nd text will show detail  on the coordination of your phonlle 
the 3rd text will show you a Google map to the phone location   , which will help you in  finding the apps 
the 4rth text will contain some address which is nearest to the stolen mobile .
                        For this action you have to use another Android phone .
                                            



http://www.ztunnel.com/index.php/1010110A/939cfc66f4a008b426ba8f1de2bf4e941b6be055499573046fb3424c8d851138a5d313ee62ba0d1c15652

Friday, 31 May 2013

Circuit diagram of Mobile phone charger

Mobile charger

this is a simple mobile  charger circut daigram , any one can make it if these circuts element are available 
mobile phone charger is just like a step down transformer which step down the Ac pulsating signal into Dc signal the element use in this circut as shown in the diagram , it consist of core transfermor , transister ,diodes capacistor , resister as shown 

Thursday, 25 April 2013

cheap mobile phone

in china mobile phone are so cheap that it is sold on the side of a road just like a fruits its consider like a toys , its because of mass production of mobile phone , at the past cell phone was very expensive and now a days      
its very cheap ,china is not only producing cheap mobile phone but also other things, these mobile phones are   has 1$  price  and most of it is tough screen , which is expensive now a days, so for china every thing is cheap 
s