Simple question regarding GPIO on PK70
Posted: Fri Jun 25, 2010 6:42 am
Q: Can I rely on the correctness of the file \Nburn\PK70\system\pins.cpp when it comes to which pins may be used as GPIO?
Details: I want to use some of the pins on the 40-pin connector as GPIO to implement a JTAG interface. Specifically, I would like to use TIN1, TIN2, DTOUT3, and IRQ7. Examining the GPIO chapter of the Freescale manual seems to imply that DTOUT3 is not available as a GPIO, and is unclear about IRQ7. However, the file pins.cpp in \Nburn\PK70\system clearly supports using all four pins as GPIO, which is obviously good news - if true. In there, registers from other parts of the processor are used. So it appears more of the 626 page Freescale manual needs to be understood, eh?
So I'm just asking for confirmation that pins.cpp can be trusted in general, and specifically, that TIN1, TIN2, DTOUT3, and IRQ7 can indeed be used as GPIO. Granted, I will soon enough find out for myself one way or another as I write the code, but it would be helpful to remove a few of the unknowns (e.g. new software, new I/O code, custom hardware, etc.) before I begin!
Thanks!
-Bob
Details: I want to use some of the pins on the 40-pin connector as GPIO to implement a JTAG interface. Specifically, I would like to use TIN1, TIN2, DTOUT3, and IRQ7. Examining the GPIO chapter of the Freescale manual seems to imply that DTOUT3 is not available as a GPIO, and is unclear about IRQ7. However, the file pins.cpp in \Nburn\PK70\system clearly supports using all four pins as GPIO, which is obviously good news - if true. In there, registers from other parts of the processor are used. So it appears more of the 626 page Freescale manual needs to be understood, eh?
So I'm just asking for confirmation that pins.cpp can be trusted in general, and specifically, that TIN1, TIN2, DTOUT3, and IRQ7 can indeed be used as GPIO. Granted, I will soon enough find out for myself one way or another as I write the code, but it would be helpful to remove a few of the unknowns (e.g. new software, new I/O code, custom hardware, etc.) before I begin!
Thanks!
-Bob