I added the code
PAUSE 500 : LCDOUT $FE,1 : PAUSE 250 ; Initialize LCD
with the same result. I am using the 16F877a
I added the code
PAUSE 500 : LCDOUT $FE,1 : PAUSE 250 ; Initialize LCD
with the same result. I am using the 16F877a
Apples it is ..
Built a 16F877A breadboard. With LCD on the above mentioned ports.
Still haven't hooked up the ribbon yet, just wanted 1 LCD at this point.
Here's the Breadboard.
Click image to enlarge
And here's the program it's running.Can you see anything I've done different??Code:@ __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF ADCON1 = 7 CMCON = 7 DEFINE OSC 4 ;----[ Change these to match your LCD ]--------------------------------------- LCD_DB4 VAR PORTB.0 LCD_DB5 VAR PORTB.1 LCD_DB6 VAR PORTB.2 LCD_DB7 VAR PORTB.3 LCD_RS VAR PORTB.4 LCD_E VAR PORTB.7 LCD_Lines CON 2 ' # of Lines on LCD, 1 or 2 (Note: use 2 for 4 lines) LCD_DATAUS CON 50 ' Data delay time in us LCD_COMMANDUS CON 2000 ' Command delay time in us INCLUDE "LCD_AnyPin.pbp" ; *** Include MUST be AFTER LCD Pin assignments **** PAUSE 500 : LCDOUT $FE,1 : PAUSE 250 ; Initialize LCD (You may not need this, ; but some displays are picky) LCDOUT $FE,1,"Hello wildbilly",$FE,$C0,"Must be something",$FE,$94,"In the Hardware" Main: ; toggle LED pause 1000 goto Main
<br>
DT
Your apple must be the Macintosh because yours is working and mine is not.
Ok, here is what I have found. I have loaded your code to a new main program and could not compile it. I am getting this error: "opcode expected instead of '_config' "
for this line @ __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF
and I get these errors for this line : INCLUDE "LCD_AnyPin.pbp"
"opcode expected instead of 'writeport' "
"opcode expected instead of 'delayus' "
"opcode expected instead of 'outputport' "
I have checked the Hijack code included in the PBPPIC14.lib file and I think it was modified correctly. Any clues?
Thanks
Ah Ha, You aren't using MPASM as the assembler.I am getting this error: "opcode expected instead of '_config'
Almost anything written with ASM mixed in the program, needs to be compiled with MPASM. The assembler that comes with PBP is OK for PBP itself, but it just doesn't have the capabilities needed for ASM, even though sometimes it will compile OK.
Here's a hex file for mine if you want to try it.
If yours isn't runnung at 4Mhz, I'll change it to your crystal.
<br>
DT
Thanks for noticing Ioannis,
The first breadboard I ever bought came with a box of 3M pre-cut jumpers.
I just thought that's the way it's supposed to be done.
Thanks to my "Glowing Eyed Monsters",
I also learned to trim the leads off of the parts so they sit flat on the breadboard.
There's another breadboard of mine in that thread too. Same style.
I never knew how bad a breadboard could be till I ran across this ...
http://cs.nyu.edu/~jhan/ledtouch/
<br>
DT
Yeah! He is indeed very neat. I am inspired to do the same. The background looks like a chair seat. Darrel your wildbilly.hex file ran ok. I have never used MPASM. I should try and get it going.
Thank you.
DING! Give that man a cigar.The background looks like a chair seat.
I forgot to answer it. oops.
Just go here... at the bottom of the page, install the MPLAB IDE v8.00 Full Release Zipped InstallationI have never used MPASM. I should try and get it going
http://www.microchip.com/stellent/id...&part=SW007002
Are you using MicroCode Studio for the IDE?
<br>
DT
one of the less neat prototype i've never ever saw ...
http://www.botmag.com/articles/bionic_stamp.shtml
![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks