Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

video logo generation

video logo generation

2005-04-04 by Gennady Palitsky

Hello,

I have an urgent project on hands and need an advice on it's feasibility 
with LPV21xx.
I have pretty extensive experience with 8-bitters (Atmel etc.), but none 
with ARM.

I need:
1. Generate video sync signal for either NTSC or PAL. Since PAL frequency is 
higher, it's more critical.
    Crystal is 17.734MHz, so I can run CPU at  *3 = 53MHz.
    I don't see problems in generating vertical and horizontal synch 
signal - just counting.
    The problem is that it should synchronize to the external vertical synch 
signal - i.e. on external sync it should start the
    pattern over.
   As far as I understand, I can just use FIR interrupt, but how can I 
return from it to the certain program address?
   Can I just write it to the PC register at the exit from FIQ? Again, as 
far as I know the compiler (I am going to use
   Keil) will automatically handle return from interrupt. How do I override 
it and return to a specific address?
2. I need to generate an on-screen logo, which is stored in a flash as grey 
8-bit pattern (up to 256x256), so it can be
    reprogrammed on a fly.
    So on each line I need to output up to 256 successive bytes from flash 
to the port for a D/A converter.
   Is it possible to handle this transfer in 3 cycles (1 pixel, *3 clock)? 
How to do it more effectively?
   Is there a way to move a block of memory to the port?

I've chosen LPC2138 because of single power supply and sufficient flash 
size.
With smaller logo size I can probably use LPC2132, or 2105 with dual power 
supply. Any advice on a choice.

Thanks a lot for any advice,
Gennady

Re: video logo generation

2005-04-05 by valdef78

--- In lpc2000@yahoogroups.com, "Gennady Palitsky" <gennadyp@j...> 
wrote:
...
>    As far as I understand, I can just use FIR interrupt, but how 
can I 
> return from it to the certain program address?
>    Can I just write it to the PC register at the exit from FIQ? 
Again, as 
> far as I know the compiler (I am going to use
>    Keil) will automatically handle return from interrupt. How do I 
override 
> it and return to a specific address?

you can look here :
http://www.hitex.co.uk/arm/lpc2000book/index.html
that's a beginning book from Hitex on LPC21xx and there are many 
good infos and tutorials for a beginner (like me) with ARM.. and you 
can see some on interrupt. there's a free downloadable version. 
the examples are made with Keil software and a part are also made 
with GNU tools..

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.