??? 06/05/06 21:20 Read: times |
#117804 - A 12 MHz xtal ... Responding to: ???'s previous message |
Dimitri,
A 12MHz Xtal with SMOD=0 requires a reload of 0FFH, SMOD=1 then 0FEH. ; *** Init The MIDI Bit Rate 31kHz *** MOV TH1,#0FFH ;Init ... SERIAL BAUD CLOCK VALUE (T1) MOV TL1,#0FFH ; ... SERIAL BAUD CLOCK VALUE (T1) clr PT1 ;Set ... Timer 1 priority low clr ET1 ; ... Timer Interrupt to disable setb TR1 ; *** INIT Serial Port 0 Hardware (19200) *** ANL PCON,#7FH ;Set ... Prescaler as not in effect MOV SCON,#52H ;INIT ... 8 BIT UART MODE AND RCV ENABLE. ; Tx Int Flag Artificially set regards, p |