??? 07/24/06 17:33 Read: times |
#120966 - about atomicity Responding to: ???'s previous message |
sory, but i dont know the meaning of this term 'atomicity problem'. Please explain it.
You increment a variable of more than 8 bits in an ISR and read it in the main. The main code will look something like this a) mov R7,var+1 b) mov r6,var c) at a) the variable is 0x01ff at b) the interrupt happens updaing the variable to 0x0200 at c) the variable in the main will read 0x2ff And how is it related to slowing of microcontroller? it may and may not be, but it can give you a 'nice surprise' some day. Erik |
Topic | Author | Date |
problem in timer with a least count of 1 millisec | 01/01/70 00:00 | |
Code as shown should work methinks | 01/01/70 00:00 | |
clarifications | 01/01/70 00:00 | |
atomicity | 01/01/70 00:00 | |
atomicity problem? | 01/01/70 00:00 | |
about atomicity | 01/01/70 00:00 | |
Back to basic | 01/01/70 00:00 | |
reply to vishal sinha | 01/01/70 00:00 | |
bible time | 01/01/70 00:00 | |
Hm ... | 01/01/70 00:00 | |
reply to Christoph Franck | 01/01/70 00:00 | |
totally imprecse | 01/01/70 00:00 | |
What is the size of the variables? | 01/01/70 00:00 | |
not enough info | 01/01/70 00:00 | |
other details about code | 01/01/70 00:00 | |
here you go again | 01/01/70 00:00 | |
yet questions more![]() | 01/01/70 00:00 |