This is my code: (SE8)
MOV #$3F,SCID
MOV #$3B,SCIC1
MOV #$08,SCIC2
MOV #$00,SCIBDH ;9600 Bauds
MOV #$1A,SCIBDL ;9600 Bauds
MOV #$FF,PTCDD
CONT1: EQU $080
CONT2: EQU $081
PROGRAM:
JSR RETA
NOP
BSET 0,PTCD
MOV #$FF,SCID; Write in SCID Send Datas?
JSR N2
MOV #$0F,SCID ; Write in SCID Send Datas?
BCLR 0,PTCD
JSR RETA
NOP
BSET 1,PTCD
LDA SCID ; Read in SCID Send Datas?
JSR N2
BCLR 1,PTCD
feed_watchdog
BRA PROGRAM
RETA:
MOV #$FF,CONT2
N2
MOV #$FF,CONT1
N1 NOP
NOP
DBNZ CONT1,N1
DBNZ CONT2,N2
feed_watchdog
RTS
Is it My configuration in good?, Sending and Reading? anyone used Processor Expert for SCI?, i havent understand which is instruction that used for Reding and Sending.
Hi,
I have several projects using 9S08QG8; all make use of the SCI and all are in assembly.
http://www.rasmicro.com/DS18B20.htm
Roger