![]() |
Forum Index : Microcontroller and PC projects : COM 1 Problem
Author | Message | ||||
edu001 Regular Member ![]() Joined: 14/07/2014 Location: United KingdomPosts: 82 |
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 KingdomPosts: 4036 |
Missing quote John |
||||
hitsware Guru ![]() Joined: 23/11/2012 Location: United StatesPosts: 535 |
Assuming you have a MicroMite......:See page 53 ...... |
||||
edu001 Regular Member ![]() Joined: 14/07/2014 Location: United KingdomPosts: 82 |
You are correct |
||||
edu001 Regular Member ![]() Joined: 14/07/2014 Location: United KingdomPosts: 82 |
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 KingdomPosts: 82 |
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 KingdomPosts: 4036 |
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 KingdomPosts: 82 |
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: AustraliaPosts: 6269 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |