Search found 35 matches

by jona
Mar 11, 2016 22:48
Forum: Beginners
Topic: [Solved] Arrays with negative indexes not valid?
Replies: 9
Views: 1105

Re: [Solved] Arrays with negative indexes not valid?

[quote="fxm" For FBIde: http://www.freebasic.net/forum/viewtopic.php?f=2&t=19950[/quote] Thank you. I have a 0-127X0-63 matrix and I want to flip each of the constituent 0-7X0-7 matrices about their major axes. So the indices for the four-deep nested loops becomes a little complicated....
by jona
Mar 11, 2016 12:36
Forum: Beginners
Topic: [Solved] Arrays with negative indexes not valid?
Replies: 9
Views: 1105

Re: Arrays with negative indexes not valid?

Something like this ? (no problem here) note: if you run in to problems with array indicies use fbc -exx yourcode.bas now FreeBASIC will check the array bounds and you will get an array index out of bounds error. How do I use "fbc -exx yourcode.bas"? Is it something I run inside the IDE?
by jona
Feb 20, 2016 3:14
Forum: Hardware Interfaces / Communication
Topic: Windows 10 and serial communication
Replies: 11
Views: 16232

Re: Windows 10 and serial communication

I've come up with a solution, though not too pretty. I bit-banged 9600 baud. After a simple handshake I close the com port, then reopen it, in that way the reading of non-existent data doesn't occur. Then I signal the uP to commence sending the data. It works well with Win 7, not at all with Win 10....
by jona
Feb 18, 2016 23:34
Forum: Hardware Interfaces / Communication
Topic: Windows 10 and serial communication
Replies: 11
Views: 16232

Re: Windows 10 and serial communication

Is there any explanation as to why the pc would seemingly not wait for a start bit before receiving data? This depends on whether any sort of flow control is implemented, e.g. Xon/Xoff (software) or DTR/DSR (hardware) etc. Above relates to "real RS232" Serial Port. USB is a different matt...
by jona
Feb 18, 2016 6:58
Forum: Hardware Interfaces / Communication
Topic: Windows 10 and serial communication
Replies: 11
Views: 16232

Re: Windows 10 and serial communication

D.J.Peters "Do you measure the 2400 baud rate from your MC with an oscilloscope?" I don't have a 'scope. I did write a bit-banging 8051 program to create 9600 baud, and it simulated ok, ie, 104 microseonds per bit. It runs on the win 7 laptop. If the pc asked for more data than what the 80...
by jona
Feb 15, 2016 4:09
Forum: Hardware Interfaces / Communication
Topic: Windows 10 and serial communication
Replies: 11
Views: 16232

Re: Windows 10 and serial communication

The two links were way above my head. That's my problem, not yours. I did come up with a not so pretty solution. Inside the FB loop that receives the data I placed a time delay for j=1 to 10000000:next j If I make the delay two orders of magnitude shorter then the problem persists, all of which only...
by jona
Feb 12, 2016 2:10
Forum: Hardware Interfaces / Communication
Topic: Windows 10 and serial communication
Replies: 11
Views: 16232

Re: Windows 10 and serial communication

I seached the forum before posting, didn't see this. Thanks.
by jona
Feb 12, 2016 1:04
Forum: Hardware Interfaces / Communication
Topic: Windows 10 and serial communication
Replies: 11
Views: 16232

Windows 10 and serial communication

I recently upgraded to Windows 10 on my Toshiba M645 by making a fresh install and entering my Win 7 CoA. Toshiba doesn't support 10 on this machine, but the most recent 7 drivers seem to work. I started a new project communicating between an Atmel 89S52 and my laptop using PL2303TA USB TTL to RS232...
by jona
Jul 10, 2015 23:28
Forum: Hardware Interfaces / Communication
Topic: FTDI FT232 serial port
Replies: 7
Views: 3615

Re: FTDI FT232 serial port

I first tried it with my Prolific device, which operates fine and Device Manager recognizes as COM3, got the results you predicted. I changed the command to "MODE COM3:2400,N,8,1", and didn't enter the second command - the result followed my command in the CMD window. Device Manager recogn...
by jona
May 31, 2015 21:32
Forum: Hardware Interfaces / Communication
Topic: FTDI FT232 serial port
Replies: 7
Views: 3615

Re: FTDI FT232 serial port

Dinosaur wrote:After reading the instructions on FTDI, you have convinced me to leave it alone.


That's all I need to know, I'm convinced too. Thanks, Jon
by jona
May 31, 2015 8:32
Forum: Hardware Interfaces / Communication
Topic: FTDI FT232 serial port
Replies: 7
Views: 3615

Re: FTDI FT232 serial port

Is there a quick and easy terminal test? Winrm , TeraTerm and Putty look kinda involved. I have Win7 X64 on my laptop. My Prolific device works great, and the FTDI was to be a backup.
by jona
May 23, 2015 0:41
Forum: Beginners
Topic: Rounding a number
Replies: 10
Views: 2353

Re: Rounding a number

EDIT: One small cautionary note: due to rounding precision on the +0.5, 0.49999999999999994 may round up instead of down. Won't 0.5 be recorded as an exact value because it's 2^(-1) or 0.1 in binary? I know that 0.1 in decimal presents a problem, because it has no exact binary representation. 0.1 d...
by jona
May 23, 2015 0:12
Forum: Beginners
Topic: BASIC!!
Replies: 6
Views: 1187

Re: BASIC!!

[quote="pattim"]Are there a listing of any largish projects which have used fbc? Define largish. I wrote some engineering finite element programs that determine deformations and internal forces of structures made of "sticks": 3-dimensional trusses (held together at the joints by ...
by jona
May 22, 2015 3:04
Forum: Hardware Interfaces / Communication
Topic: FTDI FT232 serial port
Replies: 7
Views: 3615

FTDI FT232 serial port

I made a Prolific PL2303 device work fine. I'm collecting the voltage on a charging capacity using ADC0820 attached to ATMEL AT89S52, then transmitting the collected data (about 20kb) to my pc. As a beginner, my projects revolve around "let's see if I can make this work, what's the worst that c...
by jona
Oct 25, 2014 1:28
Forum: Beginners
Topic: search engine
Replies: 5
Views: 1233

Re: search engine

dkl wrote:What we can do though is go to Google and use:
site:freebasic.net/forum file i/o error


That's great, found everything I need. If the customer service personnel at my bank and other businesses could be half as good at answering questions as you guys are it would be a better world.

Go to advanced search