#include <reg51.h>
main(void) {
volatile int timer = 0x2E6A;
volatile char temp;
temp = (char) timer;
TL1 = temp;
timer = timer >> 8;
temp = (char) timer;
TH1 = temp;
/*void toUppercase(char* string);
char text[] = "some text";
toUppercase(text);*/
}
/*void toUppercase(char* string) {
int i = 0;
while (string[i] != '\0'){
if(string[i] >= 97 && string[i] <= 122){
string[i] = string[i] - 32;
}
i++;
}
}*/
|