We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
HI Can anyone tell me that
unsigned char time; ..... void interrupt_timer ( void ) interrupt 1 { time++; }
The unsigned char is of 1 byte and has maximum value of 255. So what will happen when the time exceeds 255?
just write a simple bit of assembler
I don't know the C51 family, but when working with an ARM the OP's problem can be best addressed using the "S" flavor of ARM instructions so that the processor overflow, zero etc. flags in CPSR are updated if necessary.