Math routines
Here are some math routines I've written, modified or ported from assembler
to Jal, testing algorithm is included:
16addsub - 16 bit
addition/substraction routine
16comp
- 16 bit comparation routine
16fxdiv
- 16 bit division routine
16fxd
- another 16 bit division routine
bin2bcd3 - conversion
from 2 binary in 3 unpacked bcd
PIC16F877 specific libraries and routines
Libraries written by a hardware engineer, please don't blame me you
software guy's !
Janalog.jal - analogic
library for reading 10bit AD result
tmr.jal
- initialization of tmr1 module as exterrnal oscilator, setting tmr0 for
desired rollover
hardpwm.jal - using PWM module
music.jal
- playing music with PWM module
PIC16F628 specific libraries and routines
jpic628.jal - usage with
jal04.38, register definition, eeprom access and usart, fuse by hand
ds1620
- Dallas specific three wire routine, loow resolution ( 0.5C) mode
ds1620p
- pins definition for library above
NEW: PIC12F675/12F629 specific libraries
jpic675.jal
-generic library for gpio style PIC, AD,, comparator, reference etc,
example675.jal - some easy usage example
Other libraries written by enthusiastic jalliens:
stack.zip - stack library written by Rob
Curtis, Australia
Examples for using these libraries can be found in my pic page ( if
there aren't included here )
Feel FREE to use it. Don't forget to post your work to jallist or to
piclist, so other people can learn from your experience. Remember:
if
you know just yourself is not a big deal !
web address of this page:
http://www.oocities.org/vsurducan/electro/PIC/lib.html
my mail address:
vasile@l30.itim-cj.ro
last update: 07.10.2002