PDA

View Full Version : Help with me labs Bootloader



teknoman2420
- 20th August 2006, 00:04
i'm using pic basic pro with me labs Bootloader
and CDlite
in the make your own loader page
has setting like adcon and cmcon
are these just temporary
can you change these registers in your program
the adcon is for the ADC and
i want to use the analog port.A 0
with a thermister and display the value on an LCD
but i see scrambled info on screen
i seem to have better luck if i try to just display hello on screen
with Hello.BAS
but tries to display something but only in 3 charactor spacess
i see lettters moving around
Thanks any help apreciated

sorry i forgot code erlier
-----------------------------' PicBasic Pro program to display "Hello World" on LCD

' Define LOADER_USED to allow use of the boot loader.
' This will not affect normal program operation.
DEFINE LOADER_USED 1

' Define LCD registers and bits
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTE
DEFINE LCD_RSBIT 0
DEFINE LCD_EREG PORTC
DEFINE LCD_EBIT 0
DEFINE LCD_BITS 4
DEFINE LCD_LINES 4
DEFINE LCD_COMMANDUS 2500
DEFINE LCD_DATAUS 50


ADCON1 = 7 ' Set PORTA and PORTE to digital
Low PORTE.2 ' LCD R/W line low (W)
Pause 500 ' Wait for LCD to start up


loop: LCDOut $fe, 1 ' Clear screen
Pause 500 ' Wait .5 second

LCDOut "Hello" ' Display "Hello"
Pause 500 ' Wait .5 second

LCDOut "World" ' Move to line 2 and display "World"
Pause 500 ' Wait .5 second

GoTo loop ' Do it forever
End

--------------

mister_e
- 20th August 2006, 09:37
We are not god and can't help if we don't know your PIC model and few more details like crystal speed, config fuses.

More details you give, faster and better the answer will be.