Search found 133 matches

by Daniel
Thu May 23, 2013 7:00 pm
Forum: EzSBC1
Topic: While/Wend Prob
Replies: 8
Views: 9970

Re: While/Wend Prob

Daniel, If there are limited keyword slots, save them for more useful commands. I feel WHILE/WEND is redundant to start with. To me, REPEAT/UNTIL works just as well. basic_mark There are some problems that need a REPEAT/UNTIL loop and others need WHILE/WEND loops. Most of the time one can be rewrit...
by Daniel
Tue May 21, 2013 5:24 pm
Forum: EzSBC1
Topic: While/Wend Prob
Replies: 8
Views: 9970

Re: While/Wend Prob

I finally managed to find a fix for both issues. It turns out that the incorrect behavior of the WHILE/WEND pair was/is due to a change in the version of the compiler that I use (GCC) and I changed version to resolve another problem related to hardware IO. If I change back to the old version the WHI...
by Daniel
Tue May 21, 2013 7:19 am
Forum: EzSBC1
Topic: While/Wend Prob
Replies: 8
Views: 9970

Re: While/Wend Prob

Hi Mark, Jerry You found a serious bug and it is a little hard to fix. Due to a design choice I made early on the interpreter is restricted to 127 key words. Feature creep has now increased the count to 128 key words and since while is alphabetically last it stopped being a key word. Oops. Even wors...
by Daniel
Fri May 03, 2013 3:53 pm
Forum: EzSBC2
Topic: E-Ink Display
Replies: 0
Views: 15716

E-Ink Display

Recently I sold an EzSBC2 to some developers who wanted to make a controller for the ePaper displays from Pervasive Displays. These ePaper displays are fully reflective and consume no power when the display is not changing. For more information see repaper.org Today a Kickstarter project launched to...
by Daniel
Thu Apr 18, 2013 9:03 pm
Forum: EzSBC1
Topic: Problem using INADC
Replies: 4
Views: 6064

Re: Problem using INADC

Hi Jerry Your module is faulty. A new one is on its way. The local power jumper is to choose which power supplies the EzSBC1, the USB or the 9V adapter through the regulators. You should measure the battery voltage between the pin 39 and 40. The connector doesn't have a bottom section, it uses the P...
by Daniel
Thu Apr 18, 2013 3:39 pm
Forum: EzSBC1
Topic: Problem using INADC
Replies: 4
Views: 6064

Re: Problem using INADC

Hi Jerry When I run the ADC code you sent it works so the syntax is correct. There is a small possibility that the program memory contains an invisible character before the start of the program that makes the program hang. To get rid of that possibility, reset the module, select the bank where the c...
by Daniel
Tue Mar 19, 2013 3:40 pm
Forum: EzSBC1
Topic: How-To BASIC Programming Logic Question...
Replies: 9
Views: 9687

Re: How-To BASIC Programming Logic Question...

Hi Before I try let me see if I got this straight: You want one line to a file and to close the file once the line is received. This triggers some action on the PC. The next line on the serial port must go to the file with the same name, close the file to trigger the action on the PC. Here is what I...
by Daniel
Sat Mar 16, 2013 5:23 pm
Forum: EzSBC1
Topic: How-To BASIC Programming Logic Question...
Replies: 9
Views: 9687

Re: How-To BASIC Programming Logic Question...

Hi Robert There was a question that I did not answer earlier: Specifically I want the EzSBC1 to send a <string$>, When data becomes available, to a PC where I can write that <string$> to a file on that PC and then close that file. I figure I could get some BASIC code to use in JustBASIC which has se...
by Daniel
Fri Mar 15, 2013 8:52 pm
Forum: EzSBC1
Topic: How-to strip the first & last character from a string ???
Replies: 2
Views: 4800

Re: How-to strip the first & last character from a string ??

Hi Robert The easiest way is with the LEFT$, RIGHT$ and LEN functions. Lets call the string A$ A$="abcdefghijklmnopqrstuvwxyz" LenA = LEN( A$) PRINT LenA 'Remove right most character ShortA$ = LEFT$( A$, LenA-1) PRINT ShortA$ EvenShorterA$= RIGHT$( ShortA$, LenA-2) PRINT EvenShorterA$ END ...
by Daniel
Thu Mar 14, 2013 10:25 am
Forum: EzSBC1
Topic: No AND/OR command! How-To decode DTMF board ???
Replies: 2
Views: 4582

Re: No AND/OR command! How-To decode DTMF board ???

Hi Robert I just noticed that there is no AND or OR command in Control BASIC. See page 32, page 45, page 44 in the UNTIL section and a few other places. In Control-BASIC the IF statement must end with ENDIF and the rest of the line after THEN can not contain anything other than comments. It is a fea...
by Daniel
Wed Mar 13, 2013 4:01 pm
Forum: EzSBC1
Topic: TX data to another remote EzSBC1 with 1 pin...
Replies: 2
Views: 4610

Re: TX data to another remote EzSBC1 with 1 pin...

Hi This requires some thinking. Can I use coding which is easier to decode? but similar to Manchester code? Manchester coding is hard to decode without hardware assistance. Specifically I'm thinking of the code used by these parts : http://www.holtek.com/pdf/consumer/2_12ev120.pdf as described on p6...
by Daniel
Mon Mar 11, 2013 2:35 pm
Forum: EzSBC1
Topic: How-To BASIC Programming Logic Question...
Replies: 9
Views: 9687

Re: How-To BASIC Programming Logic Question...

Hi Robert Several points are well taken. Firstly, I will now answer questions under my name, Daniel. Also, as time passes I will add real world examples for the commands. You will be surprised how hard it is to dream up a small, clear and useful example when you are faced with a blank page. To break...
by Daniel
Mon Mar 11, 2013 2:01 pm
Forum: Project Boards
Topic: ls1 current limits
Replies: 2
Views: 32398

Re: ls1 current limits

I am not exactly sure what you are asking for but I will try to answer anyway. The LS1 has 4.7k pull-up resistors on the high and low side signals. This means that if you draw current from the pins when they are high the drop is directly proportional to the current drawn. When either side is driven ...