Searching \ for '[PIC] rs422 LEDs...' 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/displays.htm?key=leds
Search entire site for: 'rs422 LEDs...'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] rs422 LEDs...'
2006\01\17@155336 by n/a

What program in asembler can send 4 bytes through rs422 port to  
PIC16F627A, and then this pic
send this bytes (4 x 8bits)to LEDs (8 LEDs in 4 groups).
Thank You for your help.

spam_OUTjolanta_szarzynskaTakeThisOuTspamo2.pl

2006\01\17@161653 by Spehro Pefhany

picon face
At 09:53 PM 1/17/2006 +0100, you wrote:
>What program in asembler can send 4 bytes through rs422 port to
>PIC16F627A, and then this pic
>send this bytes (4 x 8bits)to LEDs (8 LEDs in 4 groups).
>Thank You for your help.

You can use the serial port in the F627A to receive your data in whatever
form, and then multiplex out 4 groups of 8 LEDs using 12 I/O lines. Using
4 discrete transistor you can get enough current for decent LED brightness
using bright leds with out any other active components.

I doubt anyone has a ready-to-use program for you- just write one.

Best regards,

Spehro Pefhany --"it's the network..."            "The Journey is the reward"
.....speffKILLspamspam@spam@interlog.com             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com
->> Inexpensive test equipment & parts http://search.ebay.com/_W0QQsassZspeff


2006\01\17@162932 by olin piclist

face picon face
Jolanta Szarzyñska wrote:
> What program in asembler can send 4 bytes through rs422 port to
> PIC16F627A,

And what machine is the assembler program supposed to run on?

> and then this pic
> send this bytes (4 x 8bits)to LEDs (8 LEDs in 4 groups).

There are lots of ways to do that.  A coherent answer requires a coherent
specification, which yours is not.


******************************************************************
Embed Inc, Littleton Massachusetts, (978) 742-9014.  #1 PIC
consultant in 2004 program year.  http://www.embedinc.com/products

2006\01\17@232003 by Dwayne Reid

flavicon
face
At 01:53 PM 1/17/2006, jolanta_szarzynskaspamKILLspamo2.pl wrote:
>What program in asembler can send 4 bytes through rs422 port to
>PIC16F627A, and then this pic
>send this bytes (4 x 8bits)to LEDs (8 LEDs in 4 groups).

Where does the RS422 data originate from?  Is it coming from a PC or
another PIC?  Why RS422?

What baud rate?

What is the data format?  Are the LED channels bit-mapped from 4
bytes of incoming data or is there a high-level protocol involved.

If the data is bit-mapped, what happens if you receive more than 4
bytes of data?

How does the receiver know when to process the received data?  Are
you relying upon a time-out period where no data is sent for a
specified amount of time?

How much current do the LED drivers need to handle?

What is the power supply?

There are more questions that need to be answered but the above
should get you started.

dwayne

--
Dwayne Reid   <.....dwaynerKILLspamspam.....planet.eon.net>
Trinity Electronics Systems Ltd    Edmonton, AB, CANADA
(780) 489-3199 voice          (780) 487-6397 fax

Celebrating 21 years of Engineering Innovation (1984 - 2005)
 .-.   .-.   .-.   .-.   .-.   .-.   .-.   .-.   .-.   .-
    `-'   `-'   `-'   `-'   `-'   `-'   `-'   `-'   `-'
Do NOT send unsolicited commercial email to this email address.
This message neither grants consent to receive unsolicited
commercial email nor is intended to solicit commercial email.

2006\01\18@105006 by Wouter van Ooijen

face picon face
> What program in asembler can send 4 bytes through rs422 port to  
> PIC16F627A, and then this pic
> send this bytes (4 x 8bits)to LEDs (8 LEDs in 4 groups).

A quite simple program, roughly the level for half-way a first class on
PIC assembler. And the answer for RS232 or RS485 would have been the
same (and the program too).

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2006\01\18@111153 by Spehro Pefhany

picon face
At 04:50 PM 1/18/2006 +0100, you wrote:
> > What program in asembler can send 4 bytes through rs422 port to
> > PIC16F627A, and then this pic
> > send this bytes (4 x 8bits)to LEDs (8 LEDs in 4 groups).
>
>A quite simple program, roughly the level for half-way a first class on
>PIC assembler. And the answer for RS232 or RS485 would have been the
>same (and the program too).
>
>Wouter van Ooijen

What does "half-way a first class" mean?  Some kind of idiom that doesn't
translate well?

>Best regards,

Spehro Pefhany --"it's the network..."            "The Journey is the reward"
EraseMEspeffspam_OUTspamTakeThisOuTinterlog.com             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com
->> Inexpensive test equipment & parts http://search.ebay.com/_W0QQsassZspeff


2006\01\18@114441 by Michael Rigby-Jones

picon face


{Quote hidden}

Half way through an introductory PIC tutorial?  i.e. not absolute beginner level, but someone who has grasped the basic concepts should have relatively little difficulty.

Regards

Mike

