ts-7000
[Top] [All Lists]

Re: [ts-7000] PEEK/POKE or pointer access

To:
Subject: Re: [ts-7000] PEEK/POKE or pointer access
From: "Don W. Carr" <>
Date: Wed, 1 Aug 2007 20:03:18 -0500
Also make sure you compile with: -mcpu=arm9

But, peek and poke are just written using memory access. You should declare pointers as volatile to make sure that the compiler does not optimize out a pointer access in a loop.


On 7/31/07, craig_ppri <> wrote:

I have been going through the sample programs and documentation for the TS-7xxx boards
while writing code to access the ADC and GPIO pins of the TS7400. Some of the sample
programs use pointers to access the ports, others use PEEK and POKE routines from
peekpoke.h

It looks like the ADC access is all 32-bit, and the GPIO is all 8-bit. Is there any reason to use
PEEK/POKE, or will pointer access work reliably?

Craig Davidson




--
Dr. Don W. Carr
J. G. Montenegro 2258
Guadalajara, Mexico
+52-333-630-0704
+52-333-836-4500 ext 2930 __._,_.___


SPONSORED LINKS
Single board computer Hardware Computer running slow
Linux os Single board

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU