Hi everyone ,
I just become to try GCBasic and i found it is a very good job for Pic Microchip family . Easy to learn , to write ( i use Crimson editor) , the result is perfect for simple applications . I am very happy to work with this free basic and open source compiler . Thanks !
But i have a little problem .When i try to apply my programs to Atmega8 and LCD (4 bits) , the result is erratic . Only numbers are correctly displayed (0 to 100). My LCD is correctly wired , ( it works very well with PIC 16F84 and GCBasic) , fuses are well programmed ( an identic program works perfect with Mikrobasic for AVR)
I submit you my little program .Have I forgotten something ?
#chip m8 , 4
#define LCD_IO 4
#define LCD_DB4 PortD.4
#define LCD_DB5 PortD.5
#define LCD_DB6 PortD.6
#define LCD_DB7 PortD.7
#define LCD_RS PORTD.2
#define LCD_NO_RW
#define LCD_Enable PORTD.3
dim counter as byte
cls
wait 50 ms
Print " LCD test"
locate 1,1
print "counter="
do while true
counter=counter+1
if counter>100 then
counter=0
end if
locate 1,10
print " "
locate 1,10
print counter
wait 500 ms
loop
thanks for your answers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for reporting that bug! I came across it myself a couple of days ago, it's caused by a bug in the internal assembler of GCBASIC. I've just uploaded a patch for GCBASIC that should fix this - please try downloading the latest GCBASIC update from http://gcbasic.sourceforge.net/update.html and let us know if it helps!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your very fast response . I am impressed !
Very good , Hugh . I can now display strings on LCD with Atmega8 .
GcBasic is now runing with Pics and AVR !
I am translating help.chm in French . If you want I will send you the achieved file .
Thanks
Gerard
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everyone ,
I just become to try GCBasic and i found it is a very good job for Pic Microchip family . Easy to learn , to write ( i use Crimson editor) , the result is perfect for simple applications . I am very happy to work with this free basic and open source compiler . Thanks !
But i have a little problem .When i try to apply my programs to Atmega8 and LCD (4 bits) , the result is erratic . Only numbers are correctly displayed (0 to 100). My LCD is correctly wired , ( it works very well with PIC 16F84 and GCBasic) , fuses are well programmed ( an identic program works perfect with Mikrobasic for AVR)
I submit you my little program .Have I forgotten something ?
#chip m8 , 4
#define LCD_IO 4
#define LCD_DB4 PortD.4
#define LCD_DB5 PortD.5
#define LCD_DB6 PortD.6
#define LCD_DB7 PortD.7
#define LCD_RS PORTD.2
#define LCD_NO_RW
#define LCD_Enable PORTD.3
dim counter as byte
cls
wait 50 ms
Print " LCD test"
locate 1,1
print "counter="
do while true
counter=counter+1
if counter>100 then
counter=0
end if
locate 1,10
print " "
locate 1,10
print counter
wait 500 ms
loop
thanks for your answers
Thanks for reporting that bug! I came across it myself a couple of days ago, it's caused by a bug in the internal assembler of GCBASIC. I've just uploaded a patch for GCBASIC that should fix this - please try downloading the latest GCBASIC update from http://gcbasic.sourceforge.net/update.html and let us know if it helps!
Thanks for your very fast response . I am impressed !
Very good , Hugh . I can now display strings on LCD with Atmega8 .
GcBasic is now runing with Pics and AVR !
I am translating help.chm in French . If you want I will send you the achieved file .
Thanks
Gerard