DPRG
DPRG List  



DPRG: BOUNCE dprglist@dprg.org: Non-member submission from ["Dickens, Thomas P" <Thomas.Dickens@pss.boeing.com>]

Subject: DPRG: BOUNCE dprglist@dprg.org: Non-member submission from ["Dickens, Thomas P" <Thomas.Dickens@pss.boeing.com>]
From: Jim Brown jbrown at cyberramp.net
Date: Fri Jan 30 20:45:20 CST 1998

>Return-Path: <owner-dprglist at dprg.org>
>Date: Mon, 26 Jan 1998 18:32:56 -0600
>From: owner-dprglist at dprg.org
>X-Authentication-Warning: horta.ncc.com: mail set sender to
owner-dprglist at dprg.org using -f
>To: owner-dprglist at dprg.org
>Subject: BOUNCE dprglist at dprg.org:    Non-member submission from
["Dickens, Thomas P" <Thomas.Dickens at pss.boeing.com>]   
>
>>From dprglist-owner at horta.ncc.com  Mon Jan 26 18:32:54 1998
>Received: from nimon.ncc.com (nimon.ncc.com [199.1.173.2])
>	by horta.ncc.com (8.8.5/8.8.5) with SMTP id SAA06644
>	for <dprglist at horta.ncc.com>; Mon, 26 Jan 1998 18:32:49 -0600
>Received: from thomas.dickens at pss.boeing.com [199.238.248.100] by
nimon.ncc.com (OS/2 NCCmail v0.33) with SMTP
>          for dprglist at dprg.org; Mon, 26 Jan 98 17:16:23 CST
>Received: from xch-pssbh-01.ca.boeing.com ([130.42.112.150])
>	by mailgate2.boeing.com (8.8.5/8.8.5) with ESMTP id PAA00291
>	for <dprglist at dprg.org>; Mon, 26 Jan 1998 15:29:09 -0800 (PST)
>Received: by xch-pssbh-01.ca.boeing.com with Internet Mail Service
(5.0.1458.49)
>	id <D4WWAV5H>; Mon, 26 Jan 1998 15:29:02 -0800
>Message-ID: <91FEE75C6CBAD011991D00805FFE1A4B5A97F1 at xch-sea-11.ca.boeing.com>
>From: "Dickens, Thomas P" <Thomas.Dickens at pss.boeing.com>
>To: DPRG Email list <dprglist at dprg.org>,
>        SRS Email List
>	 <srs at seattlerobotics.org>,
>        "'garrett myrick'"
>	 <gamyrick at linknet.kitsap.lib.wa.us>
>Subject: RE: HC811E2 A/D converter
>Date: Mon, 26 Jan 1998 15:28:58 -0800
>X-Priority: 3
>MIME-Version: 1.0
>X-Mailer: Internet Mail Service (5.0.1458.49)
>Content-Type: text/plain
>
>
>In my article, Enhancements to the Simple 68HC11 Robots,
>I add some simple photoresistors to an HC11 robot, using
>the A/D capabilities of the HC11.  For details, see:
>
>   http://home1.gte.net/tdickens/68hc11/trp3/trp3.html
>
>The article details the use of the A/D capabilities, and
>also provides assembly-language source code.
>
>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
>Tom Dickens    thomas.p.dickens at boeing.com
>
>> ----------
>> From: 	garrett myrick[SMTP:gamyrick at linknet.kitsap.lib.wa.us]
>> Sent: 	Monday, January 26, 1998 2:57 PM
>> To: 	DPRG Email list; SRS Email List
>> Subject: 	HC811E2 A/D converter
>> 
>> 
>> Hi,
>> 
>> 
>> 
>> Basically all I want to know is: How do you use the A/D converter
>> system
>> on an hc811e2? I wrote a small program in Karl Lunt's Sbasic that
>> first
>> sets the ADPU bit in the OPTION register, waits more than long enough
>> for
>> the A/D system to power up, then writes a 0 to the ADCTL register to
>> start
>> the conversion. It polls the ADCTL register until the CCF flag sets,
>> and
>> then it is supposed to take the data in the ADR1 register and copy it
>> to
>> port B where I am supposed to be able to see it on an LED bargraph.
>> When I
>> loaded this program into the BOTBoard, nothing happened. I thought
>> that it
>> was probably getting stuck in one of the loops. So what I did was to
>> poke
>> a 1 to port B in the first loop, and after it got out of the loop it
>> would
>> clear port B. The second loop would write a two, etc., so that I could
>> see
>> where it was getting stuck. I loaded these changes, and found out that
>> it
>> was getting stuck in the first loop, which meant that the CCF flag
>> never
>> set, which probably means that no conversion ever took place. I have
>> looked through the  Motorola reference manual (the one specifically
>> for
>> the E series, not the pink book), and can't seem to find out what the
>> problem is. What am I doing wrong?
>> 
>> Thanks,
>> 
>> Garrett Myrick
>> <gamyrick at linknet.kitsap,lib.wa.us>
>> 
>> 
>> 
>
>
>
>
- - - ____ - - - - - - ___ - - - - - - - - - - - - - - - - - - - - - - - - - -
    \/\_\@  ____    /  /\ __  ___          ___    http://www.dprg.org 2-21
    / / /\ / / /\  /--/ //\_\/\_/\ /\/\/\ /\_/\  jbrown at cyberramp.net
/__/ / / // / / / /__/ // / /__/ //_/_/ // // / (972)519-2868, (972)495-3821
\__\/  \/ \/\/\/  \__\/ \/  \__\/ \_\_\/ \/ \/ jgbrown at spdmail.spd.dsccc.com
http://www.cyberramp.net/~jbrown www.geocities.com/TimesSquare/Castle/6818

------------------------------


More information about the DPRG mailing list