1/2 duty cycle question - Sansun 16x8 bicolor LED display PH-14
T&E Engineer
Posts: 1,396
I have been writing some simple SX/B code to get this LED display to work. I have attached the poor datasheet I have and a picture of the pinouts. I also attached the SX/B code that I need some help in determining if this is just a timing issue with 1/2 duty cycle or if I am off track.
I also have a youtube video: www.youtube.com/watch?v=gjOl8JYCrmk
What makes this display difficult is that there are 2 pins 'A' and 'B' that control which rows are turned on (e.g. even rows or odd rows). I used a tile calculator spreadsheet modified from Bean's original to create the EVEN and ODD type DATA statements the program will use.
As you see in the video, the display sees the even and odd rows correctly as seen with the 1000 MS delay between each cycle. Look at the program to see what I mean. I basically just load the even rows and then the odd rows but if I remove the delay, it cycles too fast and it appears as a blur or unwanted LEDs turn on.
Any help here would be greatly appreciated!
I also have a youtube video: www.youtube.com/watch?v=gjOl8JYCrmk
What makes this display difficult is that there are 2 pins 'A' and 'B' that control which rows are turned on (e.g. even rows or odd rows). I used a tile calculator spreadsheet modified from Bean's original to create the EVEN and ODD type DATA statements the program will use.
As you see in the video, the display sees the even and odd rows correctly as seen with the 1000 MS delay between each cycle. Look at the program to see what I mean. I basically just load the even rows and then the odd rows but if I remove the delay, it cycles too fast and it appears as a blur or unwanted LEDs turn on.
Any help here would be greatly appreciated!
Comments
Youtube: www.youtube.com/watch?v=wgc9VbJl9Qw
Please let me know what I am doing wrong. As you see when the delay in decreased it switched between the even and odd rows quicker as well as the data for the even and odd rows causing unwanted LEDs to shift between the even and odd rows.
Another thing to know that you can tell by the Excel tile calculator is that 8 bits in a DATA statement is made up of 2 columns (of either EVEN or ODD rows). Since there are 16 columns for the display, it can read in 8 bytes to fill up the even rows and 8 bytes to fill in the odd rows (thus - 2 sets of DATA statements).
Thanks for your help!