Keil Logo Arm Logo

Discussion Forum

LPC2368 Capture MCB2300-Board

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Andreas Metz
Posted
6-Sep-2007 09:37 GMT
Toolset
ARM
New! LPC2368 Capture MCB2300-Board

Hi,

I'm experementing with the MCB2300-board.
I have to use two capture-modules but the second doesn't take the Interrupt.s

Can I use every timer to load the capture2? -Or must I use the timer2?

Read-Only
Author
Per Westermark
Posted
6-Sep-2007 10:23 GMT
Toolset
ARM
New! RE: LPC2368 Capture MCB2300-Board

What does the data sheet says?

Read-Only
Author
Andreas Metz
Posted
6-Sep-2007 10:28 GMT
Toolset
ARM
New! RE: LPC2368 Capture MCB2300-Board

As well as I understand the data sheet, it has to work.
But I'm not the best in English.

Read-Only
Author
Per Westermark
Posted
6-Sep-2007 11:19 GMT
Toolset
ARM
New! RE: LPC2368 Capture MCB2300-Board

When more than one timer may be used to directly drive a feature, the data sheet has to show the relevant registers to configure - these registers will then have bits to specify which timer to use.

In short, whenever a feature is used, you have to check which registers to configure, and what possible values there are for all the bits in the registers.

Read-Only
Author
Andreas Metz
Posted
6-Sep-2007 16:14 GMT
Toolset
ARM
New! RE: LPC2368 Capture MCB2300-Board

I think you mean the T[0/1/2/3]CCR.
In moment Timer1 works with Capture1.1.
But I can't take Capture0, because the net will be used from the LCD panel too. So I use the CAP2.1

I think everything with my initializing is wrong!? :

PCONP = 0;      // all Power off^
PCONP |= 0x00680FFE;   // I2S-MODUL off, Timer2 on
                       // rest as default
PINSEL0 = 0x00000C00;
PINSEL3 = 0x000000C0;
VICVectAddr26 = (unsigned long)druck_lisr;
VICVectAddr5 = (unsigned long)temp_hisr;
VICIntEnable = (1 << 26);
VICIntEnable = (1 << 5);
VICVectCntl26 = 0xF;
VICVectCntl5 = 0xE;
T2TCR=1;
T2CCR=0x00000140;
T1TCR=1;
T1CCR=0x00000028;

Perhaps there can't be used two capture-modules on the MCB2300?

Read-Only
Author
Reinhard Keil
Posted
6-Sep-2007 18:01 GMT
Toolset
ARM
New! RE: LPC2368 Capture MCB2300-Board

You may simply dis-mount the LCD panel to free-up the I/O pins.

Read-Only
Author
Andreas Metz
Posted
6-Sep-2007 18:15 GMT
Toolset
ARM
New! RE: LPC2368 Capture MCB2300-Board

yes, but I need the LCD panel.
in short: I have a board with sensors for atmosphere pressure and for temperature. I Have to measure both and to show it on the LCD Panel.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.