Announcement

Collapse
No announcement yet.

VDI-RODERICO

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Originally posted by scrungy_doolittle View Post
    sigh. yet another release without the source code. PLEASE ALWAYS include both the source and binary, so changes can be tracked. It helps folk understand the code.
    this the source code for version 2.1 as it seems there is no additional bugs in version 2.1b4. It does not include kroman01's mod since it still needs some more work, it would be better for version 2.2 while fixing new bugs in version 2.1, in any case it can be used as it is in glcd_21beta4kroman01-5. The main changes w.r.t. version 2.0:

    - fix width of integers in vdi limits
    - expand range of minimum vdi to [-120,120] to exclude also positive vdi values
    - fix sampling ending before 400ms (only the first 200ms were used in v2.0)
    - implement axis scaling in histogram view
    - remove ticks at +/-45 degrees in histogram view (kroman01's idea)
    - exclude vdi values from the saturation region in histogram view (you might need 2x scale to be similar to v2.0)
    - add C18 compiler compatibility and remove SDCC (too slow)
    - extract vdi from histogram as mean +/- mean deviation
    - highlight vdi when the uncertainty is small
    - replace max(x,y) with maximum value from the histogram

    The firmwares are compiled with Microchip XC8 in free mode since my demo licensed expired a very long time ago and the PRO license is very expensive, so I also built the firmwares with previous Microchip C compiler (C1 for testing and comparison...
    Attached Files

    Comment


    • I made them under Kicad 4.0.5. 64 bit
      I'll try to install KiCad 5, and see if I can open it.

      Comment


      • they use different file formats: http://kicad-pcb.org/help/upgrading/

        Comment


        • Originally posted by scrungy_doolittle View Post
          I have opened the ide in kicad, and am working on creating some custom symbols for a couple of different flavors of PIC24's trying to keep the port definitions the same. What kind of display are you using?
          currently it only works with a HD44780 compatible LCD or a 128x64 GLCD KS0108-based

          Originally posted by scrungy_doolittle View Post
          So. make it a 4 bit interface, using D0-D3 (really simple in software). That frees up B6 and B7 for debugging, and gives you two spare I/O pins.
          the parallel interface (8-bit) is important at least for the GLCD to reduce the latency of the display and memory requirements in the PIC

          Originally posted by scrungy_doolittle View Post
          I would allocate RC0-7 as the data lines for the display, and use RB0,1,and 2 for the switches. This keeps them on consecutive bits at the ls 3 bits of the port, simplifying reading them. I would use RB3 fro K-, RB4 for RW, RB5 for rst, RA4 CS1 RA5 for CS2, and tie enable permanently active.
          you would also save the 3 pull-up resistors but you would have a more complicated PCB layout

          Originally posted by scrungy_doolittle View Post
          On a 44 pin PIC24, you also could set it up to use a SPI display, and indeed you could also use a spi display with the current connector, just use the D2 and D2 (pin 22 and 23) for the spi port.
          if you have plenty of free pins in pic24 why do you want to use a serial interface?

          Originally posted by scrungy_doolittle View Post
          What I want someone to do, is to add another sheet to this project, and move the connectors to it. I have not been able to figure out how to do that.
          in the menu "Place" -> "Hierarchical Sheet"

          Comment


          • hey roderico, I thought there would be a problem with compiling version 2.1 for a display with the ST7565R driver

            Comment


            • it would be possible by writing a new driver and changing the pins but the main problem is that it works with 3.3V and many of these displays only have a serial interface...

              Comment


              • The 3V3 power supply should not cause problems, the interface is SPI, but also 8-bit parallel

                Comment


                • is the datasheet of the display available somewhere?

                  Comment


                  • I hardly found catalog cards for displays that interest me, the first one has a SMD ZIF34 connector, the second is a THT pin28 connector
                    https://www.lcd-module.de/eng/pdf/zubehoer/st7565r.pdf
                    http://www.artronic.com.pl/o_produkcie.php?id=1113
                    http://www.blaberk.com.pl/arduino/DEM128064O.pdf

                    Comment


                    • you would need some kind of level converter for all the pins to use this display safely, however it could work well with pic24 which has the same operational voltage, but IMO changing from 5V to 3V the whole vdi (pic24+st7565) is not a trivial task and a lot of work with no clear improvement, the easiest thing IMO if you need another display would be to look for a display that works with 5V+parallel interface

                      Comment


                      • this is my suggestion of another display that is more easily available, recently I have a problem with purchasing displays from KS0108 ...

                        Comment


                        • I just received a couple of these displays. They feature the ST7565 controller, 3.3 to 5v operation, serial or parallel. Also comes mounted on a pcb so no soldering a 0.5mm spacing smd connector. The serial pins are D6, D7 not shown on the ebay listing

                          https://www.ebay.com/itm/1pcs-New-12...gAAOSwbw1aHWC7

                          Comment


                          • those might work, I think NT7108, S6B0708, RA8808,... controllers are also compatible

                            Comment


                            • yes I know that NT7108, S6B0708, RA8808 are compatible but I found displays with S6B0108 at a good price
                              http://www.wincomlcd.com/pdf/WG12864...SFYLYHTC06.pdf

                              Comment


                              • Originally posted by Altra View Post
                                I just received a couple of these displays. They feature the ST7565 controller, 3.3 to 5v operation, serial or parallel. Also comes mounted on a pcb so no soldering a 0.5mm spacing smd connector. The serial pins are D6, D7 not shown on the ebay listing

                                https://www.ebay.com/itm/1pcs-New-12...gAAOSwbw1aHWC7
                                on another ebay listing they link this datasheet for the same display

                                https://www.surenoo.com/surenoo_store/download/display/ZLE12864B-FFSSWE-NAA.pdf

                                which is for a ST7567 controller and both work with 3V, however it is not clear to me in the datasheet if the display needs an external converter to accept 5V for VDD without damaging the chip or if it is included in the display. In any case, it would only need to write a driver and maybe the external level converter to make it work, if there is interest in this display I could write the driver for v2.2

                                Comment

                                Working...
                                X