-
Hi,
I have done the following program:
:eek:
Code:
; Programma per l'invio di un carattere alla porta seriale
DSeg SEGMENT PARA 'DATI'
Parola DB 00h
DSeg ENDS
SSeg SEGMENT PARA STACK 'STACK'
DB 100 DUP (?)
Top LABEL WORD
SSeg ENDS
CSeg SEGMENT PARA 'CODICE'
Inizio:
ASSUME DS:DSeg,SS:SSeg,CS:CSeg
;Inizializzazione dei registri
MOV AX,DSeg
MOV DS,AX
LEA AX,Top
MOV SP,AX
MOV AX,SSeg
MOV SS,AX
;inizializzazione porta
MOV AH,00h
;baud rate 110 baud
;parit… nessuna
;codice stop 1 bit
;carattere 8 bit
MOV AL,00000011b
MOV DX,0 ;seleziona la porta COM1
INT 14h
;trasmissione byte
Trasmetto:
MOV AH,01h
MOV AL,Parola
INT 14h
MOV AH,01h
INT 16h
JZ Trasmetto
;svuoto il buffer della tastiera
MOV AH,00h
INT 16h
;Ritorno al DOS
MOV AL,00h
MOV AH,4Ch
INT 21h
CSeg ENDS
END Inizio
When I try to read the voltage with a tester I can't view any variation! :confused: Is there an error?
Thank you!
:cool:
-
You need an assembler forum NOT a VB one.
-
Thank you for the information! :mad: