Reply by swaroop jr May 19, 20102010-05-19
HI,

I want to enable Timer0 interrupt. But IRQ interrupt occurs as soon as IRQ bit is cleared at bootup. This is happening when I run my code on board. I have added a breakpoint in first line of ISR. But this is not happening when I run my code in ARM debugger IDE software. As I understand IRQ interrupt should happen when both IRQ bit is enabled in CPSR and LBP2129 VIC. Please let me know if anyone faced this problem. My code: -

AREA Vect, CODE, READONLY
; *****************
; Vector Table
; *****************
LDR PC, Reset_Addr
LDR PC, Undefined_Addr
LDR PC, SWI_Addr
LDR PC, Prefetch_Addr
LDR PC, Abort_Addr
NOP ; Reserved vector
LDR PC, IRQ_Addr
LDR PC, FIQ_Addr

IMPORT IRQHandlerMain ; In IRQHandler.c

Reset_Addr DCD STACK_INTERRUPT_INIT
Undefined_Addr DCD 0 ; Not used
SWI_Addr DCD 0 ;Notused
Prefetch_Addr DCD 0 ;notused
Abort_Addr DCD 0 ;Notused
DCD 0; Reserved vector
IRQ_Addr DCD IRQHandlerMain
FIQ_Addr DCD 0 ;Notused
Kernel_Addr DCD 0x2000

STACK_INTERRUPT_INIT

; Enter IRQ mode and set up the IRQ stack pointer
MOV r0, #Mode_IRQ:OR:I_Bit:OR:F_Bit ; No interrupts
MSR cpsr_c, r0
LDR sp, =IRQ_Stack

; Enter FIQ mode and set up the FIQ stack pointer
MOV r0, #Mode_FIQ:OR:I_Bit:OR:F_Bit ; No interrupts
MSR cpsr_c, r0
LDR sp, =FIQ_Stack

; Enter ABT mode and set up the ABT stack pointer
MOV r0, #Mode_ABT:OR:I_Bit:OR:F_Bit ; No interrupts
MSR cpsr_c, r0
LDR sp, T_Stack

; Enter IRQ mode and set up the IRQ stack pointer
MOV r0, #Mode_UNDEF:OR:I_Bit:OR:F_Bit ; No interrupts
MSR cpsr_c, r0
LDR sp, =UNDEF_Stack

; Set up the SVC stack pointer last and return to SVC mode
MOV r0, #Mode_SVC:OR:I_Bit:OR:F_Bit ; No interrupts
MSR cpsr_c, r0
LDR sp, =SVC_Stack

MOV r0, #Mode_USR:OR:F_Bit ; Disable FIQ interrupt
BICr0,r0,#I_Bit ;Enable IRQ
MSR cpsr_c, r0 --> After this line IRQ interrupt happens always
LDR sp, =USR_Stack
LDR PC, Kernel_Addr ;Jump to kernel __main

END


My IRQ subrotine: -
__irq void IRQHandlerMain (void)
{
ulIRQHandler_counter ++; --> Breakpoint. Always control goes here
}


Best Reagrds
Swaroop JR

An Engineer's Guide to the LPC2100 Series

Reply by micro_minded May 18, 20102010-05-18
> Have you considered this: www.olimex.com/dev/index.html
>
> DaveS
>

Whats with the few LCP boards that have >1MB ram? Theirs a few with 32MB SRAM and a 1MB Flash.

I would assume that the larger SRAM versions are meant to run a RTOS or Linux and the SRAM is their for overhead.

I also considered making a little wiki device with say an LPC2214 and >512MB Flash and a 8/16bit touch LCD as a stepping stone to a full sized $100+ project.

I see Olimex has a JTAG wiggler, I have my AVR Dragon that has JTAG any change that can be made to work? (I assume ARM has their own JTAG protocols) If not could a LPCXpresso's USB JTAG device be used across the entire LPC family tree? Their quite cheap dev kits ($35)

