Re: bit banged Basic52 code for 4-wire serial interface



Largo wrote:
"donald" <Donald@xxxxxxxxxxxxxxxx> wrote in message news:p5Odnf4I5K9gyeXanZ2dnUVZ_sKqnZ2d@xxxxxxxxxxxxxx

Largo wrote:

Hi,
Can someone site location or post example code for a MAX6969 LED driver for 8052 project? I have the Max chip for driving LED's prototyping on a 8052 development board. It uses "industry standard" 4-wire serial interface (SPI?). I have BASIC code for a I2C interface.

Largo

Please clairify what you are asking for !

C-code, assembly code, basic code for which basic compiler.

http://www.google.com/search?hl=en&q=8051+i2c

This gives you 152,000 hits, there has to be something in there for you.

Once you know what you want/need.

good luck

donald


Donald'
I have a 8052 development board. So I can use basic52
code for prototyping the MAX6969 circuitry first. Once this is perfected, the prototype will
go over to a PIC micro add on/modification. The PIC code is in assembler. Otherwise, if I use assembly
language for the 8051, how different is this from the PIC 16F873 op code?

If I said to you, can I run PC software on a MAC, what would you say ??

( have you looked at the data sheets for these chips )

Do you have a PIC board available ??

Why are you trying to develop on basic52, then try to run on a PIC ???

What development tools for the PIC do you have available ??

A proof of concept is one thing, writting code for two such different processors is just nuts.

Oh, I2C and SPI are also two different animals.

There is tons of examples of software SPI code for PICs all over the net.

There is a hardware SPI port in the 16F873, are you not going to use that?

Again, Google is your friend.

http://www.google.com/search?q=SPI+PIC+code

Is this your first PIC project ??

donald


Largo


.


Loading