=======================================================================
This e-mail is intended for the person it is addressed to only. The
information contained in it may be confidential and/or protected by
law. If you are not the intended recipient of this message, you must
not make any use of this information, or copy or show it to any
person. Please contact us immediately to tell us that you have
received this e-mail, and return the original to us. Any use,
forwarding, printing or copying of this message is strictly prohibited.
No part of this message can be considered a request for goods or
services.
=======================================================================

2006\01\18@115127 by andrew kelley

picon face
> >A quite simple program, roughly the level for half-way a first class on

> What does "half-way a first class" mean?  Some kind of idiom that doesn't
> translate well?

halfway to first class.. mid-level..

andrew

2006\01\18@123935 by Mark Scoville

flavicon
face
> >A quite simple program, roughly the level for half-way a first class on
> >PIC assembler. And the answer for RS232 or RS485 would have been the
> >same (and the program too).
> >
> >Wouter van Ooijen
>
> What does "half-way a first class" mean?  Some kind of idiom that doesn't
> translate well?
>

Maybe. I understood "half-way a first class" to mean that the project would
be within the capabilities of someone who had completed 50% (half-way) of a
beginning course (first class) in PIC assembler.

-- Mark



2006\01\18@132137 by Wouter van Ooijen

face picon face
> What does "half-way a first class" mean?  Some kind of idiom
> that doesn't translate well?

I meant: in a first course in pic assembler, in my case 7 lessons, this
would be a nice assignment halfway the course, in the 3th or 4th lesson.

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2006\01\18@132137 by Wouter van Ooijen

face picon face
> Maybe. I understood "half-way a first class" to mean that the
> project would
> be within the capabilities of someone who had completed 50%
> (half-way) of a
> beginning course (first class) in PIC assembler.

I see, 'first' in combination with class is an ambiguous word here, it
could mean quality as in 'top class' or order as in 'the first PIC
course (class) I attended'. I meant second interpretation.

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2006\01\18@133803 by John Nall

picon face
Wouter van Ooijen wrote:
> > I meant: in a first course in pic assembler, in my case 7 lessons, this
> would be a nice assignment halfway the course, in the 3th or 4th lesson.
>  

Out of more than just simple curiosity, which chip do you use in
teaching pic assembler?  (I am making an assumption that you utilize one
particular chip, or at least one particular family, but that may be an
unwarranted assumption).

2006\01\18@134836 by William Chops Westfield

face picon face

On Jan 18, 2006, at 10:21 AM, Wouter van Ooijen wrote:

>> "half-way a first class" mean?
>
> I meant: this would be a nice assignment halfway the course...

Huh.  In english (american english, anyway), it looks/sounds very
strange without an explicit "through" in there:
       half-way THROUGH a first class
       half-way THROUGH the course
I've always found differences in language like that ... interesting.

BillW

2006\01\18@141922 by Wouter van Ooijen

face picon face
> Out of more than just simple curiosity, which chip do you use in
> teaching pic assembler?  (I am making an assumption that you
> utilize one
> particular chip, or at least one particular family, but that
> may be an
> unwarranted assumption).

At the moment 16F688, because I use a pickit1-compatible PCB and that is
the largest PIC supported by the pickit1 (at that time). When I switch
to a pickit2-based design I will probably take a largest chip supported,
IIRC the 16F917.

I present the 14-bit core PIC as 'a totally weird architecture, if you
can understand this you will likely understand everything else'. But I
also point out why this architecture is still in wide use. We (I) also
teach ARM assembler, as an example of a higher-end chip. We also teach C
on both PIC and ARM.

Another teacher uses the 16F628 with a parallel-port progger, but we
will probably merge the two courses.

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2006\01\18@201233 by Howard Winter

face
flavicon
picon face
Wouter,

On Wed, 18 Jan 2006 20:19:20 +0100, Wouter van Ooijen wrote:

>...
> When I switch to a pickit2-based design I will probably take a largest chip supported,
> IIRC the 16F917.

I wonder if the 16F690 would be a better bet for a course as you're discussing?  It's the largest one that
fits on the Demo board that comes with the PICkit2 (20 pin) and the Demo boards are available as a 3-pack,
where one is populated and the other two are bare, so the students can get a bit of soldering practice as
well!  :-)  And as the boards plug into the programmer, rather than being part of it as it is on the PICkit1,
you can have more students/projects than you have programmers, if that fits the way you teach.

Cheers,


Howard Winter
St.Albans, England


2006\01\19@055921 by Wouter van Ooijen

face picon face
> > When I switch to a pickit2-based design I will probably
> take a largest chip supported,
> > IIRC the 16F917.
>
> I wonder if the 16F690 would be a better bet for a course as
> you're discussing?

I said 'the largest chips supported', if that is the 690 that is what I
will use.

> It's the largest one that
> fits on the Demo board that comes with the PICkit2 (20 pin)
> and the Demo boards are available as a 3-pack,

I won't use the demo board, I want to make my own all-in-one board, like
I did for pickit1/16f688: http://www.voti.nl/hvu/2PROJ4/index.html

This course is not for electro but for technical computer students, so
self-soldering is not a realistic option (at least not for all
students).

> you can have more students/projects than you have
> programmers, if that fits the way you teach.

No, I want the students to be able to work at home, so I sell the boards
as 'mandatory material'. They are subsequently used in other courses
too.

I would probably choose a separate progger/target board for electro
students.

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


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