manoa2015
Newbie level 2
- Joined
- Jan 7, 2014
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 20
Hi all , this the first time with in this forum and hope to get some help her , :grin:
I use MIkroc as compiler and pic18f25k22 as MCU ,
OK I use one of telit modem , and it work great to send sms to 5 persons when I store the numbers in rom as const , and I need to burn new code each time to change the numbers in rom
now I need to write the new number from uart input , I will connect to my pc and send numbers to the pic and store it in rom memory , it will not go when I switch off the system( when I switch off ) , and to know , it will be only few numbers between 1-5 number no need to have other eeprom IC .
Ok ..
this simple code to collect data from UART
any hints will be appreciated :wink:
regards
I use MIkroc as compiler and pic18f25k22 as MCU ,
OK I use one of telit modem , and it work great to send sms to 5 persons when I store the numbers in rom as const , and I need to burn new code each time to change the numbers in rom
now I need to write the new number from uart input , I will connect to my pc and send numbers to the pic and store it in rom memory , it will not go when I switch off the system( when I switch off ) , and to know , it will be only few numbers between 1-5 number no need to have other eeprom IC .
Ok ..
this simple code to collect data from UART
Code:
char uart_rd;
char *number[8] ;
int i =0 ;
int num=1;
const ////// what I can write her as ROM array ?
regards and thanks
void main() {
while (1) { // Endless loop
if (UART1_Data_Ready()) { // If data is received,
uart_rd = UART1_Read(); // read the received data,
number[i]= uart_rd ; // save temp number
i++;
if (i==8){
// ok the number contain 8 digits and ready to be store in ROM
/// how I can write the first number
num++; // change the array numbers for new number to store in ROM
}
}
}
}
any hints will be appreciated :wink:
regards