2013-04-09 03:55 PM
I would like some clear instructionsthat inform me how to communicate with the STLED316S.
I have the STEVAL-ICB003V board,viewing the communications on a logic analyzer, and attempting toduplicate the setup does not work.
I am connected to the STLED316S with auC, can get only DIG1_LED to illuminate.
It there is someone at ST that knowshow to point to a memory location and write control values, please doshare.
An example that tells how to set theSTB line low while pointing to a memory location + page file would beuseful.
Example, write to STLED316S to setnumber of digits, then set to send series of values to each digit fordisplay.
In addition, I am using 3.3V for theserial communications, I am powering the STLED316S with 5V, andpulling DIN/DOUT up with 3.3V. Is this the proper method?
2013-04-09 04:21 PM
Not sure this is the appropriate forum for this question, you might have better luck with the STM8 forum, or contacting your local ST rep or FAE for support on this.
2013-04-10 07:17 AM
Thank you Clive,
do the ST applications engineers that are familiar with ST products answer questions? Or is it up the the end user to figure this stuff out and then help others?2013-04-10 07:27 AM
This is a user forum, ST engineering resources are usually requested through traditional channels, and qualified by business opportunity.
2013-04-10 07:46 AM
Thanks again Clive, you have been very helpful.
''This is a user forum''
Then it is up to us as field engineers to make ST products work. See following comments:
''ST engineering resources are usually requested through traditional channels, and qualified by business opportunity.''
I am grateful that ST has provided me what the have. I have exhausted the resources you pervasively mentioned, and this is a final effort to get a product to market.2013-04-10 09:43 AM
Well, you are in trouble. This is where you should fall back on your engineering training.
The LED part is a 5V part. Luckily I think it will work if I read table 5.1 correctly. But it is not my job that is on the line.This looks like a SPI interface without a chip select. it uses STB to signal the direction of shift register DIN/DOUT.So send a command. STB low, send SPI byte, read dummy SPI byte, if a response from device is needed then add, STB high, send dummy byte, receive response. Attach Logic Analyser or scope to pins to verify waveforms shown in 9.1, 9.2pretty straight forward engineering work.2013-04-10 10:03 AM
Thanks you for some constructive comments.
I have a logic analyzer connected, I using SPI protocol. I depend on the datasheet as an engineer. I did not design the device.''So send a command. STB low, send SPI byte, read dummy SPI byte,''
Can you tell me by reading the datasheet why sending command 0xB0, STB high/low, 0x05, 0x20, 0x1C, 0xB6 -- Sets the values on EVAL board Display U4 (DIG2 pin) seg-c, L, S, S? Note, place break points to see display update.The most confusing thing about the above series of commands an an engineer that has been trained, it that datasheet page 19 states the MSB8 = Unused. Thus, one that has experience in application of the scientific method would surmise that replacing the command 0xB0 with 0x30 should obtain the same result? Well then hypothesis put to test, display is blanked?????????????????????????????????????????????????????????????????2013-04-10 12:25 PM
2013-04-10 12:37 PM
I attempted to insert a logic analyzer .png file last post, looks like I failed.
For others that may come to this post, and want to know what little I know:Lift the pins off of the board for the STLED316S and wire to uC of you choice.I am using SPI and a data rate the same as 9600 baud.The following will illuminate all of the 7-segment LED displays with the characters:DIG2 = segment-cDIG3= LDIG4= SDIG5= LHere is the sequence of writes to the device:0xB1 cycle STB high low0x000x200x1C0xB60X1C Good luck and thanks for the friendly comments from the community!2013-04-10 01:14 PM
Can't tell since I have no waveforms.
RM0090 figure 272 shows msb to lsb timing for CPHA=1 and CHPA=0316S section 8.1 shows msb to lsb timing.show me that SPI is set up correct.are you sure you want to send command 0xB0 when there is no msb/lsb swapping? The figure below shows the “reception�? by STLED316S for command/data write sequence. The STB must be low for 1 µs before the first and last clock rise. The minimum time the STB must remain low is 9 µs. The maximum clock frequency is 1 MHz with a duty cycle of 50%. Data set-up and hold time must be 100 ns.