voice.h

This project created with ISD2560 record and playback chip, DS1821 temperature sensor, PIC16F84 with circuit for sightless Voice Termometer, fire and gas alarm system. (by Ayhan Dayanik).



//***************************************
// Author: Ayhan DAYANIK
// Date  : 21/07/2003
//***************************************
#ifndef _Voice_H_
#define _Voice_H_


#define Fire        29
#define Gas         30
#define FistMsg     31
#define LastMsg     32
#define Minus       33

#define Button      0x80    
#define Sensor1     0x40
#define Sensor2     0x20
#define EOM         0x10

//Voice msg. sequence
//First msg  =Zero voice
//Second msg.=One voice
//10th msg.=Nine voice
//11th msg.=Ten voice
//......
//21th msg.=Twenty voice
//22th Thirty...28th Ninety

const unsigned char LoNumVoice[10]={1,2,3,4,5,6,7,8,9,10};
const unsigned char HiNumVoice[10]={0,11,21,22,23,24,25,26,27,28};

char temperature;
char TimerL,TimerH;
unsigned char tmp;

void App_init( void );
char FireControl();
void GasControl();
void SayTemperature();
void interrupt();


#endif   //_Voice_H_
//////////////////////////////////////



http://www.sourceboost.com/home.html

Copyright © 2002-2006 SourceBoost Technologies