Menu

Controlling PMP on P24FJ128GA010

2015-08-25
2015-08-25
  • Robert Onslow

    Robert Onslow - 2015-08-25

    I have FF up and running on an Explorer 16 board. No problem writing to PortA, and lighting the LEDs. Great.

    Now I am trying to control the LCD. The first step is to write 0x8383 to PMCON which is at 0x0600
    I try: $0600 constant pmcon
    $8383 pmcon !

    However I am not reading back the value from the register. When I do pmcon @ . I see 0x0000

    Any clues as to why this might be. The LCD code in C is executing correctly.

    Robert

     
  • Mikael Nordman

    Mikael Nordman - 2015-08-25

    FF disables all peripherals at startup to conserve power.
    You need to find the correct PMDx register and enable the peripheral.

    I really need to add this info to the user guide...

     
  • Mikael Nordman

    Mikael Nordman - 2015-08-25

    $774 8 bclr ( PMD3 PMPMD bclr )

    should enable the parallell port peripheral.

     
    • Robert Onslow

      Robert Onslow - 2015-08-25

      Thanks Mikael. Works.

       

Log in to post a comment.