News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

SYSTEMS CONTROL MODULE P10 HUB12 IC 74HC595

Started by superpro, Jul 10, 2022, 05:10 PM

Previous topic - Next topic

superpro

 HELLO FRIENDS, IT IS POSSIBLE TO HAVE INFORMATION TO WORK WITH P10 MODULES, THIS USES SPI SYSTEM, WITH THE 74HC595, IF HIGH WORKING FREQUENCY IS REQUIRED.

https://320volt.com/en/p10-led-panellerin-mikrodenetleyici-ile-kontrolu-p10-ccs-kutuphanesi/
In this article I will give you information about the expulsion of LED Panels with microcontroller P10.

P10 LED Panels over the last few years in fashion and the market is quite a safe place. Really almost everywhere, these panels can be made using large and small graphic screens.

Normally, these panels, you can find a variety of features for driver cards. Our goal is to use this in your own custom panels, these cards can not do. I went on this point.

Anyway, I would like to point out some technical details before the details of the work. This is a business transaction to control the density of the panels, so you need to run quite high frequencies of the Panel microcontroller. That's why I chose the work frequency and interval 18F series 2-3 or 4-panel you can manage more than increasing the speed at which these speeds, but you need to.

Spi Panel Communicates with. on the 16 pieces 74595 Shift Register's profile is written in Dutch. This is how the Shift Registers as a separate section, each of the LEDs control.

the structure of the Panel like in 74595

After sending data to the Display to 74595 A and B are both pulled on the position of the OE pin 1 Display Active terminators. After a certain period of time until the data is sent to the 0 position and whether the OE PIN. Then again A and B pins are positioned and is active once again and display the position of the OE pin 1. This is the sürülüş style of the Panel.

For Example; the following Table to give an example, A = 0, B = 0, only active with the renklendirdiğim Red lines in the book.

A = 1, B = 0, A = 0, B = 1, while Blue while green, A = 1, B = 1, while the Yellow Lines. Scanning and Data submission process is carried out accordingly.

With the previous data submissions in the LED Panel P10 is a little wait between sending next data is important. Increases the brightness of the Display wait too much. But all the Panel goes up in 5Ampere, close to the current. Too much of a value. Normally you have to suffer more from the current 4 Panel Amper. Otherwise, the Trailing driver enteğreler a little and get warm. This time I said, 500uS with 2000uS.

Normally, I waited for the most ideal 800uS 1000uS.

Now we know a little bit about the Panel that now we can look at the hardware and software.

Here I used the Pic18f4620. 4xPLL interval with ran, too. In addition, by using the hardware spi module Data delivery max. I tried to reach top speed. There is more than one hardware spi and spi speed difference between oladukça.

superpro

