I am new to GC Basic but have done extensive programming of test systems in other forms of basic.
I am working on a project in which I would like to create multiple serial software ports in addition to the one hardware serial port I'm using. I have implemented and tested the hardware port and one software serial port. It's my understanding that GC Basic will support up to 3 software ports.
I'm looking for some confirmation on the correct syntax for these ports.
Sample code:
#chip16F88,8
#configOsc=Int#defineSendAHighSetPORTB.2ON'software serial port 1#define SendALow Set PORTB.2 OFF#define RecAHigh PORTB.3 ON#define RecALow PORTB.3 OFF
#defineSendBHighSetPORTB.4ON'software serial port 2#define SendBLow Set PORTB.4 OFF#define RecBHigh PORTB.5 ON#define RecBLow PORTB.5 OFF#define LED PORTB.0Dir PORTB.2 OutDir PORTB.3 InDir PORTB.4 OutDir PORTB.5 InInitSer1,r2400,1+WaitForStart,8,1,none,normal'init port 1InitSer2,r4800,1+WaitForStart,8,1,none,normal'init port 2DoSerReceive1,Temp'recieve on port 1 If Temp <= 50 Then Set LED Off If Temp > 50 Then Set LED OnSerSend2,Temp'and send temp back out on port 2Loop
For the above example do I have the correct syntax for the serial port #defines?
Thanks much for any feedback!
Last edit: Anobium 2015-08-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looks good. I am assuming that you have the lastest Hot Release - earlier versions of Great Cow Basic are not fully compliant with the command set. We updated in March 2015.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the feedback. I was not using the latest version. Have V0.9 installed from 11/5/2014. Interesting when I tried to download the new version my Avast virus program blocked the download using both Chrome and Explorer!. I downloaded the new version with my phone and then transferred to my computer with no issue!. I will need to also download to my work computer and try to use my example program.
Last edit: Larry Gosselin 2015-08-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So I just tried to extract the files for the GCBasic Hot Release zip file. Avast stopped the extraction process. See attached report for file CallCHM.exe. I am doing this on the home computer.
My original install was on my work computer. I then copied the installed files to a flash drive and copied the files to the home computer, so no zip extraction occured. This is the first time trying to do a fresh install directly at home from the zip file.
Is this a real virus issue or should I temporarilly be stopping Avast until after the install?
Will be interesting to see if I have this same issue on Monday at work!
Your above post came in as I was typing! I update my Avast software evewry time I get an update notice. Thought I had the most up to date version. I'll need to check. My original 0.9 download was at work last fall sometime. Probably around November when I first learned of GC Basic. I believe it came directly from the sourceforge.net site.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The AVAST Virus Lab have analyzed the file(s) and determined it was a false positive. It will be fixed in the new virus definitions update.
Re. False alert (# FRV-584-69893)
To update virus definitions: open Avast and go to > Settings > Update > Virus Definitions - click "Update" (note: if it is still detected, allow sometime and check again)
My Avast Virus Definitions were updated to version 150820-1 with release date 8/20/2015 6:22:37 AM.
As of today (21 August 2015 @ 0820 CST) I was able to download and install the latest release with no issues!
From the file "Mar 15 Release List.txt:
Changes to Great Cow Basic and Great Cow Graphical Basic since May 2014 Release.
31st March 2015
The release is called 0.94
This release is brought to you by, in no specific order:
Hugh Considine (of course!), Evan Venn, Theo Loermans, William Roth, Kent Schafer,
Jacque Erdermaal, Thomas Henry, Perry Weinthal, Marco Cariboni,
Avast, Chuck Hellebuyck, Frank Steinberg, Jim Nordquist.
Thanks for the help in getting this resolved.
Now I just need to work through my initial question of getting multiple software serial ports to run on my project. I have been pulled off my software work to update some PCB artwork. Sometimes real life gets in the way of fun!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am new to GC Basic but have done extensive programming of test systems in other forms of basic.
I am working on a project in which I would like to create multiple serial software ports in addition to the one hardware serial port I'm using. I have implemented and tested the hardware port and one software serial port. It's my understanding that GC Basic will support up to 3 software ports.
I'm looking for some confirmation on the correct syntax for these ports.
Sample code:
For the above example do I have the correct syntax for the serial port #defines?
Thanks much for any feedback!
Last edit: Anobium 2015-08-14
Welcome.
Looks good. I am assuming that you have the lastest Hot Release - earlier versions of Great Cow Basic are not fully compliant with the command set. We updated in March 2015.
Thanks for the feedback. I was not using the latest version. Have V0.9 installed from 11/5/2014. Interesting when I tried to download the new version my Avast virus program blocked the download using both Chrome and Explorer!. I downloaded the new version with my phone and then transferred to my computer with no issue!. I will need to also download to my work computer and try to use my example program.
Last edit: Larry Gosselin 2015-08-14
Well done.
Please also do look at the demos, see here for more.
The Avast issue has been resolved in later update of the Avast software. We have worked with Avast to ensure we are not tagged as a virus.
May I ask where you obatined the v0.9 software? An old download?
So I just tried to extract the files for the GCBasic Hot Release zip file. Avast stopped the extraction process. See attached report for file CallCHM.exe. I am doing this on the home computer.
My original install was on my work computer. I then copied the installed files to a flash drive and copied the files to the home computer, so no zip extraction occured. This is the first time trying to do a fresh install directly at home from the zip file.
Is this a real virus issue or should I temporarilly be stopping Avast until after the install?
Will be interesting to see if I have this same issue on Monday at work!
See https://sourceforge.net/p/gcbasic/discussion/579127/thread/282293c5/#9700
Anobium
Evan, this link is in the developers environment.
Theo.
Your above post came in as I was typing! I update my Avast software evewry time I get an update notice. Thought I had the most up to date version. I'll need to check. My original 0.9 download was at work last fall sometime. Probably around November when I first learned of GC Basic. I believe it came directly from the sourceforge.net site.
Anobium, Not sure what your above link is but I get an Error 403, Read access required message.
Did a quick search for AVAST. That link was to the last posting on this subject.
I have reopened ticket [#FRV-584-69893]: False alert
I will post the response here.
The AVAST Virus Lab have analyzed the file(s) and determined it was a false positive. It will be fixed in the new virus definitions update.
Re. False alert (# FRV-584-69893)
To update virus definitions: open Avast and go to > Settings > Update > Virus Definitions - click "Update" (note: if it is still detected, allow sometime and check again)
Virus FAQs
Avast Clean Guidelines: https://www.avast.com/faq.php?article=AVKB228
Avast File Whitelisting: https://www.avast.com/en-us/faq.php?article=AVKB229
My Avast Virus Definitions were updated to version 150820-1 with release date 8/20/2015 6:22:37 AM.
As of today (21 August 2015 @ 0820 CST) I was able to download and install the latest release with no issues!
From the file "Mar 15 Release List.txt:
Changes to Great Cow Basic and Great Cow Graphical Basic since May 2014 Release.
31st March 2015
The release is called 0.94
This release is brought to you by, in no specific order:
Hugh Considine (of course!), Evan Venn, Theo Loermans, William Roth, Kent Schafer,
Jacque Erdermaal, Thomas Henry, Perry Weinthal, Marco Cariboni,
Avast, Chuck Hellebuyck, Frank Steinberg, Jim Nordquist.
Thanks for the help in getting this resolved.
Now I just need to work through my initial question of getting multiple software serial ports to run on my project. I have been pulled off my software work to update some PCB artwork. Sometimes real life gets in the way of fun!
Please look at https://sourceforge.net/p/gcbasic/discussion/579126/thread/1360c16b/#b6d5 and the responses.I strongly recommend you get the lastest rs232.h
Please look at https://sourceforge.net/p/gcbasic/discussion/579126/thread/1360c16b/#b6d5 and the responses.I strongly recommend you get the latest rs232.h
Last edit: Anobium 2015-08-21