Posted: Wed Aug 11, 2010 12:32 pm
I should have got swordfish instead of proteus
https://www.bradsprojects.com/forum/
https://www.bradsprojects.com/forum/viewtopic.php?f=21&t=185
http://www.sfcompiler.co.uk/wiki/pmwiki ... er.Pluginsbrad wrote: It's a nice piece of software isnt it!
It's quite straight forward to use and basic is such a nice language.
I had no idea about the plugin - where is that located / how do you access it?
Apparently they are developing a 24f series compiler but unsure of the release date.
Sword Fish has not been updateed for over a Year .David Baxter the developer has not been on the forum for a LONG time.Rumours abound that he has abandoned the project due to work comittments.Check out the forum http://www.sfcompiler.co.uk and the links to the wiki.Main hope at the moment is that David releases the source code to a third party developer or the sword fish community,we can only wait and see.Hope it suvives as a product as it it so much easier than Proton (picbasic) or Mikrobasic.brad wrote: Apparently they are developing a 24f series compiler but unsure of the release date.
Sword Fish has not been updateed for over a Year .David Baxter the developer has not been on the forum for a LONG time.Rumours abound that he has abandoned the project due to work comittments.Check out the forum http://www.sfcompiler.co.uk and the links to the wiki.Main hope at the moment is that David releases the source code to a third party developer or the sword fish community,we can only wait and see.Hope it suvives as a product as it it so much easier than Proton (picbasic) or Mikrobasic
First an apology to David, its David Barker no Baxter,Sorry my Bad!bitfogav wrote: Yeah ive seen a few forums stating all kinds of romours, but I have read that David Baxter (SF developer) had a good reason he was away for a while which was personal, that is just a statment from Steven, who is the swordfish forum Moderator..
Urm don't know about the library files being open source, just the source code is available.Think DB still retains copyright.The files are locked (ie read only) not a big problem but intended to protect the files.Backup any mods first .I will post more details if required but basically all I did was create two constants:-brad wrote:That's some very handy info there, thanks for sharing
It is fantastic that all the user modules are open source which means you can do exactly what you were talking about - modify them to suit your needs.
We were discussing a while ago about how to get scrolling text via swordfish, and perhaps we now have our answer
Code: Select all
Public Const
cmdDisplayRight = %00011100,
cmdDisplayLeft = %00011000
(no real need to make them public )
Then a call such as Command(cmdDisplayRight) will scroll right (string moves to the LEFT)
Here is the code as I bashed it about for testing.
// if device and clock are omitted, then the compiler defaults to
// 18F452 @ 20MHz - they are just used here for clarity...
Device = 18F452
Clock = 20
#define isis_used
// some LCD options...
#option LCD_DATA = PORTB.4
#option LCD_RS = PORTB.3
#option LCD_EN = PORTE.2
Dim index As Byte
// import LCD library...
Include "LCD.bas"
Include "utils.bas"
'The Two Constants below should be added to the LCD.bas INC files Later
Public Const
cmdDisplayRight = %00011100,
cmdDisplayLeft = %00011000
// program start...
SetAllDigital
Cls()
DelayMS(250)
WriteAt(1,1,"Hello World this line is 40 characters *Wot happens next?")
DelayMS(1000)
Command(cmdBlinkOn)
loop:
Command(cmdDisplayRight)
DelayMS (1000)
GoTo loop
Opps forgot to put link to Oshon site http://www.oshonsoft.com/FreeThinker wrote: As I have seid before I DON'T have an 18F platform to test so I used the Oshon 18F simulator after removing the delays as it is not real time.It works as expected but is only a simulation.
Code: Select all
%00011100,
%00011000
When power is applied to the lcd display it runs its internal init routine and defaults to an 8 bit data bus with its display cleared and pointing to its first memory location.Any data received is now used to index into an internal character map and the bit pattern copied to the current cursor location and then incremented.Certain data is interperated as a command code and thedisplay switches to command mode.the next data byte is then decoded as the required action.When completed the display returns to its previous mode.You can clearly see how the function command(data) now works all you need to know now is the command code list.90% of displays are based on the industry standard hd44780 by hitachi, cloned by many others.You need to find the data sheet for your display and check.I've attached the data sheet for the lcd controller for my display which is the same as most others, page 13 has a nice table of codes.Happy reading.brad wrote:This is so cool!
It's such a simple solution to a problem that I couldn't figure out. The good thing is that I have a use for it with my LED games - thanks very much for posting.
I am guessing that these two 8-bit numbers are specific commands built into the LCD displays:
Is that right?Code: Select all
%00011100, %00011000
wheres tha datasheet?When power is applied to the lcd display it runs its internal init routine and defaults to an 8 bit data bus with its display cleared and pointing to its first memory location.Any data received is now used to index into an internal character map and the bit pattern copied to the current cursor location and then incremented.Certain data is interperated as a command code and thedisplay switches to command mode.the next data byte is then decoded as the required action.When completed the display returns to its previous mode.You can clearly see how the function command(data) now works all you need to know now is the command code list.90% of displays are based on the industry standard hd44780 by hitachi, cloned by many others.You need to find the data sheet for your display and check.I've attached the data sheet for the lcd controller for my display which is the same as most others, page 13 has a nice table of codes.Happy reading.
PS How will these (LCD Specific) commands help with a Led Matrix, are they controlled wit a hd44780?
Whoa! you are Quick....Edited posting original would not take pdf filesbitfogav wrote:wheres tha datasheet?When power is applied to the lcd display it runs its internal init routine and defaults to an 8 bit data bus with its display cleared and pointing to its first memory location.Any data received is now used to index into an internal character map and the bit pattern copied to the current cursor location and then incremented.Certain data is interperated as a command code and thedisplay switches to command mode.the next data byte is then decoded as the required action.When completed the display returns to its previous mode.You can clearly see how the function command(data) now works all you need to know now is the command code list.90% of displays are based on the industry standard hd44780 by hitachi, cloned by many others.You need to find the data sheet for your display and check.I've attached the data sheet for the lcd controller for my display which is the same as most others, page 13 has a nice table of codes.Happy reading.
PS How will these (LCD Specific) commands help with a Led Matrix, are they controlled wit a hd44780?
Has the attachment worked?I cannot see it' but is there in preview?bitfogav wrote:HaHa! I was just interested in this because I have used LCDs alot in assembly and I have now switched to swordfish so this would be very usefull
and oh yeah i dont think you can upload PDF files on this forum hehe.
No sorry buddy it hasn't worked, do you have a link to the PDF file ?FreeThinker wrote:Has the attachment worked?I cannot see it' but is there in preview?bitfogav wrote:HaHa! I was just interested in this because I have used LCDs alot in assembly and I have now switched to swordfish so this would be very usefull
and oh yeah i dont think you can upload PDF files on this forum hehe.