background image

  EMBEDDED APPLICATIONS FCT 

 
 
 
 

 
 
 

LZT 123 8016 R1A

  

13 

 

 

 

 

 

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; 

      LCDcontrol(0xc0); 
      LCDtext(“Dial”, 

4); 

      scat 

(sndCmd, 

“;”); 

 

 

 

 

 

 

aterr = atsnd (sndCmd, resCmd, 

       

 

slen(sndCmd), 

20, 

&resCmdSize); 

 

 

 

 

 

 

prtf (“\nsent AT command \n%s”, 

sndCmd); 
      scpy(resndCmd, 

sndCmd); 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

else if(val == 0x0b) /* REJECT key*/ 

 

 

 

 

     LCDcontrol(0x01); 
     scpy(sndCmd, 

“ATD”); 

 

 

 

 

 

aterr = atsnd (“ATH”, resCmd, 3, 20, 

&resCmdSize); 

 

 

 

 

 

 

 

 

 

 

 

 

 

else if(val == 0x0c) /* REDIAL key*/ 

 

 

 

 

     if(!(gtf(9))) 

/*outgoing call so dial number*/ 

 

 

 

 

 

 

 

 

 

 

 

CALLING = 1; 

      LCDcontrol(0x01); 
      LCDtext(“Redial”, 

6); 

 

 

 

 

 

 

aterr = atsnd (resndCmd, resCmd, 

       

 

slen(resndCmd), 

      20, 

&resCmdSize); 

 

 

 

 

 

 

prtf (“\nsent AT command \n%s”, 

resCmd); 
 

 

 

 

 

 

 

 

 

 

 

 

  } 

 

 

 

  else 
  { 
   PREVKEYPRESSED 

0; 

   prtf(“No 

Key 

Pressed”); 

  } 

 

 

 

 

 

if(gtb(8)==1) /*incoming call so answer*/ 

  { 
   if(!CALLING) 
 

 

 

    CALLING 

1; 

Summary of Contents for Fixed Cellular Telephone

Page 1: ...Application Note Embedded Applications Fixed Cellular Telephone...

Page 2: ...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 a...

Page 3: ...Contents 3 1 Introduction 4 2 FCT design 5 2 1 Keypad 5 2 1 1 Operation 5 2 1 2 Set up 5 2 1 3 Keypad Configuration 6 2 2 I2 C LCD 7 2 2 1 Operation 7 2 2 2 Set up 7 2 3 Fixed Cellular Terminal Applic...

Page 4: ...guage 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...

Page 5: ...ow inputs receives a logic low The key scan routine identifies which KeyColumn driver was active when the key press was detected and the routine provides a return code representing the combination of...

Page 6: ...olumn driver When used this is referred to as Column 0 Note Keypad Interface Schematic 2 1 3 Keypad Configuration The key pad is configured using intrinsic functions within embedded applications furth...

Page 7: ...ditional control signals RS E R W The LCD is operating in 4 bit mode so can provide the 7 required signals with a single 8 bit I2 C GPIO converter The I2 C register has been defined as follows BIT P7...

Page 8: ...EMBEDDED APPLICATIONS FCT LCD Interface Schematic LCD Interface LZT 123 8016 R1A 8...

Page 9: ...und 2 VDD Logic Supply 2 75V 3 VO LCD Supply 0V 4 RS Register Select 5 R W Read Write 6 E Enable 7 DB0 Data0 8 DB1 Data1 9 DB2 Data2 10 DB3 Data3 11 DB4 Data4 12 DB5 Data5 13 DB6 Data6 14 DB7 Data7 15...

Page 10: ...old Time th2 10 ns E Cycle Time Tc 140 0 E Rise Fall Time tr tf 25 E Pulse Width High Low Tw 400 R W and RS Setup Time Tsu 60 R W and RS Hold Time Th 20 Data Setup Time tD 36 0 Read Mode Refer to Fig...

Page 11: ...EMBEDDED APPLICATIONS FCT Read Mode Timing Diagram LZT 123 8016 R1A 11...

Page 12: ...char PREVKEYPRESSED 0 char CALLING 0 setup All Key pins spc RI 0 turn off RI spc DTR 0 turn off DTR spc DCD 0 turn off DCD spc DSR 0 turn off DSR spc CTS 0 turn off CTS io 4 KEY_IN2 0 switch in I2 io...

Page 13: ...4 scat sndCmd aterr atsnd sndCmd resCmd slen sndCmd 20 resCmdSize prtf nsent AT command n s sndCmd scpy resndCmd sndCmd else if val 0x0b REJECT key LCDcontrol 0x01 scpy sndCmd ATD aterr atsnd ATH resC...

Page 14: ...DataWr 3 LoBits 0x20 i2w Addr2 4 DataWr Ack LCDcontrol int control char Addr2 char DataWr 4 char HiBits char LoBits char Ack Addr2 0x70 HiBits control 4 LoBits control 0x0f DataWr 0 HiBits 0x40 DataW...

Page 15: ...PLICATIONS FCT LZT 123 8016 R1A 15 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 LCDdat...

Reviews: