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