Reply by rtstofer May 18, 20102010-05-18
--- In l..., David Smead wrote:
>
> Here's a US distributer for the mini2440: http://www.friendlyarm.us
>
> Have you considered this: www.olimex.com/dev/index.html
>
> DaveS
>

Or these:
http://www.andahammer.com/micro2440-sdk7/
http://www.andahammer.com/mini/

I have this one:
http://www.andahammer.com/mini3/

Richard

Reply by David Smead May 18, 20102010-05-18
Here's a US distributer for the mini2440: http://www.friendlyarm.us

Have you considered this: www.olimex.com/dev/index.html

DaveS

On Tue, May 18, 2010 at 2:52 PM, micro_minded wrote:
> I just checked out the KaRo TX25 (http://www.karo-electronics.com/tx25.html)
> I was also looking at the Micro2440 (http://www.thaieasyelec.net/index.php//SBC-/-Embedded-OS/Micro2440-stamp-module-128MB-NAND-FLASH-/p_82.html)
>
> The KaRo is about $10 more but its also quite a bit smaller, must be a 6-10 layer board to cram it all on there! Anybody know the price of their "Starter Kit" I wouldn't want to jump in feet first with a $80 SODIMM sized mcu with a home made board...
> --- In l..., "thefreem999" wrote:
>>
>> micro_minded,
>> We do not use the ARM7s for VGA displays, there really is not enough horsepower to drive the display. We use Freescale's iMX25 for that kind of work. It is ARM9 core running at 400MHz. There is a company called Karo that sells a SOM for $80, it has 128M of Flash, 64M of RAM and LCD controller. They sell it with a Linux and WindowsCE OSes. We use the WinCE version, Microsoft makes user interfaces easy. If we need super real time performance, we will add a little ARM7 on the side to do that work. However, for 99% of our designs, WinCE is real time enough.
>>
>> My two cents,
>> Michael Freeman
>> Principal Design Engineer
>> Update Systems, Inc.
>
>
Reply by micro_minded May 18, 20102010-05-18
I saw the FriedlyARM full size version with the 7" touch screen I am using here: http://www.thaieasyelec.net/index.php//SBC-/-Embedded-OS/micro2440SDK-7inch-7-inch-TFT-TouchScreen-LCD-ARM9-S3C2440-Core-Board-256-MB-NAND-FLASH-/p_66.html looks like a pretty good setup all screwed together with a faceplate too.

The downside to all this is I want to build my own custom setup and not just program something I buy from china. If I wanted to sell this as a product It might fly using a SODIMM MCU or board like the Micro2440 but the rest of the board would need to be custom made. I was hoping I could find a chip that was NOT BGA and could be designed and built by me.

--- In l..., "rtstofer" wrote:
>
> --- In l..., "micro_minded" wrote:
> >
> > I just checked out the KaRo TX25 (http://www.karo-electronics.com/tx25.html)
> > I was also looking at the Micro2440 (http://www.thaieasyelec.net/index.php//SBC-/-Embedded-OS/Micro2440-stamp-module-128MB-NAND-FLASH-/p_82.html)
> >
> > The KaRo is about $10 more but its also quite a bit smaller, must be a 6-10 layer board to cram it all on there! Anybody know the price of their "Starter Kit" I wouldn't want to jump in feet first with a $80 SODIMM sized mcu with a home made board...
> >
> > I have one of the Mini2440 'systems' like this:
> http://www.ecrater.com/product.php?pide11442
>
> It works pretty well but the display is definitely on the 'personal' side. A lot like a PDA
>
> It's the same chipset but the board has a few more peripherals implemented.
>
> Richard
>

Reply by rtstofer May 18, 20102010-05-18
--- In l..., "micro_minded" wrote:
>
> I just checked out the KaRo TX25 (http://www.karo-electronics.com/tx25.html)
> I was also looking at the Micro2440 (http://www.thaieasyelec.net/index.php//SBC-/-Embedded-OS/Micro2440-stamp-module-128MB-NAND-FLASH-/p_82.html)
>
> The KaRo is about $10 more but its also quite a bit smaller, must be a 6-10 layer board to cram it all on there! Anybody know the price of their "Starter Kit" I wouldn't want to jump in feet first with a $80 SODIMM sized mcu with a home made board...

I have one of the Mini2440 'systems' like this:
http://www.ecrater.com/product.php?pide11442

It works pretty well but the display is definitely on the 'personal' side. A lot like a PDA

It's the same chipset but the board has a few more peripherals implemented.

Richard

Reply by micro_minded May 18, 20102010-05-18
I just checked out the KaRo TX25 (http://www.karo-electronics.com/tx25.html)
I was also looking at the Micro2440 (http://www.thaieasyelec.net/index.php//SBC-/-Embedded-OS/Micro2440-stamp-module-128MB-NAND-FLASH-/p_82.html)

The KaRo is about $10 more but its also quite a bit smaller, must be a 6-10 layer board to cram it all on there! Anybody know the price of their "Starter Kit" I wouldn't want to jump in feet first with a $80 SODIMM sized mcu with a home made board...
--- In l..., "thefreem999" wrote:
>
> micro_minded,
> We do not use the ARM7s for VGA displays, there really is not enough horsepower to drive the display. We use Freescale's iMX25 for that kind of work. It is ARM9 core running at 400MHz. There is a company called Karo that sells a SOM for $80, it has 128M of Flash, 64M of RAM and LCD controller. They sell it with a Linux and WindowsCE OSes. We use the WinCE version, Microsoft makes user interfaces easy. If we need super real time performance, we will add a little ARM7 on the side to do that work. However, for 99% of our designs, WinCE is real time enough.
>
> My two cents,
> Michael Freeman
> Principal Design Engineer
> Update Systems, Inc.

Reply by Herbert Demmel May 18, 20102010-05-18
Am 18.05.2010 17:21, schrieb Paul Curtis:
>> As already mentioned in my last email, it is *no* problem when you
>> execute from internal flash. We do run a 24 MHz pixel cock TFT even
>> with 1024x600 pixel with 16 bit colors (SDRAM is 16 bit wide).
>>
> A "Pixel cock TFT"? Wow, am I in the wrong forum!
>
Who cares about missing l's ;-)
Herbert
Reply by Paul Curtis May 18, 20102010-05-18
> As already mentioned in my last email, it is *no* problem when you
> execute from internal flash. We do run a 24 MHz pixel cock TFT even
> with 1024x600 pixel with 16 bit colors (SDRAM is 16 bit wide).

A "Pixel cock TFT"? Wow, am I in the wrong forum!

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks V2 is out for EFM32, STM32, LPC1000, SAM9, and more!

Reply by Herbert Demmel May 18, 20102010-05-18
Am 18.05.2010 14:55, schrieb micro_minded:
> I have looked for external control IC's but can only find ready made products that cost around $100 which kills the selling point of my project. I know of chips such as HX8655 chips but they are gate& source drivers (http://www.thaieasyelec.net/index.php//Display-Module/TFT-with-TP/4-3-inch-WQVGA-Color-TFT-Touch-Screen/p_10.html) and It looks like in order to use them you need to custom build a board that can access the LCD's direct raw/col pin outs. Have not found any chips that do px_clk, hsync, vsync besides controllers on board micros.
>
> I did consider using an FPGA for clock generation, timing and have it raw dump addresses to external DDR RAM but thats a whole other project to itself...
>
> My screen will require a minimum of 24MHz dot clock and 9Mb RAM for single buffering 6Mb if I only use it in 16bit mode. I imagine the little LPC would spend nearly all of its time updating the screen.
>

As already mentioned in my last email, it is *no* problem when you
execute from internal flash. We do run a 24 MHz pixel cock TFT even with
1024x600 pixel with 16 bit colors (SDRAM is 16 bit wide). But it's up to
you to invest a lot of money and development time to use something
external like a FPGA ...

By the way: 800 * 480 * 2 = 768000 Byte - this is the amount of SDRAM
you need for one frame when running the TFT in 16 bit mode

Herbert