Page 1 of 1

32 bit SPI 628a

Posted: Wed Aug 15, 2012 11:55 pm
by mtqc76
Hi Benj and all,

I made a fcf with proteus simulation to show how to transmit 32 bit data eg 0xaaaaaaaa via 628a chip. Actually i want to make a POV of 32 bit single color. In simulation it is running okay. I need feedback on it if i am right in taking this path to transmit image data or pixel to 32 led via this manner. I made software SPI protocol and split it in to four byte and then transmitted accordingly to shift register 74ls595 to LEDs.

Need assistance or suggestion of VB software or something like that if I put a image on it it give 32 bit image data single color so I can implement in fcf. I think other solution could be to make data by using graph paper and draw image on it pixel wise and then calculate it to make it 32 bit data column wise. Van der Dam supplied such software but it can do only for 8 bit. If someone has software or link or information for 32 bit, plz let me know.

If someone can put light on scheme of sending letters or digit ASCII to POV via flowcode.

Thanks
Waseem

Re: 32 bit SPI 628a

Posted: Thu Aug 16, 2012 11:10 am
by Benj
Hello Waseem,

I output ASCII characters to a display the exact same way it is done for the graphical LCDs.

Basically there is a ROM array containing the pixel information for all the possible characters I would want to display.

When I want to display a string there is a function that breaks the string up into bytes, collects the pixel data for each byte from the ROM array and then draws this onto the display buffer.

The display should automatically cycle through the display buffer based on some kind of a sync pulse, mine comes from a hall effect sensor and a magnet which triggers a INT interrupt. This could just as easily be IR or light based. The display then moves through the buffer based on a timer interrupt.

The rate of the timer interrupt is manipulated depending on the sync pulse and the number of segments you wish to display and that have actually been displayed in the period it takes to do a full revolution.

Have a good look through the custom C code file I posted on the POV project topic as this should give you some insight into how all this works. The print function should also help you to understand how to print ASCII characters onto the display buffer.

Re: 32 bit SPI 628a

Posted: Fri Aug 17, 2012 1:21 am
by mtqc76
Thanks Sir:

Sir, you did not mention if it is okay to use the routine of 32 bit to send data to LED? I got your point and looked in custom.c, but getting mess.

Plz make a simple fcf as example to show the routine of sending letter ABC (ASCII) to port B.

{0x7e,0x09,0x09,0x09,0x7e}, // A
{0x7f,0x49,0x49,0x49,0x36}, // B
{0x3e,0x41,0x41,0x41,0x22}, // C

If we input to print string "ABC" and routine do the job of sending A, B, C to port B consecutively.

I hope routine will be much clear to me and how to use it in sending alphabets :(

I made a routine, plz check and do edit to make it proper. So i go from there. I used 1-5 seconds to display portb. run in proteus to know if it is transmitting.


Thanks in advance!

Waseem