Dear MikroE
are you sure that mikrobasic work correctly with PIC18F26K83? I use EASYPIC7 MIKROPROG
You have tested the library LCD?
please send me an example.
dim
LCD_RS as sbit at RB4_bit
LCD_EN as sbit at RB5_bit
LCD_D7 as sbit at RB3_bit
LCD_D6 as sbit at RB2_bit
LCD_D5 as sbit at RB1_bit
LCD_D4 as sbit at RB0_bit
LCD_RS_Direction as sbit at TRISB4_bit
LCD_EN_Direction as sbit at TRISB5_bit
LCD_D7_Direction as sbit at TRISB3_bit
LCD_D6_Direction as sbit at TRISB2_bit
LCD_D5_Direction as sbit at TRISB1_bit
LCD_D4_Direction as sbit at TRISB0_bit
' End Lcd module connections
WITH THIS DECLARATION THE COMPILTER HAVE ERRORS.
LCD libray with PIC18f26k83 64Mhz internal
- IvanJeremic
- mikroElektronika team
- Posts: 316
- Joined: 05 Sep 2022 14:32
Re: LCD libray with PIC18f26k83 64Mhz internal
Hi,
You can find a LCD example in the Project manager of the MikroBasic compiler.
Also can you share what errors occur?
Regards,
Ivan.
You can find a LCD example in the Project manager of the MikroBasic compiler.
Also can you share what errors occur?
Regards,
Ivan.
Re: LCD libray with PIC18f26k83 64Mhz internal
There is a bug in the MikroE file PIC18F26K83.c
Needs MikroE to fix
No definitions for RB0_bit or RB1_bit
As a quick fix, working code is attached
Needs MikroE to fix
No definitions for RB0_bit or RB1_bit
Code: Select all
sfr unsigned short volatile PORTB absolute 0x3FCB;
const register unsigned short int RB2 = 2;
sbit RB2_bit at PORTB.B2;
const register unsigned short int CCP2_PA2 = 3;
sbit CCP2_PA2_bit at PORTB.B3;
const register unsigned short int RB4 = 4;
sbit RB4_bit at PORTB.B4;
const register unsigned short int RB5 = 5;
sbit RB5_bit at PORTB.B5;
const register unsigned short int RB6 = 6;
sbit RB6_bit at PORTB.B6;
const register unsigned short int RB7 = 7;
sbit RB7_bit at PORTB.B7;
const register unsigned short int RB3 = 3;
sbit RB3_bit at PORTB.B3;
- Attachments
-
- PIC18F26K83.zip
- (77.55 KiB) Downloaded 8 times
Start every day with a smile...... (get it over with)
Re: LCD libray with PIC18f26k83 64Mhz internal
hi,
work with 64Mhz internal oscillator? work all lcd library commands?
best regards
work with 64Mhz internal oscillator? work all lcd library commands?
best regards
Re: LCD libray with PIC18f26k83 64Mhz internal
I believe that my project uses 64MHz internal oscillator, so YES
"work all lcd library commands?"
Not tried all library functions, but I assume they all work - YES
Start every day with a smile...... (get it over with)
Re: LCD libray with PIC18f26k83 64Mhz internal
However i'm verifying that mikrobasic has many bugs, do you think the mikroc version has the same problems? On the mikroe sitethe download of the program is started in 2019 with always versioen 7.6.0, it would be good for mikroe to update what they sell, or at least they trigger the review if they have fixed something. In to necto studio compiler lost the pic16f26k83, which the previous compilers those have.
- IvanJeremic
- mikroElektronika team
- Posts: 316
- Joined: 05 Sep 2022 14:32
Re: LCD libray with PIC18f26k83 64Mhz internal
Hi,
Mikro PRO compilers are not planned to be abandoned, most of our developers attention is going towards Necto hence the lack of updates for Mikro PRO compilers.
Regards,
Ivan.
Mikro PRO compilers are not planned to be abandoned, most of our developers attention is going towards Necto hence the lack of updates for Mikro PRO compilers.
Regards,
Ivan.
Re: LCD libray with PIC18f26k83 64Mhz internal
HI,
I hope for an update soon for all the bugs reported for the PRO compilers.
I hope for an update soon for all the bugs reported for the PRO compilers.
Re: LCD libray with PIC18f26k83 64Mhz internal
Another bug reported a few years ago is that the pic18 EEprom library causes the pic to freeze. I recently downloaded MIkrobasic and the problem persists.
I hope this will be resolved soon too.
I hope this will be resolved soon too.
Re: LCD libray with PIC18f26k83 64Mhz internal
I have tested the library LCD and i have a proble with pic18f26k83 @ 64MHz
When send the second line on LCD not work.
You have the same problem?
Best regards.
When send the second line on LCD not work.
You have the same problem?
Best regards.