Page 1 of 1

Positioning Texts

Posted: Thu May 20, 2010 5:24 pm
by Nathan
Hello,
I'm trying to develop my ARM OS, but I need to know how could I position text on the screen. The only information that I hate at the time, is the address that I got from the Integrator/CP Reference Manual, that is 0x16000030, but I don1t know what to do with the value. Someone could help me with this?

Best Regards,
Nathan Paulino Campos

Re: Positioning Texts

Posted: Thu May 20, 2010 5:27 pm
by Brynet-Inc

Re: Positioning Texts

Posted: Thu May 20, 2010 5:45 pm
by Combuster
It's a serial port, not a display. There is no position.

Find out what's interpreting the data coming out, and seek out the reference for that.

Re: Positioning Texts

Posted: Thu May 20, 2010 6:19 pm
by Nathan
Combuster wrote:It's a serial port, not a display. There is no position.

Find out what's interpreting the data coming out, and seek out the reference for that.
I haven't found anything like that in the reference. :(

Re: Positioning Texts

Posted: Thu May 20, 2010 6:26 pm
by Gigasoft
Just look at the board. What is connected to the port? Is it the display? If so, are there any markings on it that tell what kind of display it is?

Re: Positioning Texts

Posted: Thu May 20, 2010 6:40 pm
by Nathan
I don't have the board, I just emulate it using Qemu. :(

Re: Positioning Texts

Posted: Thu May 20, 2010 9:02 pm
by inx
Nathan wrote:I don't have the board, I just emulate it using Qemu.
Check the QEMU docs (although the documentation seems to be awful for non-x86 system emulation..) or the source (this will have the answer)

EDIT: From reading the QEMU documentation and looking through hw/integrator.c in the qemu source tree because I really didn't have anything better
to do at the moment, it looks like there's a PL110 LCD controller at address 0xC0000000. You can find the offsets from looking through hw/pl110.c, or
ARM has the PL110 datasheet on their infocenter. Research is a good idea.

Re: Positioning Texts

Posted: Fri May 21, 2010 11:31 am
by Nathan
I will take a look at that. ;)

Re: Positioning Texts

Posted: Sun May 23, 2010 5:18 pm
by Nathan
I've understood it, but still don't know what syntax should I use to make work. Someone can help me?

Re: Positioning Texts

Posted: Sun May 23, 2010 5:19 pm
by Combuster
Nathan wrote:Someone can help me?
No. Ask a smart question first. You just failed about all the rules on those.

Re: Positioning Texts

Posted: Sun May 23, 2010 5:20 pm
by JackScott
Try the syntax you think should work, and see what errors you get. If you have honestly no idea where to even start with the syntax, go back to step 1 and learn C.

Re: Positioning Texts

Posted: Sun May 23, 2010 5:37 pm
by Nathan
I don't even know what syntax to use, because I don't have the necessary information to think on it.

Re: Positioning Texts

Posted: Sun May 23, 2010 5:39 pm
by JackScott
Then either learn C, or GTFO. It's your choice.

Re: Positioning Texts

Posted: Sun May 23, 2010 5:42 pm
by Combuster