EEPROM 存储电台PLL子程序
<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); //写入电台序号}
EEPROM存储电台PL 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)