please dont rip this site

PIC JAL IO Routine

PWM Out

by Branko Karaklajic [branek at EUnet.yu]

jPWM.jal - main library 
jPWMpin.jal - configuration pin library (default: pin A2)
 
    syntax is:
 
    PWM_OUT (DUTY, CYCLE) where is:
 
    DUTY - (0 - 255), duty cycle --- 0 = 0v, 255 = 5V (+ few percent)
 
    CYCLE - (1 - 255), number of times to do PWM_OUT --- 1 = 4,17 ms, 255 = 1,063s (+ few percent)
 
I tryed that this command be like a BASICSTAMP PWM command. 
 
    On this list a saw before a question for PWM speed controller. Guy can not to solve a pwm output to control a motor. I think this can do a job.
 
A quick example for LED dimmer:
--------------------
include 16f84_4
include jpic
include jlib
include jpwm 
 
-- This example turn ON LED on A2 and then dimmer it to OFF for 2 sec
 
var byte PRO = 255 -- start PWM with 5V
 
forever loop
 
 pwm_out(PRO, 10) -- PWM out to LED for 41.7 ms
 PRO = PRO - 5 -- decrement PRO  
 
end loop
--------------------
 
#########################################
#          branek@eunet.yu
# http://solair.eunet.yu/~branek - not working yet
#            ICQ: 15616778
#            www.otpor.com
#########################################

See

See also:


file: /Techref/piclist/jal/jpwm.htm, 1KB, , updated: 2002/11/1 18:07, local time: 2017/11/23 04:39,
TOP NEW HELP FIND: 
54.198.246.116: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://piclist.com/techref/piclist/jal/jpwm.htm"> PIC JAL IO Routine </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 @20171123 RussellMc, Van Horn, David, James Cameron, Sean Breheny, alan.b.pearce, IVP, Neil, David C Brown, Bob Blick, Denny Esterline,
* 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 piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .