Menu

GLCD KS0108 DEMO WON'T START

2024-12-22
2024-12-24
<< < 1 2 3 > >> (Page 2 of 3)
  • Howard Hammond

    Howard Hammond - 2024-12-23

    I have attached my schematic, it is made using Eagle software

     
    • Anobium

      Anobium - 2024-12-23

      Post a JPG of the schematic please. This computer has no design tools.


      Please - take a photo of the back of the GLCD. I will see if I have something like it.

       
  • Anobium

    Anobium - 2024-12-23

    Also, if you have a scope or meter. Test each connection.

    Ensure you have power cycled the chip before starting to clear any PPS.

    #chip 18F47K42, 32
    #option Explicit
    
        #DEFINE GLCD_CS1        PORTB.5      'CS1, CS2 CAN BE REVERSED,  PIN CS1 1, LOW
        #DEFINE GLCD_CS2        PORTB.4      'CS1, CS2 ARE BE REVERSED,  PIN CS2 2, LOW
    
        #DEFINE GLCD_RESET      PORTC.1    'RESET PIN ON LCD,  PIN 17, LOW
        #DEFINE GLCD_RW         PORTC.7       'RW PIN ON LCD,  PIN 7, H/L
        #DEFINE GLCD_RS         PORTB.3       'D/I PIN ON LCD,  PIN 6, H/L
        #DEFINE GLCD_ENABLE     PORTB.2   'E PIN ON LCD,  PIN 8, H-L
    
        #DEFINE GLCD_DB0 PORTD.0  'D0
        #DEFINE GLCD_DB1 PORTD.1  'D1
        #DEFINE GLCD_DB2 PORTD.2  'D2
        #DEFINE GLCD_DB3 PORTD.3  'D3
        #DEFINE GLCD_DB4 PORTD.4  'D4
        #DEFINE GLCD_DB5 PORTD.5  'D5
        #DEFINE GLCD_DB6 PORTD.6  'D6
        #DEFINE GLCD_DB7 PORTD.7  'D7 ON LCD
    
        //-------------------- TEST EACH LINE - one at a time. Start with GLCD_CS1 work thru to GLCD_DB7 = 14 tests
    
        #DEFINE TESTPORT GLCD_CS1
        Do
                PULSEOUT TESTPORT, 100 MS
                WAIT 100 MS
        Loop
    
     
    • Anobium

      Anobium - 2024-12-23

      Please test the signal at the LCD.

       
  • Howard Hammond

    Howard Hammond - 2024-12-23

    Attached is a PDF of my schematic, if you can't read it I can zoom in on the GLCD area and send you that.

     
  • Anobium

    Anobium - 2024-12-23

    Also, what are using to program? is this setting the debug bit in error?
    Using your programmer - read the chip, export the HEX. Post here... it should be the same as mine.

     
  • Howard Hammond

    Howard Hammond - 2024-12-23

    Attached is the read. I did not read the EEPROM.
    I am using PICKIT2 minus

     
    • Anobium

      Anobium - 2024-12-23

      Truly not good to hear that you are using PICKIT2 minus. That is plagiarised work of mine and it is really hurting the project as the PICKitPlus funds partly paid for this GCBASIC project.

      The HEX is verifies here and works.

      So, you are looking at local functional issue. Connection, GLCD type etc.
      Really puzzled here. This did work with another compiler? I wonder...

       
  • Howard Hammond

    Howard Hammond - 2024-12-23

    Have to take my wife to the Doctor, be back within the hour

     
  • Howard Hammond

    Howard Hammond - 2024-12-23

    PICKIT2 minus has really been the best for me.
    What is PICKITPLUS something I should look into?
    I have PicKit 5 but that is way to complicated.
    I will be donating once we get this figured out and I will have many other questions as I try to program all the other areas of my project.

    .
    I do not have an Oscilloscope but I do have a digital meter not sure it will be fast enough.
    Explain to me exactly what I am measuring, CS1 or all 8 data lines and what am I looking for?
    You said 14 measurements but there are 8 data lines.

     
    • Anobium

      Anobium - 2024-12-23

      I did all the hardware spending many years on updating the PICKItPlus database. Taking the database with no attribution is no nice. www.pickitplus.co.uk and you full support when you buy a license.

      re Testing. The test program above toggle each port. Check the pin on the chip is toogling and then check the correct connection on the GLCD. Do this for every connection. You just need to change the constant ( do not use portx. y as this does not test constant replacement). Make sense? Every connection should toggle.

       
  • Howard Hammond

    Howard Hammond - 2024-12-23

    It appears PICKIT PLUS is just software using pickit 2 is that correct?
    Can you tell me which version would be best for me?

    Back to the test I am going to do. I am confused since the software you added only toggles CS1.
    Am I supposed to change that software for every port I am testing for example RS,EN, R/W,CS2, RST, D0 to D7? That's what I am going to do.

     
  • Anobium

    Anobium - 2024-12-23

    It appears PICKIT PLUS is just software using pickit 2 is that correct?
    Can you tell me which version would be best for me?

    No PK2 and PK3.

    Back to the test I am going to do. I am confused since the software you added only toggles CS1.
    Am I supposed to change that software for every port I am testing for example RS,EN, R/W,CS2, RST, D0 to D7? That's what I am going to do.

    Yes, change ONLY the constant for TESTPORT to each of the GLCD constants, two tests per port ( at the chip and at the GLCD).

     
  • Howard Hammond

    Howard Hammond - 2024-12-23

    First part of test is done. All pins on pic18f47k42 are toggling
    I will now do the pins on the GLCD
    I need to get setup by mark the ports

    You are in London my time here is 1:55 what is yours and when do you leave?

     
  • Howard Hammond

    Howard Hammond - 2024-12-23

    Finished testing the GLCD ports all are pulsing.

    I then changed out the pic1847k42 and ran the complete program not the test.
    Still nothing

     
  • Anobium

    Anobium - 2024-12-23

    Hard to figure this out. Can you send me one of the GLCD?

    I have written many, over 40, GLCD libraries. It is hard without the actually GLCD. These GLCDs have very odd pinout, a different chip but they are from SureNoo. SureNoo are good products.

     
  • Howard Hammond

    Howard Hammond - 2024-12-23

    The attachment is my golf cart speedometer. My project is to replace the PIC18F.

     
  • Howard Hammond

    Howard Hammond - 2024-12-23

    Hit the wrong button
    The attachment is a picture my golf cart speedometer. My project is to replace the PIC18F.

    I can send you my GLCD but I probably can order one from China for less money than it would be for me to ship one to you and you would get it in about the same time.
    Give me your address and I will see if I can do it.

    I have been using a couple of different versions of this GLCD all with the same pin out so for me it is not an odd pin out

     
  • Anobium

    Anobium - 2024-12-23

    I will send details via a Personal Message.

     
  • Howard Hammond

    Howard Hammond - 2024-12-24

    I have not got your address, do you still want e to get you the GLCD?

     
    • Anobium

      Anobium - 2024-12-24

      Yes, I have sent you a Personal Message. Have you received ?

       
  • Howard Hammond

    Howard Hammond - 2024-12-24

    Yes but I need your shipping addtress.

     
    • Anobium

      Anobium - 2024-12-24

      Emailed direct to you.

       
  • Howard Hammond

    Howard Hammond - 2024-12-24

    Better send again, all I got in your email was your email address, need shipping address.

     
    • Anobium

      Anobium - 2024-12-24

      Check email at address pXstoXXump@coXcast.nXt I have sent there.
      Check trash, spam etc.

       
<< < 1 2 3 > >> (Page 2 of 3)

Log in to post a comment.