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
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...
$774 8 bclr ( PMD3 PMPMD bclr )
should enable the parallell port peripheral.
Thanks Mikael. Works.
Log in to post a comment.
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
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...
$774 8 bclr ( PMD3 PMPMD bclr )
should enable the parallell port peripheral.
Thanks Mikael. Works.