Discussion forum for the BasicX family of microcontroller chips.
|
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 |
|
|
|
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) ;-)> |
|
|
|
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 |
|
|
|
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 |
|
--- 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. |
|
|
|
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 |
|
|
|
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 |
|
|
|
--- 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 |
|
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. |
|
|
|
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. |
|
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. |
|
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. |