DEMO FOR PIC AND 74HC595 IN PROTON
Device = 16F877A        ' VAMOS A USAR UN PIC16F877A
 Xtal = 12                ' CON UN CRISTAL DE  12MHz
    'arriba columnas y abajo filas
    Data 0,0,0,0,0,0,0,0 'ESPACIO
    Data 0,0,0,0,0,0,0,0 'ESPACIO
    Data 0,0,0,0,0,0,0,0 'ESPACIO
    Data 0,0,0,0,0,0,0,0 'ESPACIO
   
    Data   0, 254, 254, 54, 54, 6, 6, 0
    Data   0, 254, 254, 214, 214, 198, 198, 0
    Data   0, 254, 254, 192, 192, 192, 192, 0
    Data   0, 198, 198, 254, 254, 198, 198, 0
    Data   0, 198, 226, 242, 218, 206, 230, 0
    Data    0,0,0,0,0
    Data   0, 254, 254, 12, 24, 48, 254, 254
    Data   0, 252, 34, 34, 34, 34, 252, 0
    Data   0, 62, 126, 192, 192, 126, 62, 0
    Data   0, 198, 198, 254, 254, 198, 198, 0
    Data   0, 254, 254, 130, 130, 130, 124, 0
    Data   0, 252, 34, 34, 34, 34, 252, 0
    Data   0, 254, 254, 130, 130, 130, 124, 0
    Data    0,0,0,0,0
    Data   0, 14, 16, 224, 224, 16, 14, 0 'LETRA "Y"
    Data    0,0,0,0,0
    Data   0, 254, 254, 18, 18, 12, 0, 0 'LETRA "P"
    Data   0, 254, 254, 18, 50, 210, 12, 0 'LETRA "R"
    Data   0, 124, 130, 130, 130, 130, 124, 0 'letra "O"
    Data   0, 222, 222, 214, 246, 246, 0, 0 'LETRA "S"
    Data   0, 254, 254, 18, 18, 12, 0, 0 'LETRA "P"
    Data   0, 254, 254, 214, 214, 198, 198, 0 'LETRA "E"
    Data   0, 254, 254, 18, 50, 210, 12, 0 'LETRA "R"
    Data   0, 124, 130, 130, 130, 130, 124, 0 'letra "O"
    Data    0,0,0,0,0
    Data   0, 252, 34, 34, 34, 34, 252, 0 'LETRA "A"
    Data   0, 254, 254, 5, 9, 49, 254, 0   'letra "Ñ"
    Data   0, 124, 130, 130, 130, 130, 124, 0 'letra "O"
    Data    0,0,0,0,0
    Data   0, 254, 254, 12, 24, 48, 254, 254 'LETRA "N"
    Data   0, 126, 254, 192, 192, 254, 126, 0 'LETRA "U"
    Data   0, 254, 254, 214, 214, 198, 198, 0 'LETRA "E"
    Data   0, 62, 126, 192, 192, 126, 62, 0 'LETRA "V"
    Data   0, 124, 130, 130, 130, 130, 124, 0 'letra "O"
    Data    0,0
    Data   0, 230, 162, 162, 158, 128, 0, 0 'NUMERO "2"
    Data   0, 124, 130, 130, 130, 130, 124, 0 'NUEMRO "0"
    Data   0, 8, 132, 254, 254, 128, 0, 0 'NUMERO "1"
    Data   0, 8, 132, 254, 254, 128, 0, 0 'NUMERO "1"
    Data    0,0,0,0,0
    Data   0, 254, 254, 54, 54, 6, 6, 0 'LETRA "F"
    Data   0, 124, 130, 130, 130, 130, 124, 0 'letra "O"
    Data   0, 254, 254, 18, 50, 210, 12, 0 'LETRA "R"
    Data   0, 124, 130, 130, 130, 130, 124, 0 'letra "O"
    Data    0,0
    Data   0, 254, 254, 12, 24, 48, 254, 254 'LETRA "N"
    Data   0, 254, 254, 214, 214, 198, 198, 0 'LETRA "E"
    Data   0, 124, 130, 130, 130, 130, 124, 0 'letra "O"
    Data   0, 6, 6, 254, 254, 6, 6, 0 'LETRA "T"
    Data   0, 254, 254, 214, 214, 198, 198, 0 'LETRA "E"
    Data   0, 124, 130, 130, 130, 130, 124, 0 'letra "O"
   
    Data 0,0,0,0,0,0,0,0 'ESPACIO
    Data 0,0,0,0,0,0,0,0 'ESPACIO
    Data 0,0,0,0,0,0,0,0 'ESPACIO
    Data 0,0,0,0,0,0,0,0 'ESPACIO
   
 Dim A As Word
 Dim B As Word
 Dim C As Word
 Dim W As Word
 Dim LETRA As Word
 Dim CONTADOR As Word
 Dim P As Word   
 
 Symbol FILA = PORTB
 Symbol Dato = PORTC.0
 Symbol Shift = PORTC.1
 Symbol Load = PORTC.2
 
 All_Digital = True
 
 Low FILA 
 
 A = 0
 W = 0
 
 Inicio:
                  'B SERÁ EL INICIO DE LAS COLUMNAS (LADO IZQUIERDO)
 B =  0                'B SE INCREMENTARÁ DE A UNO Y SIEMPRE ESTARÁ SEPARADO
 B = B+W                         'SIETE POSICIONES RESPECTA A C
 C = B + 31               'C SERÁ EL FINAL (LADO DERECHO)
 
 For CONTADOR = B To C    'POR LO TANTO EL CONTADOR IRÁ DESDE B HASTA C
 
 If A > 31 Then A = 0 'SI ESTE VALOR "SE SALE" DE LA MATRIZ LO DEVOLVEMOS

                                 'AL INICIO (A LA IZQUIERDA)


 
 Restore CONTADOR 'CARGAMOS EL "PUNTERO" CON EL VALOR DE LA

                        'VARIABLE "CONTADOR"


 Read LETRA  'LEEMOS ESE ESPACIO DENTRO DE "DATA" Y LO CARGAMOS

                        'EN LA VARIABLE "LETRA"

 
 

   
 'COLUMNA = A 'ACTIVAMOS LA COLUMNA QUE CORRESPONDA
                ' Desde aqui, es el reemplazo de COLUMNA = A
   
   For P=0 To 31                   ' Desde aqui, es el reemplazo de COLUMNA = A
    Low Dato
    If P=A Then High Dato 
    Low Shift
    High Shift   
 Next P
    Low Load
    High Load                   ' Hasta aqui
   

  FILA = ~LETRA 'ACTIVAMOS LAS FILAS CON EL DATO EXTRAÍDO DE "DATA"
   
 DelayUS 600
 A = A + 1

 Next CONTADOR'CERRAMOS EL CICLO DE 8 VUELTAS


 
 DelayMS 1
 
 W = W + 1                '"W" INCREMENTA LOS VALORES DE CONTADOR Y EL PUNTERO
                          'RESTORE IRÁ AVANZANDO, LEYENDO SIEMPRE EL PRÓXIMO DATO
                          'ACUMULANDO ESTA SITUACIÓN, GENERAMOS EL DESPLAZAMIENTO

 GoTo Inicio

