Visual GLCD AND ANALOG Read Problem

General discussion on Visual GLCD Software.
Post Reply
Author
Message
semmoor
Posts: 107
Joined: 09 Mar 2012 16:49

Visual GLCD AND ANALOG Read Problem

#1 Post by semmoor » 23 Mar 2016 15:55

hello everybody.

i have a problem, when i write a function to read ADC value(AN8) on mini-32 pic32 the program stops working.

But when i remove the function the program works fine i can use the touch panel.

i'm rally trying to display the result of ADC on a label created by VGLCD with no success !

this the code in the main:

Code: Select all


#include "PROJECT_objects.h"

unsigned int adc_value;
char adc_value_text[6];

void adc_function()
{
 adc_value = ADC1_Read(8);
 wordtostr(adc_value,adc_value_text);
 ltrim(adc_value_text);
 ADC_text.Caption = adc_value_text;
}

void main() 
{
  Start_TP();
  
  config();

  while (1) 
  {
    Check_TP(); 
    adc_function(); //calling ADC function
  }
}

i don't have a problem in the other parts of the code file. but when i call ADC function it immediately stop working!!!

semmoor
Posts: 107
Joined: 09 Mar 2012 16:49

Re: Visual GLCD AND ANALOG Read Problem

#2 Post by semmoor » 23 Mar 2016 18:58

Never mind i solved the problem.

thanks.

Mihai Popa
Posts: 28
Joined: 20 Jul 2010 13:56

Re: Visual GLCD AND ANALOG Read Problem

#3 Post by Mihai Popa » 19 Feb 2018 15:50

Hello,

Can you post the solution for this? I am in the same situatrion.

Thank you,

M.

Post Reply

Return to “Visual GLCD General”