how to drive serial port0 with timer1

"? ?" <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Dear Bryan,
    Thanks for help!  Could you tell me how to drive serial port0 with 
timer1?  I built my application based on the tini c lib, I modified the 
code in startup400.a51 as below:

$set (XTALMULT = 2)
...
OSCILLATOR_FREQ equ 18432000
...
mov     scon0, #5Ah      ;0101 1010
orl     pcon, #80h
orl     ckcon, #10h			; Set T1M = 1
mov     th1, #0xFF        ; Set timer reload high byte
orl     tmod, #20h			; Set timer1 Mode 2, 8 bit auto-reload
anl     t2con, #0xcf			; Enable timer 1 for serial port
setb    tr1                             ; Set timer 1 to run*/
                ; Make sure that we can output to the serial port
setb    ti

while the printf in main function didnot work. Could you please offer me 
the right way?

Best wishes,
qianqian.

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.