Searching \ for '[PIC]: Serial programming' 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/devprogs.htm?key=programming
Search entire site for: 'Serial programming'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Serial programming'
2001\02\26@102059 by pang khong lin

picon face
Hi,

I am currently interfacing a communication IC with a PIC16F84A. The comm. IC
has 4 pins -

1. Enable (Input)
2. Clock  (Input)
3. Data   (Input/Output)
4. R/W    (Input)

Basically the Enable pins and R/W pins only change once to denote the start
of communication and the end. The PIC will output the neccessary signal to
the IC for the EN,CLK,R/W and DATA ( depending if transmit or receive ).

Usually during transmission 14 bits of data is transmitted. Out of these 14
bits of data, possibly only 5 bit are changed while the remaining will
always be the same.

Are there any good ways to write such a code? Currently, the method i used
is very direct and stupid. The codes are long and are basically repetitions.
Changing any particular bits are very difficult and need a lot of tracing.
This will introduce a lot of errors. I have tried using look up table.

Are there any other ways to write this?

Thanks for reading.





_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\26@110940 by David VanHorn

flavicon
face
>
>Usually during transmission 14 bits of data is transmitted. Out of these 14
>bits of data, possibly only 5 bit are changed while the remaining will
>always be the same.

When I've done things like this, I usually hard-code the static part, and
only use program logic to send the varying part.

--
Dave's Engineering Page: http://www.dvanhorn.org
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


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