22
DESIGN AND DEVELOPMENT OF SOFTWARE FOR SMS IN MOBILES BY, K SUMANT VENU GOPAL REDDY(05C01A04A4) Y SUSHMA REDDY(05C01A04A7) Internal Guide: Amarnath

how to generate sms

Embed Size (px)

Citation preview

Page 1: how to generate sms

DESIGN AND DEVELOPMENTOF SOFTWARE FOR SMS IN MOBILES

BY,

K SUMANT VENU GOPAL REDDY(05C01A04A4)

Y SUSHMA REDDY(05C01A04A7)

Internal Guide: Amarnath

Page 2: how to generate sms

About The Project Regarding the size of the mobile, SMS generation,

What is mobile? First invention, Operation of mobile previously, Size of the mobile, Working frequency,

Page 3: how to generate sms

• LPC 2129 microprocessor• LCD• Wavecom modem• Keypad• JTAG debugger• Battery

SOFTWARE REQUIRED:

• Embedded C• Keil development board • Embest IDE for ARM

EQUIPMENTS REQUIRED:

Page 4: how to generate sms

What is embedded system?

• Special purpose computer system,• Dedicated to specific task,• Combination of software and hardware,• Decreases size and cost of the product,• Increasing the reliability and performance

What is the difference between C and Embedded C?

• C is for desktop computer and Embedded C is for microcontroller based,• C uses the total memory of the system like OS, etc. but Embedded C uses the limited memory of the system such as RAM, ROM, PORTS, etc…,• In C we have headers like <studio.h>, using which the system yields output file which is feasible to OS , but in Embedded C, everything is same except, a output file is loaded in to the controller.

Page 5: how to generate sms

BLOCK DIAGRAM :

Page 6: how to generate sms

Block Diagram :

Page 7: how to generate sms

GSM: Global System For Mobile, originally was Groupe Special Mobile, Working frequency, more than 45 million cellular subscribers worldwide are using,

and nearly 50 percent of those subscribers are located in the United States,

GSM was first invented by NMT in 1982, In 1987 GSM started using narrowband time division multiple

access (TDMA) GSM allows network operators to offer roaming services so that

subscribers can use their phones on GSM networks all over the world

Page 8: how to generate sms

GSM NETWORK

Page 9: how to generate sms

LPC 2129

Philips product

Is an ARM7TDMI-S based high-performance 32-bit RISC Microcontroller with Thumb extensions

256KB on-chip Flash ROM with In-System Programming (ISP) and In-Application Programming (IAP) 16KB RAM, Vectored Interrupt Controller,

Collection of Two UARTs, I2C serial interface, 2 SPI serial interfaces Two timers (7 capture/compare channels), PWM unit with up to 6 PWM outputs, 4-channels 10bit ADC, 2 CAN channels. Real Time Clock, Watchdog Timer, General purpose I/O pins.

CPU clock up to 60 MHz, On-chip crystal oscillator and On-chip PLL.

Has competition from Samsung, Atmel, etc..

Page 10: how to generate sms

Features Of LPC 2129

1.0.18-micron CMOS embedded Flash process, enabling ultra-low.

2.1.8V voltage operation,

3.Up to 256K bytes of embedded Flash memory ,

4.popular communication peripherals including UARTs, SPI (Service Provider Interface), I2C Inter-

Integrated Circuit, CAN,

5.Four channel 10-bit A/D converter

6.Up to 112 general-purpose input/outputs ,

7.In-System Programming ISP and In-Application Programming,

8.Vectored Interrupt Controller (VIC) with configurable priorities

and vector addresses ,

9.Configurable external memory interface with up to four banks, each up to 16 Mb and 8/16/32-bit data ,

10.Operating temperature range from -40 degrees C to +105 degrees,

Page 11: how to generate sms

The ARM design was started in 1983 as a development project at Acorn Computers Ltd to build a compact RISC CPU. Led by Sophie Wilson and Steve Furber.

ARM7TDMI-S = ARM7 + TDMI

What is ARM7? ARM7 is the heart of LPC 2129, RISC makes ARM7 ideal for embedded systems, High performance, Low power consumption, Takes small amount of available silicon diode area,

What is THUMB? 16-bit instruction set , It is compressed form of the ARM instruction set., Concept of Interworking,

ARM7TDMI-S :

Page 12: how to generate sms

THUMB Instruction set:

REGISTERS:

Set of registers consists of bank of 16 user registers R0-R15, each of 32-bit length,

Page 13: how to generate sms

R0-R12 are general purpose registers,R13- stack pointerR14- link registerR15- program counter

In addition to the banks it consists of 32 bit wide register called “current program status register(CPSR)”

N31

Z30

C29

V28

I6

F5

T4

M3

M2

M1

M0

N,Z,C,V are the Conditional Code Flags

For example:ARM Instruction THUMB Instruction ADD R0,R0,R1 ADD R0,R1 R0=R0+R1

Page 14: how to generate sms
Page 15: how to generate sms

LCD Interfacing

Generally we use 2x16 LCD.

It has 2 rows and 16 columns.

Page 16: how to generate sms

LCD Pin Description 2x16 LCD has 16 pins.

Pin1 is Vss (Ground) Pin2 is Vcc (Power supply) Pin3 is Vee (Contrast) Pin4 is RS (Register Select) Pin5 is R/W (Read or Write) Pin6 is E (Enable) Pin7 - Pin14 are Data Pins.

7th pin is D0…..14th pin is D7

Pin15 is Vcc (Back Light) Pin16 is Ground. If we not connect the Pins 15&16, the backlight of LCD will be OFF.

Page 17: how to generate sms

LCD Registers RS, register select

If RS = 0, the instruction command code register is selected, allowing the user to send a command.

If RS = 1, the data register is selected, allowing the user to send data to be displayed on the LCD.

R/W = 1, input allows the user to read from the LCD. R/W = 1, input allows the user to read from the LCD.

E, enable A high-to-low pulse must be applied to this pin in order to transmit the

data to LCD The Pulse must be a minimum of 450ns.

Page 18: how to generate sms

Keypad Interfacing

Page 19: how to generate sms

Keypad Interface Assign Ports for Columns and Rows. Make columns as Input Port (0xFF). Connect rows to Output Port (0x00). Define an array for the Key values

array [rows] [columns] Mask unused bits, read values from columns. Wait for any key is pressed... First search in Row0 by making all the pins high and row0 pin low. Read the column value, and check whether the pressed key is in that row

or not. If its not, repeat the same for Row1, 2, 3…. Once you detect which row is detected then search for column by making

the similar way as rows. After detecting row and column, take the corresponding value from the

array.

Page 20: how to generate sms
Page 21: how to generate sms

Serial Communication:

Serial communication is a form of I/O in which the bits of byte is transferred one after the other in a timed sequence on a single wire.

Serial communication is often used to transmit or receive data from the embedded processor.

Steps To Do Serial Communication :

configure the TMOD register. At which baud rate you are transmitting the data. configure the SCON register. start the timer . send data to the serial buffer. Monitor for the TI or RI flag.

Page 22: how to generate sms

THANK YOU!!!