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.
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?
I built a PIC ZIF programmer using MPLAB compatable ICD. The one from Olimex.
Maybe better to use the PIC programmer then 8051 board.
There is? Okay, 16F873 datasheet says Pin 15 is SPI port. And it's already used in this existing circuit.
I did the PIC project from existing assembler code and used the ICD to program. Works okay. Although I wish I could use the existing PIC's SPI port to add the MAX chip added functionality. As noted above, that pins already in use. What do I do now?
Thanks for insight on this. Any more suggestions? Largo
Thank you. This got me thinking. One more question.
My PIC16F873 circuit has unused pins 5, 6, 7, 18, 23 and 24 which, according to data sheet 18, 23 and 24 used for SPI. Looks like pin 18 for CLK, pin 23 for data in and pin 24 data out to the MAX6969. Forget the 8051 board. If I prototype using my PIC ICD to these pins and sample .asm code from Microchip--if it works, could I just add this new code/module to existing PIC project (code)?
Oh dear, oh dear. For your application you don't need to read back from the MAX6969 and therefore only need the SCK & SDO pins. Unfortunately, the PIC16F873/6 have these signals on pins 14 & 16 respectively. Now if you actually have PIC16F874/7, then you're getting closer as these signals are on pins 18 & 24 in the DIP version (20 & 26 in PLCC and 37 & 43 in QFP).
It's probably a good idea to read the data sheet before you start.
--
The Force is dark on one side, light on the other and holds the world
together.
Okay Gaffer Tape. Thanks. In that case, I could move over to the PIC16F877. Other than the boot loader in the 877, what's the difference? Could I just load my original PIC code without any changes?
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.