Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20563

BASCOM-AVR : INPUT funcion, Very strange behaviour in serialmatch interru : REPLY

$
0
0
Now I tryed exactly the SAME code on both serial0 and serial1. [code:1:ccb38e0d81] Config Com1 = 9600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0 Config Com2 = 9600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0 Config Serialin = Buffered , Size = 64 , Bytematch = 10 Config Serialout = Buffered , Size = 128 Config Serialin1 = Buffered , Size = 64 , Bytematch = 10 Config Serialout1 = Buffered , Size = 128 Open "COM2:" For Binary As #2 echo off config input = crlf , echo = crlf config input1 = crlf , echo = crlf[/code:1:ccb38e0d81] And interrupt routine: [code:1:ccb38e0d81]Serial0CharMatch: ADCHEX = "" Input ADCHEX print ADCHEX Serial1CharMatch: ADCHEX = "" Input #2 , ADCHEX print #2 , ADCHEX[/code:1:ccb38e0d81] This is output from COM1: [code:1:ccb38e0d81]˘Ş 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890# 1234567890#[/code:1:ccb38e0d81] This is output from COM2 [code:1:ccb38e0d81]1212345678 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890[/code:1:ccb38e0d81] .......

Viewing all articles
Browse latest Browse all 20563

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>