When I try to declare the third global variable array with 11 elements the compiler no give any error but the printf function don't work.
Compiler version 4.003
Coding for a 16F628
Code:
// Tablas RAM con los valores de las RPM x 100 para los diferentes puntos.
int Tabla_RPM[PUNTOS_RPM];
int Tabla_Angulos[PUNTOS_RPM];
// Tablas RAM con los puntos de corrección.
int Tabla_Correccion_PickUp[10]; -> When I try to add one more (11) the code crash.
//int Tabla_Correccion_Temperatura[5]; -> When I add this the code in printf function crash
// Variables globales.
int1 Motor_Parado, Ignition_ON; // Módulos activos.
int16 RPM=0; // Revoluciones exactas del motor.
int32 Periodo_RPM, Retardo_Encendido; /* Periodo por RPM medido en
unidades de 8e-6 Segundos.
Retardo de encendido calculado
en uS*/
int Auxiliar, Vueltas, Error;
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Re: Global variable error.
Posted: Mon Oct 12, 2009 7:49 am
Anonymous wrote:
Compiler version 4.003
This is a very old, non-working, compiler version and should never have been released. The v4 compilers became usable around v4.060. see also the sticky thread on top of this forum. Save everybody a lot of time and upgrade to a recent version (current is v4.099, 96 releases newer than your version...)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum