Sony Ericsson Fixed Cellular Telephone Application Note
Sony Ericsson Fixed Cellular Telephone Application Note

Sony Ericsson Fixed Cellular Telephone Application Note

Embedded applications

Advertisement

Quick Links

Application Note
Embedded Applications
Fixed Cellular Telephone

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Fixed Cellular Telephone and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Sony Ericsson Fixed Cellular Telephone

  • Page 1 Application Note Embedded Applications Fixed Cellular Telephone...
  • Page 2 First edition (September 2004) Sony Ericsson Mobile Communications. publishes this manual without making any warranty as to the content contained herein. Further Sony Ericsson Mobile Communications. reserves the right to make modifications, additions and deletions to this manual due to typographical errors, inaccurate information, or improvements to programs and/or equipment at any time and without notice.
  • Page 3: Table Of Contents

    EMBEDDED APPLICATIONS FCT Contents Contents ..................... 3 Introduction ..................4 FCT design..................5 Keypad ......................5 2.1.1 Operation ..................5 2.1.2 Set-up ....................5 2.1.3 Keypad Configuration ..............6 C LCD .....................7 2.2.1 Operation ..................7 2.2.2 Set-up ....................7 Fixed Cellular Terminal Application {FCT.sc} ..........12 LZT 123 8016 R1A...
  • Page 4: Introduction

    EMBEDDED APPLICATIONS FCT 1 Introduction When combined with the embedded applications scripting language, interfacing a keypad and LCD to the radio device can provide a simple man-machine interface without the need for external host controllers. This application note details the use the I2C interface for the LCD screen and the intrinsic functions to control a 5 x 4 keypad matrix.
  • Page 5: Fct Design

    EMBEDDED APPLICATIONS FCT 2 FCT design Here an application of a fixed-cellular-terminal (FCT) is used to illustrate the interfacing of a keypad and I C LCD to the radio device. Application Block Diagram (Fixed cellular terminal) Keypad Operation 2.1.1 When the script executes it calls a key-scan routine in an endless loop.
  • Page 6: Keypad Configuration

    EMBEDDED APPLICATIONS FCT Note! The GND ground connection may be used as a column driver. When used, this is referred to as Column 0. Keypad Interface Schematic Keypad Configuration 2.1.3 The key pad is configured using intrinsic functions within embedded applications, further information can be found in the IDE help section.
  • Page 7: I 2 C Lcd

    EMBEDDED APPLICATIONS FCT C LCD Operation 2.2.1 The I C device used is a general purpose IO controller which is connected to a parallel port controlled LCD module. When the script executes, it writes I C data to set the GPIO chip outputs.
  • Page 8: Lcd Interface

    EMBEDDED APPLICATIONS FCT LCD Interface Schematic LCD Interface LZT 123 8016 R1A...
  • Page 9 EMBEDDED APPLICATIONS FCT Supplier Varitronix Limited (Samsung KS0070B LCD Controller) Part MDLS16265SSXLV (3 Volt) Number Description 16 Characters x 2 Lines LCD spec PIN # NAME DESCRIPTION Ground Logic Supply (2.75V) LCD Supply (0V) Register Select Read/Write Enable Data0 Data1 Data2 Data3 Data4...
  • Page 10 EMBEDDED APPLICATIONS FCT Low) (Refer to Fig-2.5) R/W and RS Setup tsu1 Time R/W and RS Hold Time Data Setup Time tsu2 Data Hold Time E Cycle Time E Rise / Fall Time tr,tf Read Mode E Pulse Width (High, (Refer to Low) Fig-2.6)
  • Page 11 EMBEDDED APPLICATIONS FCT Read Mode Timing Diagram LZT 123 8016 R1A...
  • Page 12: Fixed Cellular Terminal Application {Fct.sc

    EMBEDDED APPLICATIONS FCT Fixed Cellular Terminal Application {FCT.sc} The overall code that was generated is given below. char KEY_IN2 = 10; char KEY_IN3 = 11; char KEY_IN4 = 12; char RI = 1; char DTR = 2; char DCD = 3; char DSR = 4;...
  • Page 13 EMBEDDED APPLICATIONS FCT else *valstr = val; LCDdata (*valstr); scat(sndCmd, valstr); else if(val == 0x0a) /* SEND key*/ if(gtb(8)==1) /*incoming call so answer*/ aterr = atsnd(“ATA”, resCmd, 3, 20, &resCmdSize); LCDcontrol(0x01); LCDtext(“Answering”, 9); else if(!(gtf(9))) /*outgoing call so dial number*/ CALLING = 1;...
  • Page 14 EMBEDDED APPLICATIONS FCT LCDcontrol(0x01); LCDtext(“*Incoming Call*”, 15); else CALLING = 0; } /* while (1) */ aterr = atdst(); /*destroy AT channel*/ val = kyd(); /*destroy keypad config*/ } /* main */ LCDdata(int Data) char Addr2; char DataWr[4]; char HiBits; char LoBits;...
  • Page 15 EMBEDDED APPLICATIONS FCT DataWr[0] = 0x4c; DataWr[1] = 0x0c; i2w(Addr2,2,DataWr, &Ack); LCDcontrol(0x0f); LCDcontrol(0x01); LCDcontrol(0x06); LCDtext(char *textstr, int textlen) char n; for(n=0; n<textlen; n++) LCDdata(textstr[n]); LZT 123 8016 R1A...

Table of Contents