Suggestion: Add MP init code to generated code

General discussion on Visual GLCD Software.
Post Reply
Author
Message
Donald Shimoda
Posts: 553
Joined: 27 Feb 2006 17:00
Location: Argentina
Contact:

Suggestion: Add MP init code to generated code

#1 Post by Donald Shimoda » 10 Nov 2010 16:58

The proyects dont work out of the box, you need to add initialization code to make it work a project with visualglcd code only. Example, i try a sample project for PIC18F722, if you dont add this code at init, it show nothing on my display:

CMCON := CMCON or $07; // turn off comparators
ADCON1 := $0F; // set analog inputs

Just a detail and can drive nuts to newbies.


I think the generated coe must have a initialization for every pic. I remember somebody resolve this on a lib, calling a unique function, sont remember if was yolio or who.
Donald Shimoda.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Suggestion: Add MP init code to generated code

#2 Post by zristic » 11 Nov 2010 08:57

It would be almost impossible to add the init code for all supported devices.
What we can do is to emit a comment saying something like "place the init code here which will make your ports digital..." etc.
Is that ok enough?

Post Reply

Return to “Visual GLCD General”