Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:40 06 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : COM 1 Problem

Author Message
edu001
Regular Member

Joined: 14/07/2014
Location: United Kingdom
Posts: 82
Posted: 09:45am 31 Oct 2014
Copy link to clipboard 
Print this post

Hi

I am trying to open COM1 with 1 stop bit like this: OPEN "COM1:9600, S1 AS #1

I get Error: Not enough memory

Where as OPEN "COM1:9600, S2 AS #1 works ok

Any Ideas
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4036
Posted: 10:04am 31 Oct 2014
Copy link to clipboard 
Print this post

Missing quote

John
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 10:08am 31 Oct 2014
Copy link to clipboard 
Print this post

Assuming you have a MicroMite......:See page 53 ......
 
edu001
Regular Member

Joined: 14/07/2014
Location: United Kingdom
Posts: 82
Posted: 10:16am 31 Oct 2014
Copy link to clipboard 
Print this post

  JohnS said   Missing quote

John


You are correct


 
edu001
Regular Member

Joined: 14/07/2014
Location: United Kingdom
Posts: 82
Posted: 10:19am 31 Oct 2014
Copy link to clipboard 
Print this post

Just miss typed OPEN "COM1:9600, S1" AS #1

I really need to fix this

The protocol I need to follow is 1+8+1 no parity

Is the start bit the rising edge and the stop bit the falling edge or do I need to define it ?

 
edu001
Regular Member

Joined: 14/07/2014
Location: United Kingdom
Posts: 82
Posted: 10:31am 31 Oct 2014
Copy link to clipboard 
Print this post

  hitsware said   Assuming you have a MicroMite......:See page 53 ......


Thanks for the link :) but I have been through the manual and there is no mention of using start bits or S1 as a single stop bit
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4036
Posted: 10:35am 31 Oct 2014
Copy link to clipboard 
Print this post

Bearing in mind the manual states the defaults I'm not sure why you're using what you have.

John
 
edu001
Regular Member

Joined: 14/07/2014
Location: United Kingdom
Posts: 82
Posted: 10:59am 31 Oct 2014
Copy link to clipboard 
Print this post

  JohnS said   Bearing in mind the manual states the defaults I'm not sure why you're using what you have.

John


I was discussing it with WW and could not ascertain if 1 stop bit was the default value and 2 stop bits was an option or do both have to be defined ?
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 11:13am 31 Oct 2014
Copy link to clipboard 
Print this post

One stop bit is the default setting.
If you want one stop bit just leave the S2 out altogether.

The other thing that catches people out is the polarity.
Maximites generally use TTL which has the resting level at +V and a start bit will go to zero.
RS232 has a resting level of -V and a start bit will go to +V

You might need to INVert the signal.

Jim



VK7JH
MMedit
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025