Truncated match.
PICList
Thread
'Question'
1998\03\03@093313
by
cdmb
1998\03\03@115213
by
Andrew Warren
1998\03\03@121652
by
Morgan Olsson
At 08:18 1998-03-03 -0600, Solon Caceres Moreno wrote:
>Hello, I am new in the list.
Welcome! :)
>I need to connect the exit of the port B of a PIC16C71 to the entry of the
>port C of a PIC16C55. Be able to do this directly or I have to add some
>part electronics?
>
Directly is OK, as long as the Vdd and Vss of the chips are the same, and
you are *sure* the two cirquits never (acidentally) both are output to the
same connection.
When I«m trying something new I always use some kind of protection, in this
case 1k resistors konnected between the two PIC:s should be appropriate.
When your project is ready you can omit them.
But, actually, I think the PIC:s will survive errors even without R, but
that is out of the spec.
/Morgan
/ Morgan Olsson, MORGANS REGLERTEKNIK, SE-277 35 KIVIK, Sweden \
\ EraseMEmrtspam_OUT
TakeThisOuTiname.com, ph: +46 (0)414 70741; fax +46 (0)414 70331 /
1998\03\03@135311
by
Michael S. Hagberg
1998\03\03@151025
by
Mark Lezama
Puedes conectarlo directamente, no hay ningun problema!
Mark Lezama
=?iso-8859-1?Q?Sol=F3n?= =?iso-8859-1?Q?_C=E1ceres?= Moreno escribis:
{Quote hidden}
1998\03\03@151030
by
Brian Schousek
|
-----Original Message-----
From: Sol—n C‡ceres Moreno <cdmbEraseME
.....MULTINET.COM.CO>
To: EraseMEPICLIST
MITVMA.MIT.EDU <RemoveMEPICLISTEraseME
EraseMEMITVMA.MIT.EDU>
Date: Tuesday, March 03, 1998 9:32 AM
Subject: Question
>Hello, I am new in the list.
>I need to connect the exit of the port B of a PIC16C71 to the entry of the
>port C of a PIC16C55. Be able to do this directly or I have to add some
>part electronics?
Sol—n-
I am assuming you are asking if you can connect two pins together (to
provide some communication between the two processors.) The answer to that
question is yes, with reservations. If the two pins are absolutely
guaranteed to never both be outputs, then a simple wire/trace will do. If
there is any possibility they will both be outputs (do remember that reset
configures all I/O pins as inputs) then you should provide a current
limiting resistor between them. Let's see, if you want to limit current to
10 mA and you have a 5V supply, then limiting resistor = 5/10e-3 = 500 ohm
minimum, so make it 1k or 10k.
Are both processors running from the same supply voltage? If not then
you have some extra considerations. If both are 5V, but from separate
batteries, then you need to provide a common reference (tie grounds
together.) Is one 3V and the other 5V? Then your problem gets more
complicated yet.
But to repeat the simple answer: for what your system likely is, no
additional electronics other than possibly a 10k series resistor are
necessary.
Brian
1998\03\03@170217
by
Calvin
|
Solon:
Ideally you can connect the pins directly, but in reality it would not hurt
to add the current limiting resistors as stated by several picsters. From my
own experience I can assure that there are instances when, bad resets, noise
spikes, power failures, destiny, etc., you can get a pin who's supposed to
be an input suddenly stay in output mode, no matter what you do (other than
a hard reset). So at least leave the space to add the limiting resistors,
and if in the future you are confident enough in your design and in your
pics you can just replace them with jumpers.
Just my 0.02
Calvin
(Translation:
Solon:
Idelamente puedes conectar los pins directamente, pero no esta demas que
incluyas las resistencias limitadoras de corriente, como ya lo han
mencionado varias personas en esta lista. De mi propia experiencia te puedo
asegurar que hay veces en que: resets malos, picos de ruido, fallas en la
alimentacion, destino, etc., puede suceder en que un pin que se supone que
es entrada se quede pegado como salida, sin importar lo que hagas (aparte de
reestablecer la alimentacion). Asi es que por lo menos te recomiendo que
dejes espacio para las resistencias, y si en el futuro conf’as suficiente en
tu dise–o y en los pics, puedes reemplazarlas con puentes.
Calvin
end of translation).
{Original Message removed}
'question'
1998\08\14@054418
by
David Wyss
part 0 1059 bytes
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META content='"MSHTML 4.72.2106.6"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Is a eeprom and a Pic exactly the
same??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Why the different names ??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT><FONT color=#000000 face=Arial size=2>this
is an exercise in our school. Can you help me??? thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="RemoveMEdwyssspam_OUT
KILLspamntb.ch">RemoveMEdwyssTakeThisOuT
spamntb.ch</A></FONT></DIV></BODY></HTML>
</x-html>
1998\08\14@191347
by
andre
|
part 0 2543 bytes
<P>David Wyss wrote:
<BLOCKQUOTE TYPE=CITE> <FONT FACE="Arial"><FONT SIZE=-1>Is a eeprom
and a Pic exactly the same??</FONT></FONT>no
<BR> <FONT FACE="Arial"><FONT SIZE=-1>EEPROM means electronicly
erasable programable read only memory (it is not a microcontroller
)</FONT></FONT>
<BR><FONT FACE="Arial"><FONT SIZE=-1>PIC is an MCU that has
CPU,RAM,ROM,EEPROM,I/O built in it . it is a computer without
monitor,keybord and mouse</FONT></FONT><FONT FACE="Arial"><FONT SIZE=-1></FONT><
/FONT>
<P><FONT FACE="Arial"><FONT SIZE=-1>Why the different names ??</FONT></FONT>pic
is MCU eeprom is memory <FONT FACE="Arial"><FONT COLOR="#
000000"><FONT SIZE=-1>this
is an exercise in our school. Can you help me??? thanks</FONT></FONT></FONT>you
wellcome
<BR>
<BR>
<P>Andre Abelian
<BR>
<BR>
<P> <FONT FACE="Arial"><FONT SIZE=-1><A HREF="EraseMEdwyssspam
spamBeGonentb.ch">dwyssspam
spamBeGonent
b.ch</A></FONT></FONT></BLOCKQUOTE>
<P>--
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<P>==========================================
<BR>= <A HREF="http://www.compufire.com">www.compufire.com</A>  
;
=
<BR>= <A HREF="RemoveMEandreKILLspam
compufire.com">andreSTOPspam
spam_OUTcompufire.com</A> &
>
nbsp;
=
<BR>= <A HREF="spamBeGonemcu-engineeringSTOPspam
EraseMEcompufire.com">KILLspammcu-engineeringspamBeGone
comp
ufire.com</A> =
<BR>= Andre Abelian: Engine Electronics, Inc.=
<BR>= Tel 909-589-5485 Fax 909-598-5695 =
<BR>==========================================
<BR>
</BODY>
</HTML>
</x-html>
1998\08\15@035247
by
Dr. Imre Bartfai
Hi,
On Fri, 14 Aug 1998, David Wyss wrote:
> Is a eeprom and a Pic exactly the same??
Nope.
EEPROM means Electrically Erasable Programmable Read-Only-Memory.
PIC was originally AFAIK Peripherial Interface Controller. Actually, it is
a microcontroller family from Microchip. The Program Memory of a PIC *MAY*
be an EEPROM (e. g. PIC16C84), but is not typical for today yet.
I hope it has helped.
Imre
>
> Why the different names ??
>
>
> this is an exercise in our school. Can you help me??? thanks
>
> EraseMEdwyss
EraseMEntb.ch
>
'question'
1998\09\28@143000
by
sadegh
Hi All,
please;
what`s a meaning of " wanna"??
Tanks for your answer.
1998\09\28@144103
by
John Haggins
wanna means "want to"
gonna means "going to"
What does "tanks" mean? :))
fanks,
John
At 09:40 PM 9/28/98 +0330, you wrote:
>Hi All,
>
>please;
>what`s a meaning of " wanna"??
>
>Tanks for your answer.
>
>
1998\09\28@144938
by
goflo
Colloquial English. Contraction of "want to", i.e. "I wanna go home".
Not used by Bill Buckley, or those who wish to appear to be educated.
Regards, Jack
sadegh wrote:
>
> Hi All,
>
> please;
> what`s a meaning of " wanna"??
>
> Tanks for your answer.
1998\09\28@145107
by
Ryan Pogge
1998\09\28@150957
by
Matt Bonner
>Hi All,
>
>please;
>what`s a meaning of " wanna"??
>
Yo, I'll tell you what I want, what I really really want,
So tell me what you want, what you really really want,
I'll tell you what I want, what I really really want,
So tell me what you want, what you really really want,
I wanna, I wanna, I wanna, I wanna, I wanna really
really really wanna zigazig ha.
--PICy Spice
1998\09\28@162757
by
kfisk
ROTFL my &*$ off! I especially like the moniker!
> >Hi All,
> >
> >please;
> >what`s a meaning of " wanna"??
> >
> Yo, I'll tell you what I want, what I really really want,
> So tell me what you want, what you really really want,
> I'll tell you what I want, what I really really want,
> So tell me what you want, what you really really want,
> I wanna, I wanna, I wanna, I wanna, I wanna really
> really really wanna zigazig ha.
>
> --PICy Spice
>
1998\09\28@194146
by
Matt D K
|
>Yo, I'll tell you what I want, what I really really want,
>So tell me what you want, what you really really want,
>I'll tell you what I want, what I really really want,
>So tell me what you want, what you really really want,
>I wanna, I wanna, I wanna, I wanna, I wanna really
>really really wanna zigazig ha.
That was horribly out of place....just horrible. I thought the Spice
girls would never affect this list. My posting deals with the original
question, the use of to much slang justs gets people mad and sometimes
they skip over an "unreadable" message. So if you want a question
answered the best policy is plain english not slang from alt.2600 . Don't
take this as a flame, its not meant to be discouraging in anyway.
Matt K
On Mon, 28 Sep 1998 13:05:55 -0600 Matt Bonner <TakeThisOuTmbonner.....
TakeThisOuTSUNADA.COM>
writes:
{Quote hidden}>>Hi All,
>>
>>please;
>>what`s a meaning of " wanna"??
>>
>Yo, I'll tell you what I want, what I really really want,
>So tell me what you want, what you really really want,
>I'll tell you what I want, what I really really want,
>So tell me what you want, what you really really want,
>I wanna, I wanna, I wanna, I wanna, I wanna really
>really really wanna zigazig ha.
>
>--PICy Spice
>
___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]
1998\09\28@212150
by
Eduardo Rivera
>> "That was horribly out of place....just horrible. I thought the Spice
>>girls would never affect this list."
________________________
Are you PIC-er or PICKY ?
________________________
>
> My posting deals with the original
>question, the use of to much slang justs gets people mad and sometimes
>they skip over an "unreadable" message.
>Matt K
1998\09\28@222229
by
jmnewp
very clever
Eduardo Rivera wrote:
>
> >> "That was horribly out of place....just horrible. I thought the Spice
> >>girls would never affect this list."
> ________________________
> Are you PIC-er or PICKY ?
> ________________________
> >
> > My posting deals with the original
> >question, the use of to much slang justs gets people mad and sometimes
> >they skip over an "unreadable" message.
> >Matt K
1998\09\29@031107
by
Dr. Imre Bartfai
O. k. I understand. But who is Bill Buckley?
Imre
On Mon, 28 Sep 1998 TakeThisOuTgofloKILLspam
spampacbell.net wrote:
{Quote hidden}> Colloquial English. Contraction of "want to", i.e. "I wanna go home".
> Not used by Bill Buckley, or those who wish to appear to be educated.
>
> Regards, Jack
>
>
> sadegh wrote:
> >
> > Hi All,
> >
> > please;
> > what`s a meaning of " wanna"??
> >
> > Tanks for your answer.
>
>
1998\09\29@231202
by
netquake
Jesus! You make me almost wanna unsubscribe! ;-)
----------
{Quote hidden}
'Question'
1998\11\16@162954
by
Martin
Hello, I need to know the cheapest way to measure the temperature of a
processor and the temperature of some water, and have the output be in
serial format. I have no experience programming PICs myself, but I do
have experience with all types of hardware. Is there a way to do this
without having to use a PIC ?
Thanks.
1998\11\16@165130
by
Peter L. Peres
|
On Mon, 23 Nov 1998, Martin wrote:
> Hello, I need to know the cheapest way to measure the temperature of a
> processor and the temperature of some water, and have the output be in
> serial format. I have no experience programming PICs myself, but I do
> have experience with all types of hardware. Is there a way to do this
> without having to use a PIC ?
For the water, many people will suggest a certain Dallas part.
For the processor however, I think that I've come up with a truly evil way
to read the die temperature without opening a chip. Here is the idea:
On nearly all micros there are pins that remain unused in a certain
applications. Most of these have an intrinsic protection network built in
which includes a protection diode towards Vdd. There is also a higher
voltage source available (the unregulated power supply).
The idea is to supply a constant current into an unused input pin and bias
the protection diode in reverse, and buffer the voltage difference Vinput
- Vdd, and divide it (by 2 ?) to get it into the range of an on-chip A/D.
Thus a PIC with A/D should be able to measure its own die temperature
while working ;).
A Si diode has a temp. co. of -2.2... mV/K but it needs to be calibrated
for the resp. range. A gain of x 10 after dividing by 2, using a suitable
DC reference should allow a temperature range of 100 degrees C on 8 bits.
This diode should be very closely coupled to the die. It is also very
closely coupled to any voltage drop on the Vdd grid inside the chip which
would require some software measures to be taken while sampling the temp.
dep. voltage (2.2 mV ~= 10 mA on 0.2 ohms...).
this needs to be elaborated, but how does it strike you ? ;)
Peter
1998\11\16@181741
by
William M. Smithers
|
On Mon, 16 Nov 1998, Peter L. Peres wrote:
> For the processor however, I think that I've come up with a truly evil way
> to read the die temperature without opening a chip. Here is the idea:
>
> On nearly all micros there are pins that remain unused in a certain
> applications. Most of these have an intrinsic protection network built in
> which includes a protection diode towards Vdd. There is also a higher
> voltage source available (the unregulated power supply).
...
> The idea is to supply a constant current into an unused input pin and bias
> the protection diode in reverse, and buffer the voltage difference Vinput
> - Vdd, and divide it (by 2 ?) to get it into the range of an on-chip A/D.
...
> this needs to be elaborated, but how does it strike you ? ;)
Devious, indeed! Of course, you could save yourself a whole
lot of headache and just use a PIC 14000, which has an
on-board thermistor that can be internally directed
to an A/D channel.
-Will
1998\11\16@205454
by
Scott Newell
|
>For the processor however, I think that I've come up with a truly evil way
>to read the die temperature without opening a chip. Here is the idea:
I dreamed up a very similiar idea about a year ago. Never did get around
to trying it though...
>A Si diode has a temp. co. of -2.2... mV/K but it needs to be calibrated
>for the resp. range. A gain of x 10 after dividing by 2, using a suitable
>DC reference should allow a temperature range of 100 degrees C on 8 bits.
>This diode should be very closely coupled to the die. It is also very
>closely coupled to any voltage drop on the Vdd grid inside the chip which
>would require some software measures to be taken while sampling the temp.
>dep. voltage (2.2 mV ~= 10 mA on 0.2 ohms...).
I was planning on using the internal diode and switching the excitation
current between two values (say 10µA and 100 µA). No calibration or
external diode needed. (The switched current bit came from a LT app note.)
I never bothered to check, but it might be easier if you could turn on a
diode with a negative supply. At least then you'd have one end as a ground
reference.
newell
1998\11\17@121120
by
Jeff Jolie
Why not use the PIC14000? It has an internal temp sensor connected to an ADC
input that will give you the temp of the processor. There are other ADC
inputs available for interfacing to an external temp sensor.
Jeff Jolie
{Original Message removed}
1998\11\17@121553
by
Peter L. Peres
|
On Mon, 16 Nov 1998, Scott Newell wrote:
> >For the processor however, I think that I've come up with a truly evil way
> >to read the die temperature without opening a chip. Here is the idea:
>
> I dreamed up a very similiar idea about a year ago. Never did get around
> to trying it though...
What a man has once imagined...
{Quote hidden}> >A Si diode has a temp. co. of -2.2... mV/K but it needs to be calibrated
> >for the resp. range. A gain of x 10 after dividing by 2, using a suitable
> >DC reference should allow a temperature range of 100 degrees C on 8 bits.
> >This diode should be very closely coupled to the die. It is also very
> >closely coupled to any voltage drop on the Vdd grid inside the chip which
> >would require some software measures to be taken while sampling the temp.
> >dep. voltage (2.2 mV ~= 10 mA on 0.2 ohms...).
>
> I was planning on using the internal diode and switching the excitation
> current between two values (say 10µA and 100 µA). No calibration or
> external diode needed. (The switched current bit came from a LT app note.)
Good idea ! Now, how can one chop AND switch the current with RA4 + coil ?
> I never bothered to check, but it might be easier if you could turn on a
> diode with a negative supply. At least then you'd have one end as a ground
> reference.
I was trying to avoid that because of the higher currents in the GND chip
bonding and grid. Anyway negative voltages are hard to make unless there
is one around or one uses the sense pin proper to drive a coil to GND then
turns it tristate at which moment the coil will kickback and generate your
reverse voltage on that output's lower protection network ;)
A series resistor is in order. I think that a 200 uH standard coil for low
current and R=470 will do fine. The following amp must include negative
voltages in its CMMR and be fast enough to sample while the coil is still
alive.
This looks truly evil. I think that the LM324 will accomodate small
negative voltages at the input in inverting amp configuration with the +
input GND-ed. I'll try this later. The 324 is not fast however. Hmm.
Starts to look like a PIC711 + one section of 324 + one 200 uH coil + 3
R's ;) The R in series with the coil may be replaced by a CR???
current generator. This one acts as a diode when reverse biased. We'll
see.
You can obtain a positive voltage (larger than Vdd) using the usual
infamous RA4 + coil solution. The scaling and division is required in this
case because the 2.2 mV/degree is easily getting lost between A/D
non-linearity and other temperature drifts (f.ex. the PSU regulator's and
the opamps offset drift). If the GND is clean enough, the -V method
described above may be better.
Peter
1998\11\17@124454
by
John Griessen
Well, the question was about price. What is the price diff between the
14000, and a minimal slow one with ADC? External thermistors can cost .10
to .39 each in 10,000 product quantities, but are much more in small run
quantities, so measuring diode or transistor temp properties lets your
design work economically over a bigger range of quantities, (as in 100s per
batch for test marketing)
-----Original Message-----
Why not use the PIC14000? It has an internal temp sensor connected to an ADC
input that will give you the temp of the processor. There are other ADC
inputs available for interfacing to an external temp sensor.
1998\11\17@221044
by
Russell McMahon
|
The point about switched diode current may not have been fully made
here. If a diode is used as a temperature sensor using its absolute
voltage drop then, as has been said, it must be calibrated.
However, if the differential voltage drop is measured at two
different currents then the result can be used to calculate device
independent temperature - it is only a function of the material used
(here = Silicon) and no calibration is needed. this is probably what
the LT. app note was dealing with. This is a very nice method but the
simpler method is more commonly seen in everyday use.
Russell McMahon
From: Peter L. Peres <plpEraseME
ACTCOM.CO.IL>
> >For the processor however, I think that I've come up with a truly
evil way
> >to read the die temperature without opening a chip. Here is the
idea:
>
> I dreamed up a very similiar idea about a year ago. Never did get
around
> to trying it though...
What a man has once imagined...
> >A Si diode has a temp. co. of -2.2... mV/K but it needs to be
calibrated
> >for the resp. range. A gain of x 10 after dividing by 2, using a
suitable
> >DC reference should allow a temperature range of 100 degrees C on
8 bits.
> >This diode should be very closely coupled to the die. It is also
very
> >closely coupled to any voltage drop on the Vdd grid inside the
chip which
> >would require some software measures to be taken while sampling
the temp.
> >dep. voltage (2.2 mV ~= 10 mA on 0.2 ohms...).
>
> I was planning on using the internal diode and switching the
excitation
> current between two values (say 10µA and 100 µA). No calibration
or
> external diode needed. (The switched current bit came from a LT
app note.)
'Question'
1998\12\31@140625
by
John Payson
|Good idea ! Now, how can one chop AND switch the current with RA4 + coil ?
What about using a cap for negative voltage generation? Maybe
use four pins total, wired like this:
---+
RA0|------R1----.
| |
RA1|------R2----+
| |
RA2|------------+
| |
RA3|------CAP---'
___+
Initial guess for values: R1 ~ 470K; R2 ~47K; R3 ~100ohms; Cap ~ 0.01uF
Start by driving RB0 and RB1 high; RB3 low. Give the cap time to
charge near +5 volts, then turn RB2 high.. Then float RA0-RA2,
ground RA0, and quickly read the voltage on RA2. This will tell you
the drop of the diode under 10uA load.
Then recharge the cap (drive RB0 and RB1 high, etc.) and this time
ground RA1 instead of RA0. This time the diode will have 100uA put
through it.
If desired, the same circuitry may be used to measure the diodes on
the positive rail. Simply swap all the highs and lows mentioned
above.
Cute technique/circuit?
Attachment converted: wonderland:WINMAIL.DAT 1 (????/----) (00024CAB)
1998\12\31@172006
by
dave vanhorn
At 01:07 PM 12/31/98 -0600, John Payson wrote:
>|Good idea ! Now, how can one chop AND switch the current with RA4 + coil ?
>
>What about using a cap for negative voltage generation? Maybe
>use four pins total, wired like this:
The input protection diodes will kill you. You'll never get it past about
.7V below the rail, and you could easily throw it into SCR latchup.
'Question'
1999\01\15@174012
by
John Payson
At 01:07 PM 12/31/98 -0600, John Payson wrote:
>|Good idea ! Now, how can one chop AND switch the current with RA4 + coil ?
>
>What about using a cap for negative voltage generation? Maybe
>use four pins total, wired like this:
|The input protection diodes will kill you. You'll never get it past about
|.7V below the rail, and you could easily throw it into SCR latchup.
The goal was to measure exactly how far below the rail the diodes
would let a pin go with a small amount of current. The resistors
are there to limit the current to either 10uA or 100uA; since the
PIC's diodes are designed to handle miliamps' worth of current with-
out latch-up or other problems, I would think that inducing latchup
with 100uA of current should be well-nigh impossible.
Attachment converted: wonderland:WINMAIL.DAT (????/----) (00026B3E)
'Question'
1999\04\20@151054
by
Electronics Master
HALLO EVERYBODY
I WOULD LIKE A PROGRAMME
FOR A PIC 16F84 TO CHECK (OPEN-CLOSE) PORT B,1
AND IF PORT B,1 IS SET = 1
THEN MAKE PORT B,4 SET = 1
I USE THIS PROGRAMM
LIST P=16F84
PORTB EQU 06H
START
TRIS PORTB
BTFSS PORTB,1
GOTO START
BSF PORTB,4
GOTO START
ORG 3FFF
END
WHAT IS WRONG ?????????
Thanks
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
1999\04\20@154025
by
engelec
do not type in upper case any more
because that means yelling at us. that is what
piclist says.
Electronics Master wrote:
> HALLO EVERYBODY
> I WOULD LIKE A PROGRAMME
> FOR A PIC 16F84 TO CHECK (OPEN-CLOSE) PORT B,1
> AND IF PORT B,1 IS SET = 1
> THEN MAKE PORT B,4 SET = 1
>
it looks like that you didn't even open the data book.
>
> I USE THIS PROGRAMM
> LIST P=16F84
> PORTB EQU 06H
>
your port initialization is wrong you have to
change to bank 1, setup port then change to bank0
since you want to make B0 input then
BSF status,RP0 ; change to bank1
movlw B'0000010' ; load I/O
movwf TRISB ; do it
BCF status,RP0 ; change to bank0
> START
>
> TRIS PORTB
>
above line is extra
{Quote hidden}> BTFSS PORTB,1
> GOTO START
> BSF PORTB,4
> GOTO START
> ORG 3FFF
> END
>
> WHAT IS WRONG ?????????
>
> Thanks
>
Andre Abelian
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
1999\04\21@042956
by
paulb
|
Electronics Master wrote:
> WHAT IS WRONG ?????????
Caps for code please, not conversation.
> PIC 16F84 TO CHECK (OPEN-CLOSE) PORT B,1
> AND IF PORT B,1 IS SET = 1
> THEN MAKE PORT B,4 SET = 1
> LIST P=16F84
> PORTB EQU 06H
; You should be using something like:
;----------------------------------
LIST P=16F84
; suppress nuisance warnings:
errorlevel -224
errorlevel -305
; Include standard defines
INCLUDE "\pic\mpasm\p16F84.inc"
> START
; This is a *label*. Must be in first column.
> TRIS PORTB
; You haven't given it a value in W to use to set the TRIS register.
; I think you want to MOVLW 0x02 just before this to set PORTB,1 as the
; only input. Do *not* connect unused pins to a supply rail.
; You only need to set the TRIS register once anyway, so the loop point
; can occur after this. With due respect to Andre, forget bank
; switching!
> BTFSS PORTB,1
> GOTO START
; So, if PORTB,1 is zero, there is no way to zero PORTB,4?
> BSF PORTB,4
> GOTO START
> ORG 3FFF
> END
; You don't need to ORG an END statement.
> WHAT IS WRONG ?????????
Everything!
Try:
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LIST P=16F84
; suppress nuisance warnings (should be in include file actually):
errorlevel -224
errorlevel -305
; Include standard defines - actual path depends on your installation:
INCLUDE "\pic\mpasm\p16F84.inc"
ORG 0
GOTO START
; Jump over interrupt vector.
ORG 0x10
START MOVLW 0 ; All outputs in
TRIS PORTA ; port A unless otherwise used.
MOVLW 0x02 ; Bit 1 is input, all others outputs
TRIS PORTB ; in port B
CLR PORTA ; Start with
CLR PORTB ; a clean slate
LOOP1 BTFSC PORTB,1 ; If input set,
BSF PORTB,4 ; set output
BTFSS PORTB,1 ; If input clear,
BCF PORTB,4 ; clear output
CLRWDT ; Just in case you had it enabled
GOTO LOOP1 ; loop forever ....
END
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No warranty applies to this code.
--
Cheers,
Paul B.
1999\04\21@063925
by
Caisson
> Van: Electronics Master <RemoveMEsrv25EraseME
spam_OUTHOTMAIL.COM>
> Aan: @spam@PICLISTRemoveME
EraseMEMITVMA.MIT.EDU
> Onderwerp: Question
> Datum: dinsdag 20 april 1999 21:10
Hello Electronics Master,
One: Please write in Lower-case. Writing in Upper-case means YELLING :-)
> LIST P=16F84
> PORTB EQU 06H
> START
Please end a Target-Label with a Colon ( ":" ), it improves readability.
> TRIS PORTB
I see that you transfer the contents of W to the B-Register Control, but
where did you load W ?
> BTFSS PORTB,1
> GOTO START
> BSF PORTB,4
I can see that you copy a One from Bit 1 to Bit 4. But where do you copy a
Zero-Bit ?
> GOTO START
Re-initializing I/O in every loop is somewhat Over-kill I would say ...
> ORG 3FFF
> END
Greetz,
Rudy Wieser
'Question'
1999\09\02@072438
by
Jose Antonio Gracia Negre
part 0 662 bytes content-type:text/x-vcard; charset=us-ascii; name="vcard.vcf" (decoded 7bit)
; data1 = b'01110000'
; data2 = b'00000001'
CODE:
movf DATA1,W
addwf DATA2,W
addwf PC,F
RETLW B'01111110'
RETLW B'11000011'
RETLW B'11000011'
RETLW B'11000011'
RETLW B'11000011'
RETLW B'11000011'
........
ETC.
Gracias
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Tarjeta de Jose Antonio GRACIA NEGRE
Content-Disposition: attachment; filename="vcard.vcf"
Attachment converted: wonderland:vcard.vcf (TEXT/CSOm) (0000BF8F)
1999\09\02@183109
by
eplus1
Can't you just use the DW directive to define data in the FLASH memory and
then use the iread instruction to retrieve the data? The following is for
the Scenix, but I believe the same type of thing works on the PIC.
mov w, TablePointer
mov m, (data/$100) ; high
iread
; do something with the data byte now in W
; etc....
ret
data
dw $3E,$C3,$C3,$C3,$C3,$C3,$C3,$C3,$C3
James Newton, webmaster http://get.to/techref
(hint: you can add your own private info to the techref)
EraseMEjamesnewton
@spam@geocities.com
1-619-652-0593 phoneÊ
{Original Message removed}
1999\09\03@004027
by
paulb
Jose Antonio Gracia Negre wrote:
> I must include 608 instructions RETLW
> But I only have 256 first positions of memory.
> Somebody knows as I can use the rest?
This was discussed in another thread within the last week. You use
one of the routines posted in the application notes for "large" table
reads.
Essentially, this defines PCLATH to set from which page you will read,
then sets the offset within that page into W, then simply call a routine
consisting of MOVWF PCL
That operation jumps to the location specified in the page specified
and if the RETLW is there, returns with the desired table-read value.
If I knew the application however, I'd probably look for some way of
compressing your data range.
--
Cheers,
Paul B.
'Question'
1999\10\14@175648
by
Ilian Itchov
Hi All,
Does anyone know where can find software for LTC (Longitudinal Time Code) Time C
ode
Generator/Reader with standard PC Soundcard?
Ilian
1999\10\14@180724
by
Andy Kunz
>Does anyone know where can find software for LTC (Longitudinal Time Code)
>Time Code
>Generator/Reader with standard PC Soundcard?
Not exactly, but there are several vendors who have LTC products which
could be of use. One in Canada, I forget their name, is NOR... something.
They do a lot of VBI encoding products, and make the encoders used by
Nielsen ratings among other things.
Andy
==================================================================
Eternity is only a heartbeat away - are you ready? Ask me how!
------------------------------------------------------------------
@spam@andyspam_OUT
.....rc-hydros.com http://www.rc-hydros.com - Race Boats
spamBeGoneandyEraseME
montanadesign.com http://www.montanadesign.com - Electronics
==================================================================
'Question'
2000\03\24@142118
by
Joep Schro‘n
Hello picers,
Can anybody help me with following problem?
I've got a Fileregister with a value, if it is higher than say 120 he needs
to jump to a Subroutine and if it is lower than say 20 it needs to jump to
another subroutine.
Who can help me?
Thanks!!
Joep Schroen
More... (looser matching)
- Last day of these posts
- In 2000
, 2001 only
- Today
- New search...