Searching \ for ' [PIC] I hope it can be done' 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/microchip/devices.htm?key=pic
Search entire site for: 'I hope it can be done'.

No exact or substring matches. trying for part
PICList Thread
'[PICLIST] [PIC] I hope it can be done'
2002\04\19@125732 by Bill Merson

picon face
Hi All,
On 4/15 I posted a question about a LED display on 16F84 portb. I haven't
seen any responses so do I assume it can't be done? I think, but am not sure
that bit masking, shifting and other methods can do it but I am not sure.
I want to display a register on an three digit LED display using a bcd
decoder and transistor digit drivers all on portb.
Thanks,
Bill

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\04\19@134226 by M. Adam Davis

flavicon
face
In your earlier message you stated you had code that used porta for this
- why don't you just reassign the bits so it's all on portb?

I haven't seen any code that uses a bcd to seven segment decoder, but
there are routines on piclist.com to make a binary number into a packed
BCD number using two bytes.  It would then be a simple task to mask off
and rotate the proper bits into place before sending them to portb.

In short, it can be done.  The questions you're asking is "How do I get
from point A to point B" when A and B are very far apart - no one wants
to do the work for you (and you probably don't want them to do it for
you either).

Instead try breaking it up into smaller more managable pieces.

Start out by displaying a single number on the first LED display, move
to making all three display the same number, then make all three display
different numbers.

Then find a routine that converts the binary number into a BCD number,
and fill in the much smaller gap.

When you run into a smaller problem, ask very specific questions, and
tell us what you've tried.  If you think the answer may take up more
than a small paragraph, or more than a few minutes to answer then break
it up into smaller pieces again.

-Adam

Bill Merson wrote:

{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\04\19@135238 by Andrew Warren

flavicon
face
Bill Merson <spam_OUTPICLISTTakeThisOuTspammitvma.mit.edu> wrote:

> On 4/15 I posted a question about a LED display on 16F84 portb. I
> haven't seen any responses so do I assume it can't be done? I
> think, but am not sure that bit masking, shifting and other methods
> can do it but I am not sure. I want to display a register on an
> three digit LED display using a bcd decoder and transistor digit
> drivers all on portb.

Bill:

It sounds as though you want to connect three bcd decoders to the
PIC's RB0:3 pins, then use three of the remaining Port B pins to
individually enable one decoder at a time.

If that's a correct interpretation of your plan, then it most
certainly can be done.  It shouldn't take more than about a dozen
lines of assembly code to accomplish it.

-Andy

=== Andrew Warren -- .....aiwKILLspamspam@spam@cypress.com
=== Principal Design Engineer
=== Cypress Semiconductor Corporation
===
=== Opinions expressed above do not
=== necessarily represent those of
=== Cypress Semiconductor Corporation

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\04\19@180324 by David P. Harris

picon face
Check out some of the projects in the PICLIST website (at the bottom of all
PICLIST messages), for eample, here is a project from there:
http://www.piclist.com/techref/microchip/cntdn/index.htm and this is the more
general page with more projects:  http://www.piclist.com/techref/io/led/pic.htm
Study the hardware and software.
David

Bill Merson wrote:

{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


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