Menu

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.

Show posts Menu

Messages - ericinsomewhere

#1
I have the same problem using LPC922.

I haven't download any code on the LPC922, just checked and changed device configuration only:

- Uncheck "Enable Reset Pin"
- Uncheck "Enable Brownout Detection"
- All other left it as default.
#2
Off-Topic (Read Only) / LPC932A1 vs LPC922
May 13, 2005, 02:48:11 AM
I have a program with the following code to toggle P3.1.

         P3 = P3 | 0x02;
         P3 = P3 & 0xFD;
         P3 = P3 | 0x02;
         P3 = P3 & 0xFD;

And also enable output CPU CLOCK to the pin CLKOUT, P3.0.

Register TRIM and DIVM have been set in power up:

   TRIM = TRIM | 0x40;
   DIVM = 0x00;


I download the same program on LPC932A1 and LPC922, both have the same output on CLKOUT pin.

- On LPC932A1 device, P3.1 toggle in a cycle of CLKOUT, it's fine.
- On LPC922, P3.1 toggle much more slow, around 32 cycle of CLKOUT (I haven't counted the details).

Is it any register to force LPC922 to run on a divided clock cycle? How can I force it to run in full speed, same as LPC932A1?

Anybody can help?

thx.
Eric
#3
thx
#4
I have built a circuit following the app note "http://www.esacademy.com/software/flashmagic/appnotes/ISPHardwareEntryAppNote.pdf" Figure 7, it can program LPC932.

Now I have to switch to LPC922. According to the data sheet of LPC922,  the signals used is PCL and PDA, not TxD and RxD of the app note. How to connect LPC922 to the circuit?

Anybody can help?

Eric

#5
Off-Topic (Read Only) / LPC932A1 cannot work
January 11, 2005, 12:21:46 AM
I build a simple program of LPC932A1 to toggle P0 and P1. It work fine on RIDE and Keil. After download to real device using Flash Magic, nothing happen. Anybody can help?

Is it need to set any starting address?

The code is attached here:

#include

//UCFG1 = 0x43
//   .7 WDTE (Watchdog Timer Reset Enable)
//   .6 RPE   (Reset Pin Enable)
//   .5 BOE   (Brownout Detect Enable)
//   .4 WDSE   (Watchdog Safety Enable)
//   .3 reserved
//   .2/1/0   FOSC (011: Internal RC OSC 7.373 +/-2.5%)

void InitIO(void)
{
   P0M2 = 0xFF;      //All P0 is Push-pull output
   P0M1 = 0x00;

   P1M2 = 0xFF;      //All P1 is Push-pull output
   P1M1 = 0x00;
}

void main(void)
{
   InitIO();
   while(1){
      P0 = 0xFF;
      P0 = 0x00;
      P1 = 0xFF;
      P1 = 0x00;      
   }
}