??? 03/04/05 10:39 Read: times |
#89080 - MOV A,ACC Responding to: ???'s previous message |
hi,
Jan Waclawek said:
Bartosz Wucke said:
Other A,ACC (XRL?) These will work OK. Goes through ALU, so the sources have to be latched first. Book "MSC51 programmer`s guide and instruction set" from Intel says opposite: MOV A,ACC is not a valid instruction BTW, yet another interest question. According datasheets: Timer 2 [skip] Setting the DCEN bit enables Timer 2 to count up or down. In this mode, the T2EX pin controls the direction of the count. [skip] A logic 0 at T2EX makes Timer 2 count down. The timer underflows when TH2 and TL2 equal the values stored in RCAP2H and RCAP2L. The underflow sets the TF2 bit and causes 0FFFFH to be reloaded into the timer registers. Well, now we configure timer2 to autoreload more, set bit DCEN and tie GND to T2EX. So timer2 is configured as autoreload down-counter now. Then we load value 0x0000 into TL2/TH2 and 0xFFFF into RCAP2L/RCAP2H. Finally run timer 2. After first decrement TL2/TH2 equal to RCAP2L/RCAP2H. This forces reload TL2/TH2 with value 0xFFFF. But this means that TL2/TH2 equal to CAP2L/RCAP2H again! And this must force reload the timer with 0xFFFF once again and again into infinite loop? (= Regards, Oleg |
Topic | Author | Date |
PUSH SP | 01/01/70 00:00 | |
8 | 01/01/70 00:00 | |
8??????????????????????????????????? | 01/01/70 00:00 | |
On jokes, reasons &al. | 01/01/70 00:00 | |
no, you don't | 01/01/70 00:00 | |
I do not know and do not think I should | 01/01/70 00:00 | |
Non-compliance? | 01/01/70 00:00 | |
Theory vs. practice | 01/01/70 00:00 | |
Jan is right: 7 | 01/01/70 00:00 | |
I did not say 7! | 01/01/70 00:00 | |
Interesting | 01/01/70 00:00 | |
POP SP? :-) | 01/01/70 00:00 | |
POP SP | 01/01/70 00:00 | |
MOV SP,#SP | 01/01/70 00:00 | |
exceptions and rules | 01/01/70 00:00 | |
MOV A,ACC | 01/01/70 00:00 | |
xxx a,acc | 01/01/70 00:00 | |
if the "Bible says"... | 01/01/70 00:00 | |
more interesting | 01/01/70 00:00 | |
Hmmm.... interesting indeed! | 01/01/70 00:00 | |
native doing | 01/01/70 00:00 | |
Makes sense to me | 01/01/70 00:00 | |
POP SP | 01/01/70 00:00 | |
Output of SP | 01/01/70 00:00 | |
Simulators | 01/01/70 00:00 | |
simulators give me 7 7 | 01/01/70 00:00 | |
7 7 | 01/01/70 00:00 | |
spent for which purpose | 01/01/70 00:00 | |
Fun... | 01/01/70 00:00 | |
Atmel and Philips | 01/01/70 00:00 | |
SiLabs F120![]() | 01/01/70 00:00 |