12MHz clock generator for the Holtek HT6542b

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trodas
    Badcaps Veteran
    • Jan 2006
    • 770
    • Czech republic

    #1

    12MHz clock generator for the Holtek HT6542b

    I wonder, if someone can suggest me relatively simple clock generator, that will produce 12MHz clock for the Holtek HT6542b PS/2 keyboard and mouse controller:
    http://www.alldatasheet.com/datashee...K/HT6542B.html

    Likely this will need some 12MHz oscilator, then a gate with will switch the clock... and that should be it. Or I'm wrong?

    Ideas welcome!
    "It is dangerous to be right in matters on which the established authorities are wrong." - Voltaire
    "I believe that all the people who stand to profit by a war and who help provoke it should be shot on the first day it starts..." - Hemingway my config - my caps
  • stj
    Great Sage 齊天大聖
    • Dec 2009
    • 31007
    • Albion

    #2
    Re: 12MHz clock generator for the Holtek HT6542b

    just get a crystal.
    the chip has a built in clock driver.

    put the crystal between the OSC0 and OSC1.

    it's at the bottom of page 6 and 7

    Comment

    • trodas
      Badcaps Veteran
      • Jan 2006
      • 770
      • Czech republic

      #3
      Re: 12MHz clock generator for the Holtek HT6542b

      But... I never worked with crystal, so... a little basic could be handy.

      First:
      What crystal? 12MHz probably, but... search on Digikey for what to get crystals? Are some good brands? Could I get small yet reliable and stable one...?

      I mean reasonably small, that I can glue it on top of the Holtek chip, witch is rather big suxxka:




      Second:
      Witch leg go where? I mean... last time I worked with crystals was overclocking on Amiga. CPU accelerator from Phase5 Blizzard 1260 got crystal with 4 legs on it, relatively big (I say about 12x6x5mm in size). All I did is to desolder it, solder a socket there and order custom made crystals from 60 to 68MHz to determine witch one will still work. But even if the crystal have only 2 legs, then still I have no idea, witch leg go where.

      Does it even matter? The looks in the drawing suggest, that maybe it does not matter at all, but since I never work with crystals, I rather ask 100 stupid questions first...
      Attached Files
      Last edited by trodas; 08-30-2015, 05:54 AM.
      "It is dangerous to be right in matters on which the established authorities are wrong." - Voltaire
      "I believe that all the people who stand to profit by a war and who help provoke it should be shot on the first day it starts..." - Hemingway my config - my caps

      Comment

      • stj
        Great Sage 齊天大聖
        • Dec 2009
        • 31007
        • Albion

        #4
        Re: 12MHz clock generator for the Holtek HT6542b

        crystals have 2 legs, the amiga used an oscillator.

        put the crystal legs on the OSC pins of the chip.

        Comment

        • trodas
          Badcaps Veteran
          • Jan 2006
          • 770
          • Czech republic

          #5
          Re: 12MHz clock generator for the Holtek HT6542b

          So, when I take this 12MHz crystal:
          http://www.gme.cz/krystal-hc49-u-q-12mhz-p131-012

          ...and solder it on the legs 2 and 3 (while separating them from the mainboard first by cut & bend up), I should be good to go?

          No difference of witch pins go where? I keep asking just to be absolutely sure.

          ...

          And Amiga used this:


          It does not look "all that different" to me?
          Attached Files
          "It is dangerous to be right in matters on which the established authorities are wrong." - Voltaire
          "I believe that all the people who stand to profit by a war and who help provoke it should be shot on the first day it starts..." - Hemingway my config - my caps

          Comment

          • stj
            Great Sage 齊天大聖
            • Dec 2009
            • 31007
            • Albion

            #6
            Re: 12MHz clock generator for the Holtek HT6542b

            where is it on that motherboard?

            Comment

            • fzabkar
              Badcaps Veteran
              • Mar 2009
              • 772
              • Australia

              #7
              Re: 12MHz clock generator for the Holtek HT6542b

              The motherboard has an ICS9169CJ-27 clock generator at U21.

              https://cdn.badcaps-static.com/pdfs/...149ae0f3bd.pdf

              This chip derives the CPU, BUS, 48MHz and 24MHz clocks from the 14.31818 MHz reference crystal. I suspect that the HT6542B's 12MHz clock is generated from either the 24MHz or 48MHz clock via a simple divider in the Intel chipset.

              https://cdn.badcaps-static.com/pdfs/...345587b9a9.pdf
              Last edited by fzabkar; 09-01-2015, 03:46 AM.

              Comment

              • stj
                Great Sage 齊天大聖
                • Dec 2009
                • 31007
                • Albion

                #8
                Re: 12MHz clock generator for the Holtek HT6542b

                that wasnt what i asked.

                are you adding that chip, or is the board already designed to take it?

                Comment

                • trodas
                  Badcaps Veteran
                  • Jan 2006
                  • 770
                  • Czech republic

                  #9
                  Re: 12MHz clock generator for the Holtek HT6542b

                  Crystals (I take two) arived today, so I ask again for reply on this:

                  So, when I take this 12MHz crystal:
                  http://www.gme.cz/krystal-hc49-u-q-12mhz-p131-012
                  ...and solder it on the legs 2 and 3 (while separating them from the mainboard first by cut & bend up), I should be good to go? No difference of witch pins go where? I keep asking just to be absolutely sure.
                  ...

                  stj -
                  where is it on that motherboard?
                  Where is what? You gotta say what do you mean by the "it." If you mean the 4 legs crystal I posted, then I mentioned that such things are used on Amiga Blizzard 1260 card:
                  last time I worked with crystals was overclocking on Amiga. CPU accelerator from Phase5 Blizzard 1260 got crystal with 4 legs - Amiga used this:
                  So if you asking about the Blizzard 1260 CPU card for Amiga 1200, then it was there:
                  http://amiga.resource.cx/photos/gall...zard1260-4.jpg

                  If you asking about the mainboard - no, there it is NOT. There is only the 14.3MHz reference clock crystal and the small crystal for the clock near the battery. No more crystals. You can see that on the hi-res picture.

                  But I plan on adding one on the top of the Holtek chip... if you confirm that the pins not matter, then I solder and glue that thing on the microcontroller, so the board will have 3rd crystal


                  fzabkar -
                  The motherboard has an ICS9169CJ-27 clock generator at U21.
                  Indeed. And since there is no way to software control of the chip:
                  "
                  do not have a System Management Bus connection or the FSB could not be set via System Management Bus. So there is and will be no program that supports these PLL's!!! There is absolutely no chance!
                  "
                  http://www.cpufsb.de/FSB.HTM

                  ...then what makes me wonder is this:



                  If I understand that right, then it is possible to lock on the PCI bus to 32MHz regardless of the FSB clock. That would allow me to overclock into 83MHz FSB w/o problems (unreliable IDE controller) on the PCI bus...!

                  Selecting BSEL = 0 could be pretty cool mod and I cannot understand, why Asus did not do it already. When using PLL chip that can do PCI lock - it is almost a crime not to utilize that...!
                  Attached Files
                  "It is dangerous to be right in matters on which the established authorities are wrong." - Voltaire
                  "I believe that all the people who stand to profit by a war and who help provoke it should be shot on the first day it starts..." - Hemingway my config - my caps

                  Comment

                  • stj
                    Great Sage 齊天大聖
                    • Dec 2009
                    • 31007
                    • Albion

                    #10
                    Re: 12MHz clock generator for the Holtek HT6542b

                    crystal pins are the same, direction does not matter.

                    Comment

                    • fzabkar
                      Badcaps Veteran
                      • Mar 2009
                      • 772
                      • Australia

                      #11
                      Re: 12MHz clock generator for the Holtek HT6542b

                      I don't understand the reason for the crystal mod. The Holtek chip's frequency would be fixed at 12MHz, independent of any FS/BSEL settings.

                      Comment

                      • stj
                        Great Sage 齊天大聖
                        • Dec 2009
                        • 31007
                        • Albion

                        #12
                        Re: 12MHz clock generator for the Holtek HT6542b

                        i dontt undersand any of it!

                        Comment

                        • trodas
                          Badcaps Veteran
                          • Jan 2006
                          • 770
                          • Czech republic

                          #13
                          Re: 12MHz clock generator for the Holtek HT6542b

                          fzabkar -
                          I don't understand the reason for the crystal mod. The Holtek chip's frequency would be fixed at 12MHz, independent of any FS/BSEL settings.
                          Reason? Simple. Keyboard and mouse fail to work, when I use the ref/2 FSB clock of 7.14MHz. That is why and adding the crystal aim to fix this problem, so the Holtek clock will be entierly independent of the FSB, hence no more problems at "superlow" FSB clocks.
                          Last edited by trodas; 09-01-2015, 06:36 PM.
                          "It is dangerous to be right in matters on which the established authorities are wrong." - Voltaire
                          "I believe that all the people who stand to profit by a war and who help provoke it should be shot on the first day it starts..." - Hemingway my config - my caps

                          Comment

                          • trodas
                            Badcaps Veteran
                            • Jan 2006
                            • 770
                            • Czech republic

                            #14
                            Re: 12MHz clock generator for the Holtek HT6542b

                            Slight bump for answers?
                            "It is dangerous to be right in matters on which the established authorities are wrong." - Voltaire
                            "I believe that all the people who stand to profit by a war and who help provoke it should be shot on the first day it starts..." - Hemingway my config - my caps

                            Comment

                            • fzabkar
                              Badcaps Veteran
                              • Mar 2009
                              • 772
                              • Australia

                              #15
                              Re: 12MHz clock generator for the Holtek HT6542b

                              Your proposal to lift the OSC pins and solder a HC49 crystal to them seems OK to me. Otherwise I'm not sure what answer you are expecting.

                              Comment

                              • stj
                                Great Sage 齊天大聖
                                • Dec 2009
                                • 31007
                                • Albion

                                #16
                                Re: 12MHz clock generator for the Holtek HT6542b

                                exactly.

                                Comment

                                • trodas
                                  Badcaps Veteran
                                  • Jan 2006
                                  • 770
                                  • Czech republic

                                  #17
                                  Re: 12MHz clock generator for the Holtek HT6542b

                                  Reporting sucess! I desoldered the complete PS/2 controller Holtek HT6542b from the board, bend up pins 2 and 3, soldered it back and soldered a 12MHz crystal on it, gluing it later to it by epoxide:



                                  (preliminary pics, I did cleared the excessive amounts of tin meanwhile)

                                  And the keyboard & mice worked nicely on all the FSB settings the board can officially (50,55, 60, 66, 75, 83MHz) offer and - what is most important - it does work nicely on the ref /2 superslow 7.14MHz FSB clock!!!

                                  As great bonus, the computer seems to work *MUCH* faster on the superslow clocks. And what is even more important, the 83MHz settings is working well stable for SuperPi 1M: http://hwbot.org/submission/2970070_

                                  ...and it is currently running the SuperPi 32M test at around half and it is therefore pretty stable (SuperPi 32M total run time is about 14-15h (it was 17h on 112.5MHz), so 7h under 100% load stable...

                                  ...

                                  I should note that I did not tried 83MHz before, because my friend, for who I was recapping that board back in 2008 and he give it back to me recently, said that 83MHz cannot work stable for him, no matter what.

                                  ...

                                  What if that tweak I made actually make it working? I was ready to try the BSEL = 0 setting, but now it seems that there is no need for that at all...!

                                  WTF!
                                  "It is dangerous to be right in matters on which the established authorities are wrong." - Voltaire
                                  "I believe that all the people who stand to profit by a war and who help provoke it should be shot on the first day it starts..." - Hemingway my config - my caps

                                  Comment

                                  • fzabkar
                                    Badcaps Veteran
                                    • Mar 2009
                                    • 772
                                    • Australia

                                    #18
                                    Re: 12MHz clock generator for the Holtek HT6542b

                                    I see you made to number 2 in the SuperPi 32M challenge.

                                    Comment

                                    • trodas
                                      Badcaps Veteran
                                      • Jan 2006
                                      • 770
                                      • Czech republic

                                      #19
                                      Re: 12MHz clock generator for the Holtek HT6542b

                                      Well, I optimize my Windows and I should be even more competitive then with the P90. Fun stuff. Maybe I should do some voltmoding and extreme cooling...

                                      Or at least figure out with WPCREDIT how to change TRP to 2 from 3... because that would be kick-a$$ then!
                                      "It is dangerous to be right in matters on which the established authorities are wrong." - Voltaire
                                      "I believe that all the people who stand to profit by a war and who help provoke it should be shot on the first day it starts..." - Hemingway my config - my caps

                                      Comment

                                      Related Topics

                                      Collapse

                                      • shelby5041
                                        clock radio / radio lifespan?
                                        by shelby5041
                                        hi
                                        ive got a modern digital clock radio approx 15yrs old

                                        my question is how long can a clock radio or a simple radio last ss farcas operating hours?

                                        since elec components have limited hour lifecspan i would imagine the radio or clock radio would eventually fail.

                                        the reason i ask is because i have my clock radio on radio function 24/7 for the past 7 years and its still working fine....i leave the radio on ..never turn off past 7years...thats approx 60000 hours

                                        it uses very little power just a few watts i would imagine that may have something...
                                        09-14-2024, 03:30 AM
                                      • pc_okay
                                        Crystal compatibility 32khz ASUS UX325 NB255_PCB_MB_V4
                                        by pc_okay
                                        Hello friends,

                                        Its been a while, i wish you an happy new year 2025 !

                                        I have this laptop doesn't start, power light up a second when pluging USB-C charger.
                                        Laptop take 0.11A.
                                        All signals and voltages before SLP_S4# are OK but no SLP_S4# , S3...

                                        I get no oscilation on XTAL 32.768 KHZ
                                        Battery is not charging but charging led is here.
                                        PCH heat at 30° approximatively. (with no heatsink)

                                        I think this crystal might be dead, i have only boardview giving me this: XTAL 32.768KHZ 12.5PF/20PPM.
                                        It's a 2 pins Crystal.
                                        ...
                                        01-13-2025, 09:26 AM
                                      • UserXP
                                        Vintage SONY Digital Clock Radio ICF-C12W no audio
                                        by UserXP
                                        Dear all,

                                        I have this old radio clock by Sony from the early 80s, I guess. The clock display works, but is dim, the function board appears to be OK - but the radio unit shows no signs of life. It doesn't produce a single noise, crack or anything from either FM or AM band. It's like it doesn't even power up.
                                        i opened the radio and it is full of some TRACON gray capacitors. They only have their negative strip printed, voltage and capacitace markings - no series, no temperature marking, nothing else.
                                        My question is, do you know of this brand of capacitors and how bad are...
                                        07-21-2025, 08:35 AM
                                      • TinkerTron
                                        Schematic vs. Reality: Where Are the Resistors on My Sharp Clock Radio? Model FY-70CH
                                        by TinkerTron
                                        Hey everyone,

                                        I'm currently working on a mid-70s Sharp Electronic Digital Clock Radio, Model FY-70CH. I found the service manual online, printed it out, and have been studying it for a while. My main reasons for tackling this are: (1) I want to learn electronics and figured I'd start with something I had on hand, and (2) I want to fix its issues. Right now, the radio sounds awful, has about 5V DC at the speaker terminals, and the alarm time setting doesn't work. But I'm not asking how to fix these problems.

                                        Instead, here's what's been bugging me so far:
                                        The schematic...
                                        03-06-2025, 02:03 PM
                                      • Fontana
                                        71R-H14BW6-T830, clock stops when shutdown
                                        by Fontana
                                        Hi!
                                        Funny problem. I have a board, model 71r-h14bw6-t830, it's a shuttle board used commonly on a lot of cheap laptops/AIOs.
                                        The clock (RTC) is not working when the machine is turned off. Doesn't matter if it is connected to dc power or not. When the PC is powered on, the clock works fine.
                                        I tried replacing Y6 and Y7 (picture below), but it doesn't seem to be an oscillator problem.
                                        I don't have the exact schematic for this board, but I'll provide one that is similar (a variation of the same board).

                                        Any suggestions?

                                        OBS: when the pc is off,...
                                        09-28-2022, 09:57 AM
                                      • Loading...
                                      • No more items.
                                      Working...