Several problems PIC AI/Necto
Posted: 20 Feb 2022 19:58
I've been using the Pro Compiler legacy systems for years. I own all of the C PIC, ARM DsPIC etc. compilers,VTFT and several dev boards. All have served me well for professional use.
I just recently made a major upgrade purchase which includes
MikroC PIC AI compiler
MikroC PIC32 AI compiler
Fusion for PICV8
EasyPIC V8
3", 4" and 7" TFTs and about 6 MCU cards.
First, let me say thank you for NOT providing a discounted upgrade path for any of that, especially the compilers. I've read that you only provided that for a limited time period. Ridiculous.
I am having a multitude of problems. I will address just one here to make it simple as it might provide some insight to the others.
On the EasyPIC V8, I just wanted to get a simple LCD module up and running in Necto as a start of a new project. I cant get it to work.
It is a Legacy project (I have no use for SDK). I enabled the 2 LCD libraries and cant get this simple code to run. I have tried several processors including the default 18F47K42. The cores seemed to be up and running and stable.
/// LCD module connections
sbit LCD_RS at RA3_bit;
sbit LCD_EN at RB1_bit;
sbit LCD_D4 at RB2_bit;
sbit LCD_D5 at RB3_bit;
sbit LCD_D6 at RB4_bit;
sbit LCD_D7 at RB5_bit;
sbit LCD_RS_Direction at TRISA3_bit;
sbit LCD_EN_Direction at TRISB1_bit;
sbit LCD_D4_Direction at TRISB2_bit;
sbit LCD_D5_Direction at TRISB3_bit;
sbit LCD_D6_Direction at TRISB4_bit;
sbit LCD_D7_Direction at TRISB5_bit;
//// End LCD module connections
void main(void)
{
Lcd_Init(); // Initialize LCD
Lcd_Cmd(_LCD_CLEAR); // Clear display
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
Lcd_Out(1,1,"Hello");
while (1)
{ }
}
I suspect it has something to do with an I/O layer or something as I seem to be missing signals from portb on the scope. Yes, I did set all as digital and all special functions disabled. Any ideas?
I even tried making a hex with the old Pro compilers in an attempt to get it uploaded to the V8 board using CodeGrip Suite. It doesn't work. The chip doesnt seem to write properly at any speed. Can you shed some light on this before I spend hours trying to figure out why?
Also let me comment that not providing an LCD contrast control for either of these V8 boards is nuts, especially considering the price tags. And, why fix the LCD power level at 5V and not provide a simple switch for 3.3???? Incredible. I'm going to have to build my own backpack board to accomplish this.
Im sorry if I sound irritated but Ive been working on this for nearly 2 weeks and am way behind schedule. I would appreciate any thoughts here.
I just recently made a major upgrade purchase which includes
MikroC PIC AI compiler
MikroC PIC32 AI compiler
Fusion for PICV8
EasyPIC V8
3", 4" and 7" TFTs and about 6 MCU cards.
First, let me say thank you for NOT providing a discounted upgrade path for any of that, especially the compilers. I've read that you only provided that for a limited time period. Ridiculous.
I am having a multitude of problems. I will address just one here to make it simple as it might provide some insight to the others.
On the EasyPIC V8, I just wanted to get a simple LCD module up and running in Necto as a start of a new project. I cant get it to work.
It is a Legacy project (I have no use for SDK). I enabled the 2 LCD libraries and cant get this simple code to run. I have tried several processors including the default 18F47K42. The cores seemed to be up and running and stable.
/// LCD module connections
sbit LCD_RS at RA3_bit;
sbit LCD_EN at RB1_bit;
sbit LCD_D4 at RB2_bit;
sbit LCD_D5 at RB3_bit;
sbit LCD_D6 at RB4_bit;
sbit LCD_D7 at RB5_bit;
sbit LCD_RS_Direction at TRISA3_bit;
sbit LCD_EN_Direction at TRISB1_bit;
sbit LCD_D4_Direction at TRISB2_bit;
sbit LCD_D5_Direction at TRISB3_bit;
sbit LCD_D6_Direction at TRISB4_bit;
sbit LCD_D7_Direction at TRISB5_bit;
//// End LCD module connections
void main(void)
{
Lcd_Init(); // Initialize LCD
Lcd_Cmd(_LCD_CLEAR); // Clear display
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
Lcd_Out(1,1,"Hello");
while (1)
{ }
}
I suspect it has something to do with an I/O layer or something as I seem to be missing signals from portb on the scope. Yes, I did set all as digital and all special functions disabled. Any ideas?
I even tried making a hex with the old Pro compilers in an attempt to get it uploaded to the V8 board using CodeGrip Suite. It doesn't work. The chip doesnt seem to write properly at any speed. Can you shed some light on this before I spend hours trying to figure out why?
Also let me comment that not providing an LCD contrast control for either of these V8 boards is nuts, especially considering the price tags. And, why fix the LCD power level at 5V and not provide a simple switch for 3.3???? Incredible. I'm going to have to build my own backpack board to accomplish this.
Im sorry if I sound irritated but Ive been working on this for nearly 2 weeks and am way behind schedule. I would appreciate any thoughts here.