From: Richman1234 <ric...@na...> - 2010-01-29 18:32:28
|
OK, I am making my way through the GPIO C code, and have a question. http://docwiki.gumstix.org/index.php/Sample_code/C/gpregs http://docwiki.gumstix.org/index.php/Sample_code/C/gpregs At the beginning the code lists the Memory Locations for the GPIO. Where can I find this information? If I didn't have this code, how would I know what memory location to write to?? -- View this message in context: http://old.nabble.com/GPIO-memory-location-Documentation-tp27376335p27376335.html Sent from the Gumstix mailing list archive at Nabble.com. |
From: Richman1234 <ric...@na...> - 2010-01-29 20:11:06
|
I found it. I found some sample code that talked a little about GPIO, and it listed the memory addresses as coming from the PXA255 Developer's Manual. This is the link to that document. http://int.xscale-freak.com/XSDoc/PXA255/27869302.pdf http://int.xscale-freak.com/XSDoc/PXA255/27869302.pdf Section 4.1 talks about GPIO, and lists the GPIO Register Definitions and their memory locations. ex. GPLR - used to monitor pin state - 0x40E00000 - 0x40E0000B Reading this document helps the code make a lot more sense. Richman1234 wrote: > > OK, I am making my way through the GPIO C code, and have a question. > > http://docwiki.gumstix.org/index.php/Sample_code/C/gpregs > http://docwiki.gumstix.org/index.php/Sample_code/C/gpregs > > > At the beginning the code lists the Memory Locations for the GPIO. > For example: > For the GPIO status I look between 0x40E00000 - 0X40E0000B > GPIO Set 0x40E00018 - 0x40E00023 > > Where can I find this information? If I didn't have this code, how would > I know what memory location to write to?? > > > -- View this message in context: http://old.nabble.com/GPIO-memory-location-Documentation-tp27376335p27377647.html Sent from the Gumstix mailing list archive at Nabble.com. |
From: Dave H. <dhy...@gm...> - 2010-01-29 20:15:47
|
Hi, On Fri, Jan 29, 2010 at 10:32 AM, Richman1234 <ric...@na...> wrote: > > OK, I am making my way through the GPIO C code, and have a question. > > http://docwiki.gumstix.org/index.php/Sample_code/C/gpregs > http://docwiki.gumstix.org/index.php/Sample_code/C/gpregs > > At the beginning the code lists the Memory Locations for the GPIO. Where > can I find this information? If I didn't have this code, how would I know > what memory location to write to?? You would consult the datasheet (sometimes called Technical Reference Manual, sometimes called Programmers Reference Manual) for the processor in question. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ |