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


file: /Techref/piclist/jal/jpwm.htm, 1KB, , updated: 2002/11/1 18:07, local time: 2024/11/5 06:39,
TOP NEW HELP FIND: 
3.139.81.115:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©2024 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://linistepper.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 a nice message (short messages are blocked as spam) 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?