Rockbox mail archive
Subject: Re: Remoclone Ver06
From: Alan Korr (alankorr_at_subdimension.com)
Date: 2001-12-18
I do some changes yet to handle RB3 and RB5 better without any goto :
BTFSS KEYPAD,<key1> ; <key1> = RB2/RB4 and <key2> = RB5/RB3
BTFSS KEYPAD,<key2> ; databyte[<code>] = 0 if <key2> not pressed or
both <key1> and <key2> pressed;
BCF DATABYTE,3
For other RBs :
BTFSC KEYPAD,<key> ; databyte[<code>] = 0 if <key> not pressed;
BCF DATABYTE,<code>
And of course, DATABYTE must be initially in binary : 11111110 <- the last
bit being for START BIT :)
Some minor modifications too : RETFIE instead of SLEEP in WAKEUP. SLEEP is
now in START in a infinite loop. Hope this program is okay.
----- Original Message -----
From: Tjerk Schuringa <regenpak_at_yahoo.com>
To: <jukebox_at_cool.haxx.se>
Sent: Tuesday, December 18, 2001 7:46 AM
Subject: Re: Remoclone Ver06
> Much better! I did find two flaws which have to be taken care of: the
order of
> keypad tests matters (check PortB:2 & 3 first) and a test must be made for
the
> correct bitpattern. It may not happen, but if a key bounces (or something)
the
> remoclone should put out only ones. Oh, and DATABYTE may have the wrong
initial
> value. That's easily checked.
>
> The putchar routine looks much cleaner too, but I'll verify it in my
piccie.
> Prolly will need some finetuning :-)
>
> T.J.
Page was last modified "Jan 10 2012" The Rockbox Crew
|