LCD libray with PIC18f26k83 64Mhz internal

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
vartisrl
Posts: 15
Joined: 22 Jun 2023 10:09

LCD libray with PIC18f26k83 64Mhz internal

#1 Post by vartisrl » 06 Apr 2024 20:45

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.

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: LCD libray with PIC18f26k83 64Mhz internal

#2 Post by IvanJeremic » 07 Apr 2024 09:57

Hi,

You can find a LCD example in the Project manager of the MikroBasic compiler.

Also can you share what errors occur?

Regards,

Ivan.

hexreader
Posts: 1784
Joined: 27 Jun 2010 12:07
Location: England

Re: LCD libray with PIC18f26k83 64Mhz internal

#3 Post by hexreader » 07 Apr 2024 13:08

There is a bug in the MikroE file PIC18F26K83.c

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;
As a quick fix, working code is attached
Attachments
PIC18F26K83.zip
(77.55 KiB) Downloaded 8 times
Start every day with a smile...... (get it over with) :)

vartisrl
Posts: 15
Joined: 22 Jun 2023 10:09

Re: LCD libray with PIC18f26k83 64Mhz internal

#4 Post by vartisrl » 08 Apr 2024 14:37

hi,
work with 64Mhz internal oscillator? work all lcd library commands?
best regards

hexreader
Posts: 1784
Joined: 27 Jun 2010 12:07
Location: England

Re: LCD libray with PIC18f26k83 64Mhz internal

#5 Post by hexreader » 08 Apr 2024 17:53

vartisrl wrote:
08 Apr 2024 14:37
hi,
work with 64Mhz internal oscillator? best regards
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) :)

vartisrl
Posts: 15
Joined: 22 Jun 2023 10:09

Re: LCD libray with PIC18f26k83 64Mhz internal

#6 Post by vartisrl » 09 Apr 2024 13:56

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.

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: LCD libray with PIC18f26k83 64Mhz internal

#7 Post by IvanJeremic » 10 Apr 2024 09:54

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.

vartisrl
Posts: 15
Joined: 22 Jun 2023 10:09

Re: LCD libray with PIC18f26k83 64Mhz internal

#8 Post by vartisrl » 10 Apr 2024 11:08

HI,
I hope for an update soon for all the bugs reported for the PRO compilers.

vartisrl
Posts: 15
Joined: 22 Jun 2023 10:09

Re: LCD libray with PIC18f26k83 64Mhz internal

#9 Post by vartisrl » 10 Apr 2024 14:35

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.

vartisrl
Posts: 15
Joined: 22 Jun 2023 10:09

Re: LCD libray with PIC18f26k83 64Mhz internal

#10 Post by vartisrl » 15 Apr 2024 11:04

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.

Post Reply

Return to “mikroBasic PRO for PIC General”