MikroC Pro
-
- Posts: 6
- Joined: 11 Mar 2016 20:12
MikroC Pro
I am using MikroC Pro for PIC and easypic v7 on Windows with a 18F45K22. When I attempt to build and programme the PIC I get 'easypic v8 and 18F45K22 not found'. I cannot find how to change the default programmer to use easypic v7.
- IvanJeremic
- mikroElektronika team
- Posts: 316
- Joined: 05 Sep 2022 14:32
Re: MikroC Pro
Hi,
Can you share your project with me so I can try it out and see if I get the same issue?
Regards,
Ivan.
Can you share your project with me so I can try it out and see if I get the same issue?
Regards,
Ivan.
-
- Posts: 6
- Joined: 11 Mar 2016 20:12
Re: MikroC Pro
Hi Ivan
Thanks for helping. I am experimenting with programming a 128x64 graphic display.
This is the .c file. I do not know haw to send you my project but this may help.
#define GLCD_CS1 : Chip select 1 signal pin
#define GLCD_CS2 : Chip select 2 signal pin
#define GLCD_EN : Enable signal pin
#define GLCD_RST : Reset signal pin
#define GLCD_DataPort : Data port
#define GLCD_CS1_Direction : Direction of the Chip select 1 pin
#define GLCD_CS2_Direction : Direction of the Chip select 2 pin
#define GLCD_RS_Direction : Direction of the Register select signal pin
#define GLCD_RW_Direction : Direction of the Read/Write signal pin
#define GLCD_EN_Direction : Direction of the Enable signal pin
#define GLCD_RST_Direction : Direction of the Reset signal pin
#include <easypic_v7.h>
#include <glcd.h>
#include <p18f45k22.h>
void Glcd_Init(){ // glcd pinout settings
char GLCD_DataPort at PORTD;
sbit GLCD_CS1 at RB0_bit;
sbit GLCD_CS2 at RB1_bit;
sbit GLCD_RS at RB2_bit;
sbit GLCD_RW at RB3_bit;
sbit GLCD_EN at RB4_bit;
sbit GLCD_RST at RB5_bit;
sbit GLCD_CS1_Direction at TRISB0_bit;
sbit GLCD_CS2_Direction at TRISB1_bit;
sbit GLCD_RS_Direction at TRISB2_bit;
sbit GLCD_RW_Direction at TRISB3_bit;
sbit GLCD_EN_Direction at TRISB4_bit;
sbit GLCD_RST_Direction at TRISB5_bit;
ANSELA = 0;
ANSELB = 0;
}
void main(){
Glcd_Init();
Glcd_Set_Font(Font_Glcd_5x7, 5, 7, 32);
Glcd_Write_Text("Hello world!", 10, 2, 1);
}
Thanks for helping. I am experimenting with programming a 128x64 graphic display.
This is the .c file. I do not know haw to send you my project but this may help.
#define GLCD_CS1 : Chip select 1 signal pin
#define GLCD_CS2 : Chip select 2 signal pin
#define GLCD_EN : Enable signal pin
#define GLCD_RST : Reset signal pin
#define GLCD_DataPort : Data port
#define GLCD_CS1_Direction : Direction of the Chip select 1 pin
#define GLCD_CS2_Direction : Direction of the Chip select 2 pin
#define GLCD_RS_Direction : Direction of the Register select signal pin
#define GLCD_RW_Direction : Direction of the Read/Write signal pin
#define GLCD_EN_Direction : Direction of the Enable signal pin
#define GLCD_RST_Direction : Direction of the Reset signal pin
#include <easypic_v7.h>
#include <glcd.h>
#include <p18f45k22.h>
void Glcd_Init(){ // glcd pinout settings
char GLCD_DataPort at PORTD;
sbit GLCD_CS1 at RB0_bit;
sbit GLCD_CS2 at RB1_bit;
sbit GLCD_RS at RB2_bit;
sbit GLCD_RW at RB3_bit;
sbit GLCD_EN at RB4_bit;
sbit GLCD_RST at RB5_bit;
sbit GLCD_CS1_Direction at TRISB0_bit;
sbit GLCD_CS2_Direction at TRISB1_bit;
sbit GLCD_RS_Direction at TRISB2_bit;
sbit GLCD_RW_Direction at TRISB3_bit;
sbit GLCD_EN_Direction at TRISB4_bit;
sbit GLCD_RST_Direction at TRISB5_bit;
ANSELA = 0;
ANSELB = 0;
}
void main(){
Glcd_Init();
Glcd_Set_Font(Font_Glcd_5x7, 5, 7, 32);
Glcd_Write_Text("Hello world!", 10, 2, 1);
}
- IvanJeremic
- mikroElektronika team
- Posts: 316
- Joined: 05 Sep 2022 14:32
Re: MikroC Pro
Hi,
Can you ZIP the project and send it like that?
I need to see the libraries and the source paths.
Regards,
Ivan.
Can you ZIP the project and send it like that?
I need to see the libraries and the source paths.
Regards,
Ivan.