BASCOM-MCS51 RS232 Setting terima dan kirim



check program bascom berikut ini :


$regfile = "reg51.dat"
$crystal = 11059200
$baud = 9600

Dim Isi As String * 6
    Dim Xyz As Byte

Do
       Isi = ""

    Input Isi Noecho
    If Isi = "I4" Then

    P2.0 = 0
    Waitms 100
    P2.0 = 1

    End If

    If Isi = "Z" Then
    P2.1 = 0
    Waitms 100
    P2.1 = 1
    Print "T"

    End If

    If Isi = "XD4" Then
    Print "P"

    End If
          Waitms 56
         Xyz = Inkey
         Xyz = Inkey
         Xyz = Inkey


Loop


Postingan populer dari blog ini

LCD 2x16 via ESP32

Perencanaan awal ESP32 S3 testing

winsocket vb.net