To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 2087
2086  |  2088
Subject: 
Re: digital output
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Fri, 2 May 1997 03:35:41 GMT
Original-From: 
Rajesh Gottlieb <rajeshg@ccwf.cc.NOSPAMutexas.edu>
Viewed: 
684 times
  
Has anyone used any external devices with the HandyBoard that require a
digital output from the microprocessor, such as pin PA6 or PA7?  Currently
there is an IR transmitter on PA6, and we want to use such an output to
open/close a gripper of a robot arm.  What's a quick and easy way to
modify the board and obtain a digital output?

You might try using PortD (the header poking out of the lower right side
of the LCD)

/* set DDRC */
poke(0x1009,0x3c);

#define PD2 0b0000000000000100  /* aka MISO */
#define PD3 0b0000000000001000  /*     MOSI */
#define PD4 0b0000000000010000  /*     SCK  */
#define PD5 0b0000000000100000  /*     SS   */

/* use like this */
bit_set(0x1008, PD2);
bit_clear(0x1008, PD2);



Message is in Reply To:
  digital output
 
Has anyone used any external devices with the HandyBoard that require a digital output from the microprocessor, such as pin PA6 or PA7? Currently there is an IR transmitter on PA6, and we want to use such an output to open/close a gripper of a robot (...) (27 years ago, 2-May-97, to lugnet.robotics.handyboard)

4 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR