Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | MultiTasking Question

Discussion forum for the BasicX family of microcontroller chips.

Anyone succeeded with KS0713 LCD interface? - gpsrunner2000 - Mar 25 16:28:00 2004

Hi members

Try to connect LCD KS0713 controller in serial mode to my BASICX-24.
(I use SID, RS, SCLK without any Pull Up resistors)

ANYONE know of any BASICX-24 codes somewhere that works?

Modified "LCD_595 by Jon Williams over and over" but the LCD
seems to be DEAD.

Thankful for any link/s that might help.

Best Regards,
Hans Selin





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Enums - Bob Roos - Mar 26 0:18:00 2004

I have been looking into Enumeration at bit.

It appears that you cannot use an enumeration type directly as a
subscript. Too bad because that would be so cool. Suggestion -- allow it.

I have a 2D array. The columns have specific types of data in them. col1
is line#, col2 is Group#...

Imagine being able to loop through an array:

For LoopCtr = 1 to 12
If Matrix(Line_No,LoopCtr) = 2 then ' why is block
data backwards (col,row)?
Current_Group = Matrix(Group,LoopCtr)
...

Instead of:

For LoopCtr = 1 to 12
If Matrix(CByte(Line_No),LoopCtr) = 2 then ' why is
block data backwards (col,row)?
Current_Group = Matrix(CByte(Group),LoopCtr)
...

or does it have to be CInt? I don't remember off hand.

just a thought. It has the advantage of not taking up RAM, but I suppose
I could put constants into Persistent Storage. Maybe I will do that (If
someone can tell me why FirstTime is not working) ;-)>






