03-22-2010 10:51 AM
Run Mode Clock Gating Control Register 2 (RCGC2) register and the GPIO Direction Register (GPIODIR).
In using the Peak/Poke VIs, I have not been able to set the data on GPIO Port D Line 6, but I have been able to set the direction. I verfied using Keil. Is there another register that I must write to in order to setup a GPIO line? Or is there a workaround to use the EIO nodes?
Jeff
03-23-2010 09:21 AM
I would recommend using C nodes and the peripheral driver library API provided by LuminaryMicro - which is already linked into the project by LV ARM, as it is using it in the background.
Check out this link for complete documentation: http://www.luminarymicro.com/products/peripheral_library.html . The API actually has a very good documentation.
03-23-2010 09:57 AM
As Paul mentioned, I would use inline C nodes. You can look at \LabVIEW 2009\Targets\Keil\Embedded\RealView\Generic\LM3Sxxxx\lib\src\LM3Sxxxx_GPIO.c (which is the GPIO EIO driver) for examples on how to call into the luminary driver API.
Also, LM3S8962 GPIO EIO will allow read/write on the same pin in the next release of LabVIEW for ARM.
03-23-2010 10:00 AM