Hi, enclosed pls find the driver for PCF8563 RTC. Enjoy, Pito.
\ i2c_rtc_PCF8563.frt
\ read/set time on PCF8563 real time clock
\ Pito 9/2010
\ based on EW lib 2008 PCF8583, bcd>dec, needs i2c.frt, twi.frt
\ words: get.rtc ( -- x0 .. x5 yy )
\set.rtc ( Y m wd d H M S -- )
\printdat
Hi pito,
Thanks for the stack printing words.
I suggest to have the tos at the right or bottom end, for
two reasons:
- In case there are many values on the stack, having the tos
at the end avoids scrolling the "top" value off the
visible screen.
- Having the tos at the right is consistent w
.. and my not so elegant code, it works as well and is commented a
little bit. Good for beginners who are not reading forth's sources..
Thanks a lot Marcin, your code is of course optimised to the
bones..Pito
\ Assembler demo
\ ATmega 1284p, amforth 4.0
\ v68.0, Pito 9/2010
marker -asstest
: loa
On Wed, 8 Sep 2010, pito wrote:
> A version with unused registers, crashes (anforth 4.0,
> assembler.frt).
>
> \ Manual v 4.0 : The registers from R10 to R13 are currently unused,
>
> \ but may be used for the VM extended registers X and Y sometimes.
>
> code ++_ \ ( x1 x2 x3 -- x4 )
Looking at m
Small tidbits from 4.1:
avra complains with 2r>:
[exec] ../../core/words/2r_from.asm(6) : Warning : A .DB segment with an
odd number of bytes is detected. A zero byte is added.
Fix:
Index: 2r_from.asm
===
--- 2r_from.asm (we
A version with unused registers, crashes (anforth 4.0,
assembler.frt).
\ Manual v 4.0 : The registers from R10 to R13 are currently unused,
\ but may be used for the VM extended registers X and Y sometimes.
code ++_ \ ( x1 x2 x3 -- x4 )
R10 push, \ save everything
R11 push,
R12 push, \ shall th
Marcin, yes to study the manual is important! However, we do not do
it quite often..
I've seen the manual and therefore I am using register allowed.
loadtos and savetos works with 24 and 25(? as used in loadtos,
savetos), and I used 10-13 and 14-21 for ++_ routine. However
results differs. So my un
On Wed, 8 Sep 2010, pito wrote:
> Marcin, I am ansewering to you in this thread: No, R16 and R17 are
> ok for my cpu, but not correct from OS prospecive. I've spent a
> sleepless night with playing with registers against definitions in
> macros.asm (it seems Registers 10,11,12,13, are not used by
Marcin, I am ansewering to you in this thread: No, R16 and R17 are
ok for my cpu, but not correct from OS prospecive. I've spent a
sleepless night with playing with registers against definitions in
macros.asm (it seems Registers 10,11,12,13, are not used by OS but
in reality code crashes) and the p
On Wed, 8 Sep 2010, pito wrote:
> Hi, I started with LP asm (amforth 4.0):
> \ - Test AvrAsm -
> : loadtos, 16 Y+ ld, 17 Y+ ld, ; \ define macro
> : savetos, -Y 17 st, -Y 16 st, ; \ tosl=r22, tosh=r23
>
> code dup_ savetos, end-code \ insert asm code
> code drop_ loadtos, end-code
On m
On Wed, 8 Sep 2010, Kalus Michael wrote:
> Hi.
>
> Is there a readme.txt or so giving hints how to establish the
> communicate via the USB of arduino board, after the
> duemilanove.eep.hex and duemilanove.hex are flashed successfully?
>
> Friends keep complaining not getting the ok using it from t
11 matches
Mail list logo