(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Simple LCD - cheap - Bob Roos - Mar 26 0:21:00 2004

Can anyone tell me what would be a good serial LCD to use?

I need 2 lines or so for error/status indicators. I don't need
backlighting and I don't want to add much more to the cost of this box.

Any suggestions? Thanks,

Bob Roos






(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

RE: Simple LCD - cheap - Keith Ledgard - Mar 26 1:24:00 2004


See: http://www.phanderson.com

Peter has a number of serial kits (for BX-24, BS2 and PIC's)
and will most probably be able to help you.

-----Original Message-----
From: Bob Roos [mailto:]
Sent: Friday, March 26, 2004 7:22 AM
To:
Subject: [BasicX] Simple LCD - cheap Can anyone tell me what would be a good serial LCD to use?

I need 2 lines or so for error/status indicators. I don't need
backlighting and I don't want to add much more to the cost of this box.

Any suggestions? Thanks,

Bob Roos
Yahoo! Groups Links





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Simple LCD - cheap - Don Kinzer - Mar 26 1:26:00 2004

--- In , Bob Roos <wybatap@w...> wrote:
> Can anyone tell me what would be a good serial LCD to use?

The serial LCDs that I've seen are pretty expensive - $25 or more.
If cost is a primary concern, you're probably better off getting an
inexpensive parallel LCD and adding a few dollars worth of ICs to do
the serial to parallel conversion.

Is this a production application or a one-off project? If the
latter, you can often find workable parallel LCDs at All Electronics,
Electronic Goldmine, Hosfelt Electronics, and similar surplus
outlets. I have purchased several different parallel LCDs and they
all have had the same interface and command set. Even though you
might not be able to get specs on the $2.00 LCD from one of the
surplus outfits, chances are that the information at the link below
will allow you to get it running.

http://home.iae.nl/users/pouweha/lcd/lcd.shtml

I have posted some schematics on my project pages showing one way to
connect a parallel LCD using only a few I/O pins. If you have other
parallel devices already, you may be able to add in a parallel LCD
using no additional pins.






(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Re: Simple LCD - cheap - Bob Roos - Mar 26 2:58:00 2004

On Fri, 26 Mar 2004 06:26:21 -0000, Don Kinzer <>
wrote:

> --- In , Bob Roos <wybatap@w...> wrote:
>> Can anyone tell me what would be a good serial LCD to use?
>
> The serial LCDs that I've seen are pretty expensive - $25 or more.

That's what I kept finding

> If cost is a primary concern, you're probably better off getting an
> inexpensive parallel LCD and adding a few dollars worth of ICs to do
> the serial to parallel conversion.

I'm game, but have no experience here
>
> Is this a production application or a one-off project? If the
> latter, you can often find workable parallel LCDs at All Electronics,
> Electronic Goldmine, Hosfelt Electronics, and similar surplus
> outlets. I have purchased several different parallel LCDs and they
> all have had the same interface and command set. Even though you
> might not be able to get specs on the $2.00 LCD from one of the
> surplus outfits, chances are that the information at the link below
> will allow you to get it running.

first one is of course 1-of, but if it proves out then there will be more.
>
> http://home.iae.nl/users/pouweha/lcd/lcd.shtml
>
> I have posted some schematics on my project pages showing one way to
> connect a parallel LCD using only a few I/O pins. If you have other
> parallel devices already, you may be able to add in a parallel LCD
> using no additional pins.

no parallel and I need all the pins I can get for my other inputs. Don,
where are your project pages?

Thanks,

Bob Roos






(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

MultiTasking Question - Bob Roos - Mar 26 10:10:00 2004

I have been reading about multitasking.

Where does the stack for each task reside? If RAM is limited to 400(?)
bytes and they talk about 1000 tasks running in a test how does it fit?

Thanks,

Bob Roos






(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Simple LCD - cheap - Don Kinzer - Mar 26 11:39:00 2004

--- In , Bob Roos <wybatap@w...> wrote:
> Don, > where are your project pages?

The Ethernet interface with LCD can be seen at the link below. On
that page there are links to schematics showing how the LCD and the
Ethernet controller chip, both with parallel interfaces, are
connected to the BX-24.

http://www.kinzers.com/don/BX24/Ethernet

Depending on how you are using the other I/O lines, you may be able
to share some or all of them with the LCD.

Another example is the diesel generator controller that I built
several years ago. It uses the Basic Stamp II but the circuitry will
work equally well on a BX-24. A page describing the project can be
found at the link below; it contains links to the schematics as well.

http://www.kinzers.com/don/GenSet > Thanks,
>
> Bob Roos




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: MultiTasking Question - Frank Manning - Mar 26 12:18:00 2004

From: Bob Roos <>

> I have been reading about multitasking.
>
> Where does the stack for each task reside?

In the CallTask instruction, you specify an array for the task
stack. That's where the stack resides.

> If RAM is limited to 400(?) bytes and they
> talk about 1000 tasks running in a test how
> does it fit?

We used a BX-01 with 64 KB RAM:

http://www.basicx.com/Products/BX-01/RamSandwich/RamSandwich.htm

-- Frank Manning
-- NetMedia, Inc.





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Enums - Frank Manning - Mar 26 12:31:00 2004

From: Bob Roos <>

> I have been looking into Enumeration at bit.
>
> It appears that you cannot use an enumeration type
> directly as a subscript. [...]

Enumeration types were purposely made very restrictive in BasicX.
The theory is that if you are too permissive, and allow enums to
be used interchangeably with other integer types, then enums
would be meaningless. There would be no point to having them.

We wanted to avoid the C and VB approach at one extreme, where an
enum is just a synonym for an integer, and the Java approach at
the other extreme, which avoids enumeration types altogether, and
throws the baby out with the bathwater. IMHO.

BasicX enums are restrictive but still subset compatible with VB
enums.

-- Frank Manning
-- NetMedia, Inc.




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: MultiTasking Question - Bob Roos - Mar 26 19:52:00 2004

Hi Frank,

I am using a BX-35 with 32K eeprom.

I presume I only have about 400bytes of Ram? So the array resides in ram
and the task uses that array for its stack.

So you are limited in the number of tasks by the ram?

Bob

On Fri, 26 Mar 2004 10:18:13 -0700, Frank Manning <>
wrote:

> From: Bob Roos <>
>
>> I have been reading about multitasking.
>>
>> Where does the stack for each task reside?
>
> In the CallTask instruction, you specify an array for the task
> stack. That's where the stack resides.
>
>> If RAM is limited to 400(?) bytes and they
>> talk about 1000 tasks running in a test how
>> does it fit?
>
> We used a BX-01 with 64 KB RAM:
>
> http://www.basicx.com/Products/BX-01/RamSandwich/RamSandwich.htm
>
> -- Frank Manning
> -- NetMedia, Inc.





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: MultiTasking Question - Frank Manning - Mar 27 0:44:00 2004

From: Bob Roos <>

> I am using a BX-35 with 32K eeprom.
>
> I presume I only have about 400bytes of Ram? So
> the array resides in ram and the task uses that
> array for its stack.

True.

> So you are limited in the number of tasks by the
> ram?

Yes, each task requires a minimum of 15 bytes of overhead for the
task frame. Any other memory use is above that.

-- Frank Manning
-- NetMedia, Inc.




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )