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.


Topics - Faustino

Pages: [1]
1
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");
    }
   
}

2
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.


3
µ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]