Re: [Fx2lib-devel] Beginner question regarding I/O ports
Status: Beta
Brought to you by:
mulicheng
From: Daniel O'C. <doc...@gs...> - 2013-05-25 08:35:23
|
On 25/05/2013, at 15:45, Willem Jansen <wi...@wi...> wrote: > To get started I want to see the I/O Pins of the chip to change from 3.3V to 0V and back. I therefore changed to lights-example as follows: > <snip> > > To be even more precise, I seems that all pins of the IOD-port are somewhat disconnected, as there is no voltage difference neither to and GND nor the 3.3V Pins. I believe they are set to input so they will be floating. You need to do the following to set turn the output enables on.. OED = 0xff; Note that IFCFG1 and WORDWIDE can affect port D (they will switch it to its alternative function FD[15:8]) Hope that helps :) BTW I found it quite helpful to configure UART 0 and write out debug messages to it (depends if you need both UARTs for your application though). -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C |