Using the following initialization code:-
.......
xor a ; Disable refresh (not really required)
out0 (z180_rcr),a
; To make PHI=Osc Input, set bit 7 of CCR
; To make OHI=2X Osc Input, set bits 7 of CCR and CMR
ld a,CLOCK_VALUE_CMR ; 00H, Set clock speed,(normally 0H)
out0 (z180_cmr),a ; set CMR
ld a,CLOCK_VALUE_CCR
out0 (z180_ccr),a ; set CCR
......
ld a,64h ; xmit enable, rcv enable, 8 data bits, no parity
out0 (z180_cntla0),a
ld a,CNTLB0_VALUE
out0 (z180_cntlb0),a
ld a,60h ; dcd0 disable, cts0 disable
out0 (z180_asext0),a
.....
By shooting in the dark I arrived at the following table:-
CLOCK_VALUE_CMR equ xxH ;For setting CPU clock speed
CLOCK_VALUE_CCR equ yyH ; " "
CNTLB0_VALUE equ zzH ; For setting final baud rate from clock
;
; (CMR) (CCR) (CNTLB0) Baud PHI
; 00H 80H 20H 38,400 18.432 MHz ;Using 18.432MHz Oscillator
; 00H 00H 20H 19,200 9.2 MHz ;Using 18.432MHz Oscillator
; 00H 80H 00H 115,200 18.432 MHz ;Using 18.432MHz Oscillator
;
; 00H 00H 00H 57,600 9.2 MHz ;
18.432MHz Oscillator
, Setting for S100 Bus Interface
Does anybody else here care to fill in other values.
John