Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 150 matches
www.mcselec.com Forum Index
Author Message
  Topic: Receiving zero(0) bytes
Flash

Replies: 6
Views: 358

PostForum: BASCOM-AVR   Posted: Tue Jan 15, 2019 10:11 am   Subject: Receiving zero(0) bytes
Adding some time for UART to setup after Print command solved problem.
Config Com2 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
Open "COM2:" ...
  Topic: Receiving zero(0) bytes
Flash

Replies: 6
Views: 358

PostForum: BASCOM-AVR   Posted: Mon Jan 14, 2019 7:29 pm   Subject: Re: Receiving zero(0) bytes
because Ischarwaiting=0 if all bytes are zero(0)
Your statement is wrong.

Ischarwaiting() returns an 1 for a byte received, doesn't matter of the byte's value.
Your code - which you do not show - ...
  Topic: Receiving zero(0) bytes
Flash

Replies: 6
Views: 358

PostForum: BASCOM-AVR   Posted: Mon Jan 14, 2019 3:12 pm   Subject: Receiving zero(0) bytes
Is there some way of receiving (UART) zero bytes (e.g. 0,0,0,0), because Ischarwaiting=0 if all bytes are zero(0), only if one is >0 (0,0,0,1) then it worrks fine (it detects that something is rec ...
  Topic: USART timing
Flash

Replies: 1
Views: 405

PostForum: Various   Posted: Thu Dec 20, 2018 10:56 am   Subject: USART timing
Resolved, the problem was in cheap Mad defective cable on Rx line... By the way USART delay time between send (Tx) data and
received (Rx) data now is 5us and USART works without any problems on 250k.
  Topic: USART timing
Flash

Replies: 1
Views: 405

PostForum: Various   Posted: Wed Dec 19, 2018 2:44 pm   Subject: USART timing
What is the minimum USART delay time between send (Tx) data and receive (Rx) data, with Atmega at 16MHz clk, and Baud=250k? I have max 1mS between Tx/Rx, is that enough?
I have problem with recei ...
  Topic: C code to Bascom
Flash

Replies: 2
Views: 492

PostForum: Various   Posted: Wed Dec 19, 2018 2:20 pm   Subject: C code to Bascom
Thanks!
  Topic: C code to Bascom
Flash

Replies: 2
Views: 492

PostForum: Various   Posted: Thu Dec 13, 2018 2:00 pm   Subject: C code to Bascom
I need help with converting code below into Bascom code;

float sample;
int incCount;
BYTE Frame[132];

sample = (Frame [incCount*2-1]<<8|Frame[incCount*2]) ...
  Topic: 16 bit CRC
Flash

Replies: 4
Views: 322

PostForum: BASCOM-AVR   Posted: Wed Oct 31, 2018 9:02 am   Subject: 16 bit CRC
Tnx Ian, this is what I need.

Regards
  Topic: 16 bit CRC
Flash

Replies: 4
Views: 322

PostForum: BASCOM-AVR   Posted: Tue Oct 30, 2018 11:50 am   Subject: 16 bit CRC
Tnx Evert for tip, but (always but Smile) I have to get rid of 0D 0A (13 10) which is send
on the end of every Print message (which can't be seen on the terminal, only with scope).

I need; 91 00 7B ...
  Topic: 16 bit CRC
Flash

Replies: 4
Views: 322

PostForum: BASCOM-AVR   Posted: Mon Oct 29, 2018 7:45 pm   Subject: 16 bit CRC
I need help with CRC-16-IBM protocol for communication Atmega and xy IC. Print chr(xy) sends
good values, but CRC is wrong, I assume it's 8 bit CRC calc. xy IC won't communicate because
of wrong CRC ...
  Topic: ATTiny10 support
Flash

Replies: 0
Views: 800

PostForum: Various   Posted: Thu Jan 11, 2018 7:09 pm   Subject: ATTiny10 support
Is there any chance for ATtiny10.dat in the Bascom?
Tnx
  Topic: Markings
Flash

Replies: 2
Views: 542

PostForum: Various   Posted: Thu Sep 28, 2017 12:00 pm   Subject: Markings
Thanks. It's very good feature.
  Topic: Markings
Flash

Replies: 2
Views: 542

PostForum: Various   Posted: Thu Sep 28, 2017 7:45 am   Subject: Markings
Why in BASCOM 2.0.8.0 some of Declare is all grey, and some are in "normal" colors? Same is with Dim functions, where Dim is blue and rest of i s grey...
  Topic: Terminal emulator
Flash

Replies: 2
Views: 795

PostForum: Various   Posted: Wed Jan 18, 2017 1:54 pm   Subject: Terminal emulator
Hi Mark,

I know that but there isn't any small form in Bascom window. It just won't restore when it is minimized (like project form), and this small form isn't in Bascom window or any where else... ...
  Topic: Terminal emulator
Flash

Replies: 2
Views: 795

PostForum: Various   Posted: Wed Jan 18, 2017 12:15 pm   Subject: Terminal emulator
Why terminal emulator won't show again when "Run terminal emulator" is pressed after it is minimized in WIN10!?
Also there isn't icon on the toolbar.
Bascom version 2.0.7.9
 
Page 1 of 10 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
All times are GMT + 1 Hour
Jump to: