微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > EEPROM 存储电台PLL子程序

EEPROM 存储电台PLL子程序

时间:11-30 来源:互联网 点击:

<8|Temp_L; break;case 2: //NO.2电台PLLTemp_H=EEPROM_Read_Byte(0x02,0x00); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x02,0x01); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break;case 3: //NO.3电台PLLTemp_H=EEPROM_Read_Byte(0x04,0x00); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x04,0x01); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break;case 4: //NO.4电台PLLTemp_H=EEPROM_Read_Byte(0x06,0x00); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x06,0x01); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break;case 5: //NO.5电台PLLTemp_H=EEPROM_Read_Byte(0x08,0x00); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x08,0x01); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break;case 6: //NO.6电台PLLTemp_H=EEPROM_Read_Byte(0x0a,0x00); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x0a,0x01); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L;case 7: //NO.7电台PLLTemp_H=EEPROM_Read_Byte(0x0c,0x00); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x0c,0x01); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break;case 8: //NO.8电台PLLTemp_H=EEPROM_Read_Byte(0x00,0x02); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x00,0x03); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break;case 9: //NO.9电台PLLTemp_H=EEPROM_Read_Byte(0x02,0x02); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x02,0x03); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break;case 10: //NO.10电台PLLTemp_H=EEPROM_Read_Byte(0x04,0x02); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x04,0x03); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break;case 11: //NO.11电台PLLTemp_H=EEPROM_Read_Byte(0x06,0x02); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x06,0x03); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break; case 12: //NO.12电台PLLTemp_H=EEPROM_Read_Byte(0x08,0x02); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x08,0x03); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break;case 13: //NO.13电台PLLTemp_H=EEPROM_Read_Byte(0x0a,0x02); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x0a,0x03); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break;case 14: //NO.14电台PLLTemp_H=EEPROM_Read_Byte(0x0c,0x02); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x0c,0x03); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break;case 15: //NO.15电台PLLTemp_H=EEPROM_Read_Byte(0x0e,0x02); //获取PLL高位Temp_L=EEPROM_Read_Byte(0x0e,0x03); //获取PLL高位PLL_Temp=Temp_H<8|Temp_L; break; default:break;}return PLL_Temp;}/********************** EEPROM 读取最后一次序号*************************/uchar EEPROM_Get_Index(){uchar Index;Index=EEPROM_Read_Byte(0x0e,0x00);return Index;}/********************** EEPROM 写入最后一次序号*************************/void EEPROM_Write_Index(uchar Index){EEPROM_Earse(0x0e,0x00); //首先擦除第8扇区EEPROM_Write_Byte(Index,0x0e,0x00); //写入电台序号}

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top