Shop OBEX P1 Docs P2 Docs Learn Events
PSM: AIgeneric (almost) - Need help — Parallax Forums

PSM: AIgeneric (almost) - Need help

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2009-08-25 01:31 in Propeller 1
My PASM skills are non-existent, and I suspect I need to load the character data
into the assembly section of Ray's driver to make this work.

I've loaded the 8x8 character set into eightfonts, now how do we switch them
in instead of the rom font? I can't find where the rom font is accessed.

I'm using the "tilt_contro_demo" for text demo here.
Edit: Found one issue, fonts now load into "eightfonts", duh..

Can anyone assist?

OBC

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?

Visit the: The Propeller Pages @ Warranty Void.

Post Edited (Oldbitcollector) : 8/24/2009 4:48:20 AM GMT

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-08-24 04:46
    Found one error... fixed.. still looking for where to switch them in over the rom font.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • localrogerlocalroger Posts: 3,452
    edited 2009-08-24 12:36
    @OBC, any driver that is using the ROM font is going to require some work to convert to an 8x8 font. Without a PSM I can't get too far in the code, but you're going to need to adjust both the horizontal and vertical access strategies because the ROM font is both 16 bits wide and interleaved, and 16 bytes high. Fixing the horizontal access is a much bigger PITA than the vertical. I have looked closely at both AiGeneric and TV_Text in their original incarnations and they are VERY different. The LCD might be a lot simpler to correct since it's probably not as timing bound as NTSC, but I feel there will be a lot more involved than just dropping in the different font.

    Anyway, the ROM font starts at $8000_0000 so you might find that as a magic number somewhere, but you might also find the high bit getting shifted in to offset to the start of the ROM font table.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-08-24 12:53
    Along that same thought, I've spotted the adjustments for size.
    To be honest, I don't see any problem with a 16x16 font side. (the more the merrier)

    Thanks for the input, adding it to my debugging. [noparse]:)[/noparse]

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • blittledblittled Posts: 681
    edited 2009-08-25 01:31
    Wow OBC, I must have got you going with the AIGeneric driver idea! I plan to pour over the spec sheet on the LCD driver so I can get a complete understanding of it. Quickly looking through the specs I found you can resize, rotate and do partial screens so there is plenty of power in the driver! I hope to figure out a routine that can be used as a core for various drivers.

    BTW: I was at Staples today and picked up a palm pda leather case real cheap. With some small spacers the PSM is almost a perfect fit. It also had room for two extra SD cards. The only drawbacks are it is hard to use the power switch and you can't get to the reset button.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    What electronics need - MORE POWER!!!!!!!
Sign In or Register to comment.