Anzahl Durchsuchen:0 Autor:Site Editor veröffentlichen Zeit: 2020-10-14 Herkunft:Powered
Ultraschallabstandsmessmodul, ein Chip-Mikrocomputer, der mit 12864 LCD, HC-SR04 Ultraschallspiegel-Sensorform verbunden ist, ist auch nicht bekannt.
Ultraschallbereich 51 Single-Chip 12864 LCD-Source-Programm:
#enthalten
#enthalten
// PIN -Definition
sbitrx = p1 ^ 1;
sbittx = p1 ^ 2;
sbitcs = p3 ^ 3; // Chip Wählen Sie hochstufe aktive Single-Chip-LCD-LCD können mit hoher Ebene festgelegt werden
sbitsid = p3 ^ 4; // Daten
sbitsclk = p3 ^ 5; // Uhr
// Funktionsdefinitionsfunktionserklärung
Hohlraumverzögerung (int num);
void init_ds18b20 (void);
nicht signiertes Zeichen readonechar (void);
void WRIteOnechar (unsigned char dat);
Unsigned Int Readtemperature (void);
void clock_out (unsigned char dd);
vorzeichenloses char clock_in (void);
nicht signiertes char read_clock (vorzeichenloses Zeichen ord);
void write_clock (unsigned char ord , unsigned char dd);
Hohlraum disp (void);
void id_case1_key (void);
void id_case2_key (void);
void set_Time (unsigned char sel , bit sel_1);
LeereTimer0_init (void);
void init_1302 (void);
void set_bell (unsigned char sel , bit sel_1);
Hohlraum Bell (void);
// 12864
void write_char (bit start , unsigned char ddata);
void send_byte (unsigned char bbyte);
Hohlraumverzögerung (Unsigned int di);
void lcd_init (void);
void disp_img (unsigned char *img);
void lcd_write_string (vorzeichenloses Zeichen x , vorzeichenloses Zeichen , vorzeichenloses Zeichen *s);
void lcd_set_xy (vorzeichenloses Zeichen x , vorzeichenloses Zeichen y);
vorzeichenloser Zeichencode num [] = {\"0123456789 : 。- \"};
Unsigned char Codewellen [] = {\"Ultrasonic Ranging System \"};
Unsigned CHAR -Code znwk [] = {\"Smart Microcontrol Studio \"};
vorzeichenloser Zeichencode cm [] = {\"m \"};
Unsigned intTime = 0;
lange s = 0;
Bitflag = 0;
Unsigned char disbuff [4] = {0,0,0,0 ,};
Unsigned char Code -Logo [] = {
0x00,0x03,0xc6,0x3c , 0x00,0x33,0x9f
0x00,0x3f , 0xef , 0xfe , 0x00,0x03,0x1c , 0xe0 ,0x07,0x01,0xcc , 0x00,0x31,0xf1,0x80,0x00 ,
0x00,0x79,0xdf , 0xbc , 0x00,0x06,0x18,0xc0 ,0x0e , 0x01,0xfe , 0x00,0x77,0xf9,0x80,0x00 ,
0x00,0x01,0xb0 ,0x30,0x01,0xc6,0x19,0xc0 ,0x1e , 0x7f , 0xde , 0x00,0x6f , 0x83,0x80,0x00 ,
0x00,0x23,0xac , 0x60 ,0x0f , 0xe6,0xf1,0x80 ,0x3e , 0x7b , 0x38,0x00,0x61,0x83,0x00,0x00 ,
0x00,0x37,0x0e , 0x00,0x0f , 0xc7,0xb7,0x80 ,0xec , 0x63,0x30,0x00,0xe3,0x03,0x00,0x00 ,
0x00,0x3e , 0x0e , 0x00,0x01,0x8f , 0x37,0x01,0xcc , 0x6f , 0xf0,0x00,0xc7,0xf7,0x00,0x00 ,
0x00,0x1e , 0x0c , 0x00,0x03,0x1e , 0x66,0x03,0x0c , 0x7f , 0x00,0x01,0xff , 0xe6,0x00,0x00 ,
0x00,0x1e , 0x1c , 0x00,0x03,0x1c , 0x60 ,0x02 ,0x19,0xac , 0x00,0x01,0x96,0x06,0x00,0x00 ,
0x00,0x3e , 0x3e , 0x00,0x03,0x18,0x60 ,0x00,0x19,0xfc , 0x00,0x03,0x86,0x0e , 0x00,0x00 ,
0x00,0x7e , 0x36,0x00,0x03,0x00,0xc0 ,0x00,0x38,0x78,0x00,0x03,0x06,0x0c , 0x00,0x00 ,
0x00,0xe6,0x67,0x00,0x03,0x00,0xc0 ,0x00,0x30,0x78,0x00,0x06,0x0c , 0x0c , 0x00,0x00 ,
0x01,0xc6,0xc3,0x80 ,0x7f , 0xf0,0xc0,0x00,0x30,0xfe , 0x00,0x0e , 0x0c , 0x1c , 0x00,0x00 ,
0x03,0x81,0x83,0xc0 ,0x78,0xff , 0x80,0x00,0x61,0xcf , 0x80,0x1c , 0x08,0x18,0x00,0x00 ,
0x06,0x07,0x03,0xe0 ,0x00,0x1f , 0xff , 0xe0 ,0x67,0x07,0xe0,0x38,0x18,0xf8,0x00,0x00 ,
0x08,0x0e , 0x01,0xf8,0x00,0x07,0xff , 0x80,0xce , 0x03,0xf8,0x60,0x00,0x70 ,0x00,0x00 ,
0x00,0x18,0x01,0xf8,0x00,0x01,0xfc
0x00,0x01,0xfe , 0x00,0x00,0x7f , 0xf8,0x00,0x00,0x00,0x00,0x00,0xc0 ,0x03,0x00,0x00 ,
0x00,0x03,0xb7,0x00,0x00,0x60 ,0x00,0x00,0x00,0x00,0x3c , 0x00,0xc0,0x03,0x00,0x00 ,
0x00 ,0x07,0x67,0x00,0x00,0x60 ,0x00,0x00,0x03,0x9f , 0xfe , 0x00,0x80,0x02,0x00,0x00 ,
0x00,0x0e , 0x63,0x80 ,0x00,0xe0,0x00,0x01,0xff , 0xcf , 0x1e , 0x01,0x80,0x06,0x00,0x00 ,
0x00,0x1c , 0xe1,0xe0 ,0x00,0xc0 ,0x00,0x00,0xe3,0x9c , 0x38,0x01,0x80 ,0x0x00,0x00 ,
0x00,0x38,0xc1,0xf8,0x01,0xc0 ,0x00,0x00,0xc3,0x18,0x30,0x00,0x00,0x00,0x00,0x00 ,
0x00,0xe0,0xfc , 0xfe , 0x03,0x80 ,0x00,0x01,0xc7,0x18,0x60 ,0x00,0x00,0x00,0x00 ,
0x01,0xdf , 0xf8,0xfe , 0x03,0x00,0x00,0x01,0x8e , 0x1b , 0xe0 ,0x07,0x00,0x1c , 0x00,0x00 ,
0x07,0x07,0x80 ,0x00,0x07,0x00,0x00,0x01,0xff , 0x3f , 0xe0,0x07,0x00,0x1c , 0x00,0x00 ,
0x0c , 0x03,0x80 ,0x00,0x0e , 0x00,0x00,0x01,0xf0,0x38,0x00,0x0f , 0x00,0x3c , 0x00,0x00 ,
0x00,0x03,0x00,0x00,0x1c , 0x00,0x00,0x01,0x00,0x20,0x00,0x06,0x00,0x18,0x00,0x00 ,
0x00,0x03,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ,
0x00,0x03,0x00,0x00,0xe0 ,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ,
0x00,0x02,0x00,0x01,0xc0 ,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ,
void lcd_init (void) // LCD initialisieren