Searching \ for 'branch condition..' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=branch+condition
Search entire site for: 'branch condition..'.

Truncated match.
PICList Thread
'branch condition..'
1999\10\21@123433 by PSL

flavicon
face
part 0 16 bytes
</x-html>

1999\10\21@124051 by Terry A. Steen

flavicon
face
I am fairly sure, PIN is a bit number (0-7, 3 bit value).

TAS


At 12:37 AM 10/22/99 +0800, you wrote:
>   Hello people   Sorry to bother you all again but i have a question
>there hope you can help me...          PORTD,0 Can I relpace the 0 with a
>memory  address???        PORTD,PIN Where pin is a ram location...   thanks
>anyway....   regards  PSL

1999\10\21@124508 by Dmitry Kiryashov

flavicon
face
> PSL wrote:
>
> Hello people
>
> Sorry to bother you all again but i have a question there hope you can help
> me...
>
>
> BTFSC     PORTD,0
> Can I relpace the 0 with a memory address???


It means Bit_Test_File_skip_next_cmd_if_bit_is_clear.
In your example it tests bit 0 of portD (portD.0)

> BTFSC     PORTD,PIN
> Where pin is a ram location...

It tests portD.pin (pin from 0 to 7)

> thanks anyway....
Read PIC command set description at any datasheets.
Certainly it will helps you ;-)
>
> regards
> PSL

WBR Dmitry.

1999\10\21@124922 by Jose Souto

flavicon
face
part 0 982 bytes
x-html> NO!

PSL wrote:

Hello people Sorry to bother you all again but i have a question there hope you can help me...& nbsp; BTFSC     PORTD,0Can I relpace the 0 with a memory address???BTFSC&n bsp;    PORTD,PINWhere pin is a ram location... thanks anyway.... regardsPSL 

1999\10\21@142326 by Quentin

flavicon
face
Read back a a few days in the archive you will find a thread called
"BTFSS help" I think it is very similar for what you want to do.
Basically, you copy the content of PortD to a Temp reg. RRF Temp so many
times as shown in PIN. Test bit 0 or Carry, depending on your rotation
amount.

Quentin

1999\10\21@172127 by Byron A Jeff

face picon face
>
> Hello people

Hello right back at you...

>
> Sorry to bother you all again but i have a question there hope you can
> help me...
>
>
> BTFSC     PORTD,0
> Can I relpace the 0 with a memory address???
> BTFSC     PORTD,PIN
> Where pin is a ram location...

Nope. We just had this same discussion less than a week ago, and partially
in just the last day or two with Scott's PortA question.

The bit number is fixed. A couple of possible ways of solving the problem:

1. Map the bit number in PIN into a bit mask by using an 8 instruction jump
table. Then take the bit mask and test it against PORTD.

2. make a copy of PORTD and rotate the desired bit into a known bit location
like bit 0, or the carry bit. Then test the known bit.

Hope this helps,

BAJ

1999\10\25@053407 by Dr. Imre Bartfai

flavicon
face
Hi,

directly not. This was a thread some days ago. For a simple solution, look
at Scott's work (PIC Basic routines revealed or similar) at
http://www.dontronics.com . This is the PinZ routine which does the main part of
the task.

Regards,
Imre


On Fri, 22 Oct 1999, PSL wrote:

> Hello people
>
> Sorry to bother you all again but i have a question there hope you can help me
...
{Quote hidden}

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...