Newhaven Products > TFTs

Arduino DUE + 4.3" TFT + NHD-4.3-480272MF-20: PIO issues

(1/1)

MyNameIsMud:
Hi,

I'm struggling a bit with the setup: I have the NHD-4.3-480272EF-ASXN display plus the NHD-4.3-480272MF-20 controller board. The example code provided for the setup works nicely with Mega but I'm having issues porting it for Arduino DUE.

The main issue is the PIO register manipulation, does anybody have idea how it should be done?

I've tried the following to configure the PIO (from Arduino forum):

  PIOC->PIO_PER = 0x01FF;  // Configure PORTC to PIO controller, pins 33-40
  PIOC->PIO_OER = 0x01FF;  // Enable PORTC to output
  PIOC->PIO_ODSR = something; // Write something on pins 33-40

It does not seem to work. Am I missing something completely?

I verified the wiring setup by digitalwriting the parallel port, and it works but is terribly slow.

BR,
Lassi

Navigation

[0] Message Index

Go to full version