
Originally Posted by
PICante
Hello again!
I found a few differences in “P16F88.inc” compared to the datasheet, one example is “BODEN” vs “BOREN” and I am not sure what to make of this. Here’s how the code looks now:
@ __CONFIG _CONFIG1, _CP_OFF & _CCP1_RB0 & _DEBUG_OFF & _WRT_PROTECT_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _MCLR_OFF & _PWRTE_OFF & _WDT_OFF & _INTRC_IO
@ __CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF
DEFINE OSC 8
OSCCON = %01110000 ' INTRC = 8MHz
TRISB = 0
'---------------- move LCD to portB---------
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 0
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 5
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 4
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
'------------------
LCDOUT $FE, 1,"TEST"
Thanks!
Do it the way it is in the 16F88.inc file
The configs liisted require you to use MPASM as the assembler.
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.
Bookmarks