please dont rip this site

PIC JAL IO Routine

MAX520/MAX521 ( 8 bits, 8 channels D/A converter) control routines

by  Alessandro Zummo

--
-- file      : max520.jal
-- author    : Alessandro Zummo <azummo@ita.flashnet.it>
-- date      : 04.07.2000
-- purpose   : MAX520/MAX521 ( 8 bits, 8 channels D/A converter) control routines
-- requires  : i2c
-- pins      : see i2cp
--
-- Copyright (C) 2000 Alessandro Zummo
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Library General Public
-- License as published by the Free Software Foundation; either
-- version 2 of the License, or (at your option) any later version.
--
-- This library is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-- Library General Public License for more details.
-- 
-- You should have received a copy of the GNU Library General Public
-- License along with this library; if not, write to the
-- Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- Boston, MA  02111-1307, USA.
--

-- This library has not (yet) been tested by the author. If it works
-- for you, please drop me a note.


-- include the required libraries
include i2c



-- Write <value> to <channel> of the MAX520/MAX521 located at <address>
--
-- Please check the datasheet for further explanations. 


procedure max520_write( byte in address, byte in channel, byte in value ) is

	var byte control = value & 0b_0000_0111 

	i2c_write_2( address, control, value )

end procedure



-- power down

procedure max520_powerdown( byte in address ) is

	i2c_write_1( address, 0b_0000_1000 )

end procedure



-- reset

procedure max520_reset( byte in address ) is

	i2c_write_1( address, 0b_0001_0000 )

end procedure



See also:


file: /Techref/piclist/jal/max520521-az.htm, 2KB, , updated: 2001/11/7 06:42, local time: 2017/12/17 23:33,
TOP NEW HELP FIND: 
54.227.126.69:LOG IN

 ©2017 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/piclist/jal/max520521-az.htm"> PIC JAL IO Routine MAX520/MAX521 ( 8 bits, 8 channels D/A converter) control routines</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20171217 RussellMc, Van Horn, David, Sean Breheny, James Cameron, alan.b.pearce, IVP, Neil, Bob Blick, David C Brown, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .