Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Faustino

Pages: [1]
1
NXPTM M522XX, KINETIS and i.MX RT / Re: servers break down
« on: September 25, 2009, 10:16:46 PM »
Thanks for answer me
Sorry I am trying to show the ADC data into the webpage... I am not using serial interface I left this lines because this was the example code that you gave me and works very well. Then I used the ADC example and I tried to convert the value and put in a buffer with the function fnbufferdec, after that I put the buffer in an xml file created in the file http.c. This works fine but only for some seconds, I can see the value once time and then the web page cannot be refresh and in the demo board turn on the Ethernet leds such as link, spd, act.

thank you and I am sorry for my bad english.

Best regards

2
NXPTM M522XX, KINETIS and i.MX RT / servers break down
« on: September 25, 2009, 09:04:01 PM »
Hi Mark
I have a problem with the server. The server breaks down when I use this task especially when I use fnbufferdec function, only work mybe 20 sec and reset the server.

I hope you can help me
Best Regards

this is the code that I am using:

CHAR fabuffer[1];
CHAR *faptrBuffer=fabuffer;


void fnMyFirstTask(TTASKTABLE *ptrTaskTable)
{
  int iADC_delay = -1;
    ADC_SETUP adc_setup;                                                 // interrupt configuration parameters
    ADC_RESULTS results;
    adc_setup.int_type = ADC_INTERRUPT;                                  // identifier when configuring
    adc_setup.int_adc_bit = 0;
    adc_setup.int_adc_result = &results;
    adc_setup.int_adc_mode = (ADC_READ_ONLY | ADC_GET_RESULT | ADC_ALL_RESULTS);
    do {
        fnConfigureInterrupt((void *)&adc_setup);                        // get result
        iADC_delay++;
    } while (results.ucADC_status[0] == ADC_RESULT_NOT_READY);           // 'poll until the result is ready

    if (results.ucADC_status[0] != ADC_RESULT_NOT_READY) {
       
     fnDebugMsg("ADC value = ");
     faptrBuffer = fnBufferDec((results.sADC_value[0]>>6), 2, faptrBuffer);
     fnDebugDec((results.sADC_value[0]>>6), 2);                           
     fnDebugMsg("\r\n");
     fnDebugMsg("Wait = ");
     fnDebugDec(iADC_delay, 0);                                    // display the wait count value
     fnDebugMsg("\r\n");
       
    }
    else {
        fnDebugMsg("ADC not ready\r\n");
    }
   
}

3
NXPTM M522XX, KINETIS and i.MX RT / Re: How can I use the ADC
« on: September 13, 2009, 08:23:14 PM »
Hi Mark
Thanks a lot, this Works perfectly.
Now I have been trying to put the value into the web page but I don’t know exactly how to do it I created a case y: in fnInsertString() function.
I create the variable buffer... into the function
unsigned char buffer[]={"hola"};


   case 'y':
           {
           cPtr=(CHAR *)&buffer[0];
           return cPtr;
           }

I try it, and put in html file £vy0 and I can’t see the characters hola…
I would like to know how to put the adc value, but first i want to know how it is working, what i am doing wrong?

Best Regards


4
NXPTM M522XX, KINETIS and i.MX RT / Re: How can I use the ADC
« on: September 12, 2009, 12:46:45 AM »
I am sorry I searched in the forum and I found my answer, I saw the SP7 and ADC topic , and now I am answering how can I configure all the chanels …
and then when I put results.sADC_value[0] y get the value of channel 0 and when I put results.sADC_value[7] y get 7 channel.

5
NXPTM M522XX, KINETIS and i.MX RT / How can I use the ADC
« on: September 11, 2009, 10:40:23 PM »
Hello
Hi, I want to know how I can configure the ADC for run simultaneously converters A and B with all interrupts disabled, exist a sample code for use de ADC?
Best regards.


6
µTasker general / working with M52233 demo board
« on: September 04, 2009, 08:16:17 PM »
hi guys

I am Faustino Castellanos I have been working in my application professional project it is a thesis project, I have been working with TCP/IP stack and I have done some task in this RTOS but I want to change my own code to this OS.
Basically my project use the web server and using the AJAX technique you can see critical condition such as, temperature, battery banks, and if exist AC power or not, but I dont know how to use SMTP protocol. For example if one of these sensor are in critical condition I want to send an email alerting, and other complicate thing that I have had in the other stack its changing the ip, mask , gateway via web page, I know how to do that but I don’t know how to save these values into de flash, because if I change the ip when  I restart the microcontroller  I have the first value that I had.
I hope you can tell me if its possible to emigrate my code to the utasker OS, and how can I start without complication because I have bit time for finish my project.

Pages: [1]