top204

What version of the compiler are you using?

The Data and Read and Restore commands have not been in them for a very, very, long time. The compiler uses Cdata or Dim As Flashx for storage in flash memory and Creadx to read them, or the cPtrX commands.

The Data directives were for the early devices, but they were not suitable for the newer devices that were coming out, back in the early 2000s, so I had to remove them and re-think better methods of retrieving data from Flash memory. They were a left over from 1980s BASIC dialects.

superpro

si es un código muy antiguo que encontré, pero la idea es trabajar con un codigo donde podamos trabajar con un modulo led p10, espero la próxima semana probar este codigo directo en un modulo, deje en el post un articulo donde ocupan pic para el manejo de esta tecnologia, los fabricantes de estos controladores, usan atmel, stm y otros
espero que podamos trabajar,  mi compilador es 3.7
yes it is a very old code that I found, but the idea is to work with a code where we can work with a p10 led module, I hope next week to try this direct code in a module, leave an article in the post where they use pic for handling of this technology, the manufacturers of these controllers use atmel, stm and others
hope we can work, my compiler is 3.7

superpro

yes it is a very old code that I found, but the idea is to work with a code where we can work with a p10 led module, I hope next week to try this direct code in a module, leave an article in the post where they use pic for handling of this technology, the manufacturers of these controllers use atmel, stm and others
hope we can work, my compiler is 3.7

John Lawton

Hi,

you are more likely to get help if you upgrade your version of the compiler, because most people here will be using that now.

John

superpro

NO HAY MUCHA INFORMACION CON PROTON. VAMOS A VER SI PODEMOS CONSEGUIR ALGO

John Lawton