Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6909351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:40:42+00:00 2026-05-27T08:40:42+00:00

I am working on lpc2468 ARM-based microcontroller. I am not able to configure the

  • 0

I am working on lpc2468 ARM-based microcontroller. I am not able to configure the UART1 of the controller. Previously I was using UART0 for the same purpose, but due to some changes in hardware now I have to use UART1.

I want to connect GPRS module (SIMCOM 300) to the UART1 of the microcontroller. Here’s my code so far:

void init_serial_gprs (void){
    PINSEL7  |= 0x0000000F;
    U1LCR  = 0x00000080;
    U1DLL  = 0x00000041;
    U1DLM  =   0x00000000;
    U1LCR  = 0x03;
    VICVectAddr7 = (unsigned)serial1_isr;
    VICIntEnable = 1 << 7;
    SBUF= U1RBR;
    U1IER = 3;
}

void serial1_isr(void) __irq {
    volatile char dummy;
    volatile UWORD32 IIR1;

    /*------------------------------------------------
     Repeat while there is at least one interrupt source.
     ------------------------------------------------*/
    while (((IIR1 = U1IIR) & 0x01) == 0)
    {
        switch (IIR1 & 0x0E)
        {
            case 0x06: /* Receive Line Status */
                dummy = U1LSR;  /* Just clear the interrupt source */
                break;

            case 0x04: /* Receive Data Available */
            case 0x0C: /* Character Time-Out */
                SBUF= U1RBR;
                if(genflag.fl_m_psw || new_st == 0 ||new_st == 0x1f){
                    if(genflag.gprs_con)  receive_data();
                    else
                        receive_data_gprs();
                }
                break;

            case 0x02: /* THRE Interrupt */
                if(genflag.gprs_con) transfer_data();
                else transfer_data_gprs();
                dummy   = U1LSR;
                break;

            default:
                break;
        }
    }
    VICVectAddr = 0; /* Acknowledge Interrupt */
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:40:43+00:00Added an answer on May 27, 2026 at 8:40 am

    did you try polling the serial port first against a dumb terminal (hyperterm, minicom, putty) to make sure you have the basics then move on to interrupts?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a project on lpc2468 and I need to configure the
Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app
Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB.
Working sample using one Table SELECT t.* FROM ( SELECT TITLE.name, (TITLE.value-TITLE.msp) AS Lower,
Working on a console application using Delphi 7, and have run into a problem.
Working on a new way of using an already existing searchengine in an application.
Working on a mobile application using jquery mobile and phonegap framework. My question is
Working with dates in ruby and rails on windows, I'm having problems with pre-epoch
Working with a SqlCommand in C# I've created a query that contains a IN
Working on a project at the moment and we have to implement soft deletion

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.