Well my program disks have arrived
One PICBASICPRO Compiler & a MicroCode Studio plus disk.
I'll install them this evening when I have some time.
Dave
Well my program disks have arrived
One PICBASICPRO Compiler & a MicroCode Studio plus disk.
I'll install them this evening when I have some time.
Dave
Now the fun begins...![]()
Dave
Always wear safety glasses while programming.
Indeed it does.Now the fun begins...
Are the two programs fairly straight forward to install?
I guess I need to uninstall the Demo version first.
Dave
They should install just like the demo versions did...
What Operating system are you using? 32 or 64 bit?
Dave
Always wear safety glasses while programming.
Should not be a problem then.
Dave
Always wear safety glasses while programming.
When I get a minute, I'm going to leave the Demo in place and just install the full version over it.
Unless anyone can thing of a reason why I shouldn't do that of course.
Dave
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Very impressive rmteo, I like the look of that. How difficult is one of these to set up?think about getting a graphic LCD next. Then you can combine both and do stuff like this.
And if you find you have a fondness for the graphic displays, there's always lots of full color displays to choose from.
Absolutely, I don't think I've read anything to do with PIC's that hasn't had a 19 page (minimum) PDF attached. Nice display B_B, again must have took some setting up?So many parts to choose from... so little time to read all the data sheets!
Hi Joe, I'm not already and I've only just began my journey.Congratulations, you won't be dissapointed !
Dave
19 pgs sounds like a delight! The 18F46J50 I've been trying to "figure out" has a 554 pg data sheet.Absolutely, I don't think I've read anything to do with PIC's that hasn't had a 19 page (minimum) PDF attached.
No, actually they are pretty easy to use. They have onboard processor to do the "hard work", and you just send serial commands and data to it with SEROUT.Nice display B_B, again must have took some setting up?
It also has a slot for a uSD card (up to 2GB) for photo or video storage.
It even has it's own programming language (4DGL) and can operate as a standalone device without an external processor.
The downside is that they are rather pricey. Mine is an "obsolete" model that I got a pretty good deal on or I probably wouldn't have bought it.
Newer models even have touchscreen capability!
If anyone is curious, here's the info for the display I have. The user manual is at the lower left corner of the page.
http://www.4dsystems.com.au/prod.php?id=2
Here's the code I used to display my avatar and greeting message. The Image is stored on the uSD card.
This is just a snippet from a much larger lump of code that displayed a slide show (about 50 items) with a text description for each.
You may still find a few odd variables and stuff left over from the original chunk of code, but it compiles and works on a 16F726.
Most of the code is just setting up registers and declaring variables and stuff. Once you get to the "main" section there's not much to actually sending data and displaying images already stored on the memory card...
steveCode:'Test program for displaying photos and text - 16F726 w/ uLCD-320-PM2 '**************************************************************** Include "MODEDEFS.BAS" ' Include Shiftin/out modes DEFINE OSC 16 ' 16 MHz Osc. DEFINE HSER_BAUD 38400 ' Set baud rate DEFINE HSER_RCSTA 90h DEFINE HSER_TXSTA 24h DEFINE HSER_SPBRG 25 ' 19200 Baud @ 8MHz, 38400 Baud @ 16MHz @ __config _CONFIG1, _DEBUG_OFF & _PLL_EN & _BORV_2_5 & _BOR_ON & _CP_OFF & _MCLRE_OFF & _PWRT_EN & _WDT_OFF & _INTOSCIO @ __config _CONFIG2, _VCAP_RA0 '---------------------------------------------------------------------------- 'SETUP SOME PORTS AND REGISTERS-----------------???????????????????????????????????---------------- OSCCON=%00110000 'Set Osc to 16MHz. TRISA=%00000000 'Set 'em all to outputs TRISB=%00000010 'Set portB to all outputs except RB1 TRISC=%10000000 'Set portC to all outputs except RC7 ANSELA=%00000000 ' Set all pins to digital ANSELB=%00000000 ' Set all pins to digital ADCON0=%00000000 'ADC off option_reg.7=0 WPUB=%00000010 'ALIAS PINS---------------------------------------------------- to_LCD var PORTC.6 '?????????????????????? from_LCD var PORTC.7 '????????????????????? offbutton var PORTB.1 '???????????????????????? '--------------------------- '---ALLOCATE VARIABLES---------------------------- textstartX var word : textstartX=05 'starting X position for text textstart1YH var word : textstart1YH=01 'starting Y HIGH positon for text line 1 textstart1YL var word : textstart1YL=05 'starting Y LOW positon for text line 1 textstart2YH var word : textstart2YH=01 'starting Y HIGH positon for text line 2 textstart2YL var word : textstart2YL=35 'starting Y LOW positon for text line 2 photostartX var byte : photostartx =22 'starting X position for photo photostartY var BYTE : photostartY = 40 'starting Y position for photo width var byte : width = 200 'image width height_H var byte : height_H = 0 'image height high byte height_L var byte : height_L = 200 'image height low byte addr_H var byte : addr_H=$00 'image address on card HIGH byte addr_M var byte : addr_M=$10 'image address on card MID byte addr_L var byte : addr_L=$00 'image address on card LOW byte '---Font sizes--------------------------------------- fontsize1 var word : fontsize1=01 fontsize2 var word : fontsize2=02 fontsize3 var word : fontsize3=03 '---Predefine a few common colors--------------------------- redH var byte : redH=%11111000 redL var byte : redL=%00000000 greenH var BYTE : greenH=%00000111 greenL var byte : greenL=%11100000 blueH var byte : blueH=%00000000 bluel var byte : bluel=%00011111 yellowH var byte : yellowH=%11111111 yellowL var byte : yellowL=%11100000 magentaH var byte : magentaH=%11111000 magentaL var byte : magentaL=%00011111 cyanH var byte : cyanH=%00000111 cyanL var byte : cyanL=%11111111 orangeH var byte : orangeH=%11111010 orangeL var Byte : orangeL=%11100000 BlackH var Byte : BlackH=%00000000 BlackL var Byte : BlackL=%00000000 '----------------------------------- Goto main: 'skip the subroutines and JGIG\ '---SUBROUTINE TO SHUT DOWN THE LCD DISPLAY "SAFELY" and end the program. (needs power reset to restart) shutdown: HSEROUT [$59,$03,$00] 'power down command pause 250 end '---------------------------------------------------------- '----------------------------------------------------------- Main: PAUSE 2000 'Make sure the LCD is awake Hserout [$42, blackH,blackL] 'background color = black pause 700 Hserout ["O", 01] 'Opaque text pause 5 HSEROUT ["S",13,00,10,3,greenH,greenL,1,1," BYTE_BUTCHER",$00] 'Put user name at top of screen pause 100 HSEROUT [$40,$49,photostartx,00,photostartY,width,height_H,height_L,16,addr_H,addr_M,addr_L] 'grab a photo from the uSD card and display it at the predefined coordinates pause 200 Hserout ["S",textstartX,textstart1YH,textstart1YL,fontsize2,yellowH,yellowL,2,2, " Greetings",$00] 'text line 1 pause 20 Hserout ["S",textstartX,textstart2YH,textstart2YL,fontsize3,cyanH,cyanL,1,1, " PBP users!",$00] 'text line 2 '---------- checkbutton: if offbutton = 0 then gosub shutdown Pause 100 goto checkbutton end
Very clever B_B I must say. Does seem like rather a steep learning curve, although that said I'm surprised at what pieces of code I can actually pick out and understand from your program. I've just got to keep at it I guess.
Whilst we're on LCD's, should I go ahead and order maybe a couple of these?
http://cgi.ebay.co.uk/20x4-LCD-Modul...#ht_2814wt_957
What do we think, a good one to start off with?
Dave
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Hi Joe, you almost make that sound like a challenge...It's the ones I always buy, you can kill them, but you have to work at it
I'm going to order a couple of those and see how it goes, plus a solder-less breadboard.
I'm still not 100% on the cables I need though. On this PC (DELL) I've have USB only but on my old m/c I have USB and a serial port on the back.
So should I just buy a serial cable and fem & male db converter or do I buy a usb.
Here's the link to a website I've found which seems pretty good:
http://www.cabling4less.co.uk/Data_C...FdGX2AodE28VFQ
Bookmarks