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.
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.
At 01:53 PM 1/17/2006, jolanta_szarzynskaKILLspamo2.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.
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.
> 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
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?
>-----Original Message-----
>From: piclist-bouncesspam_OUTmit.edu [@spam@piclist-bouncesKILLspammit.edu]
>Sent: 18 January 2006 16:23
>To: Microcontroller discussion list - Public.
>Subject: RE: [PIC] rs422 LEDs...
>
>
>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?
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.
=======================================================================
> >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.
> 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
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).
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.
> 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
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.
> > 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,