??? 10/28/05 10:06 Read: times |
#103076 - the biggest sin Responding to: ???'s previous message |
The biggest sin of posters to this Forum is not reading the manual completely. The second next is to post a typed-in code, not copy/pasted the real one.
This line certainly results in error when you attempt to assemble it: U Kaz said:
MOV T2CON,#4CH timer, counting upwards But your real problem lies in this line: U Kaz said:
MOV T2MOD,#02H ;initialising timer 2 as auto-reload 16 bit because AT89S8252 datasheet (doc0401.pdf, rev.F) on page 16 said:
Programmable Clock Out
A 50% duty cycle clock can be programmed to come out on P1.0, as shown in Figure 5. [..] To configure the Timer/Counter 2 as a clock generator, bit C/T2 (T2CON.1) must be cleared and bit T2OE (T2MOD.1) must be set. [...] In the clock-out mode, Timer 2 rollovers will not generate an interrupt,. [...] Jan Waclawek |