PIC16F676 Program, remote control switch for 2Light & 1Fan.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • masud
    Badcaps Veteran
    • Jul 2011
    • 317
    • Bangladesh

    #1

    PIC16F676 Program, remote control switch for 2Light & 1Fan.

    Hello Dear Friends,
    I have a device used in my room to control 2 light (On/Off) and 1 fan (On/Off+Fan Speed Control).
    I have made the circuit same to same. There is an IC : PIC16F676. I copied the IC to a new IC and installed in my new circuit board. But it does not work. But if i put the original/Old ic with the new board it works well.

    What i think the ic is programmed and locked anyway. I am attaching the original program. Please help me if anybody can help to make this file workable.

    Thanks.
    Attached Files
  • stj
    Great Sage 齊天大聖
    • Dec 2009
    • 30965
    • Albion

    #2
    Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

    the protect bit has been set.
    also, that is not a hex file - it's a bin file.
    changing the filename does not change what it is.

    Comment

    • mariushm
      Badcaps Legend
      • May 2011
      • 3799

      #3
      Re: IC PIC16F676 Program, remote control switch for 2Light & 1Fan.

      The fact that the HEX file compresses to 84 bytes should tell you that you didn't actually copy the program from the PIC chip.
      The copy protections probably make the reader return null bytes or 0xFF bytes instead of actual contents.

      Open the hex file with a text viewer or hex viewer and you'll see what I mean.

      Comment

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

        #4
        Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

        you cant, it's not a hex file - it's a bin file that is miss-named.

        Comment

        • masud
          Badcaps Veteran
          • Jul 2011
          • 317
          • Bangladesh

          #5
          Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

          Whatever the file is, can anyone give me idea to make this file workable?
          Please advice. Thanks.

          Comment

          • mariushm
            Badcaps Legend
            • May 2011
            • 3799

            #6
            Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

            You can't make the file workable, because you didn't actually copy the code from the microcontroller into the file. The file doesn't actually contain the code in the microcontroller.

            The software you used simply wrote the bytes the microcontroller gave it into the file
            Because the protection bits were set during the last programming, the microcontroller simply sent empty bytes (0xFF or 0x00) instead of the actual code, when the software asked for those bytes.

            So your only option is probably to write the program yourself, from scratch.

            Well, that is your only option unless you have expensive microscopes or x-ray machines and the knowledge to figure out if a bit is 1 or 0 based on how chip looks physically

            Comment

            • RJARRRPCGP
              Badcaps Legend
              • Jul 2004
              • 6304
              • USA

              #7
              Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

              Really? Knox'ed out as if it's a DVD player, FFS!
              ASRock B550 PG Velocita

              Ryzen 9 "Vermeer" 5900X

              32 GB G.Skill RipJaws V F4-3200C16D-32GVR

              Arc A770 16 GB

              eVGA Supernova G3 750W

              Western Digital Black SN850 1TB NVMe SSD

              Alienware AW3423DWF OLED




              "¡Me encanta "Me Encanta o Enlistarlo con Hilary Farr!" -Mí mismo

              "There's nothing more unattractive than a chick smoking a cigarette" -Topcat

              "Today's lesson in pissivity comes in the form of a ziplock baggie full of GPU extension brackets & hardware that for the last ~3 years have been on my bench, always in my way, getting moved around constantly....and yesterday I found myself in need of them....and the bastards are now nowhere to be found! Motherfracker!!" -Topcat

              "did I see a chair fly? I think I did! Time for popcorn!" -ratdude747

              Comment

              • masud
                Badcaps Veteran
                • Jul 2011
                • 317
                • Bangladesh

                #8
                Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

                Originally posted by mariushm
                You can't make the file workable, because you didn't actually copy the code from the microcontroller into the file. The file doesn't actually contain the code in the microcontroller.

                The software you used simply wrote the bytes the microcontroller gave it into the file
                Because the protection bits were set during the last programming, the microcontroller simply sent empty bytes (0xFF or 0x00) instead of the actual code, when the software asked for those bytes.

                So your only option is probably to write the program yourself, from scratch.

                Well, that is your only option unless you have expensive microscopes or x-ray machines and the knowledge to figure out if a bit is 1 or 0 based on how chip looks physically
                Dear friend,

                i can't write/understand this program.
                what i can do only read/write with a programmer. I have the old/original pic16F676. Now, can anybody tell me how i can make a clone of the pic16F676?

                Thanks.

                Comment

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

                  #9
                  Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

                  if "protect bit" has been set then you cant read the chip.

                  Comment

                  • RJARRRPCGP
                    Badcaps Legend
                    • Jul 2004
                    • 6304
                    • USA

                    #10
                    Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

                    Originally posted by stj
                    if "protect bit" has been set then you cant read the chip.
                    That sounds like some "big music"-like anti-copy stuff! It's the same kind of stuff that makes the RIAA and MPAA execs elated. And of course, the same kind of stuff that makes the big-3 record companies elated...
                    Last edited by RJARRRPCGP; 04-19-2019, 02:49 PM.
                    ASRock B550 PG Velocita

                    Ryzen 9 "Vermeer" 5900X

                    32 GB G.Skill RipJaws V F4-3200C16D-32GVR

                    Arc A770 16 GB

                    eVGA Supernova G3 750W

                    Western Digital Black SN850 1TB NVMe SSD

                    Alienware AW3423DWF OLED




                    "¡Me encanta "Me Encanta o Enlistarlo con Hilary Farr!" -Mí mismo

                    "There's nothing more unattractive than a chick smoking a cigarette" -Topcat

                    "Today's lesson in pissivity comes in the form of a ziplock baggie full of GPU extension brackets & hardware that for the last ~3 years have been on my bench, always in my way, getting moved around constantly....and yesterday I found myself in need of them....and the bastards are now nowhere to be found! Motherfracker!!" -Topcat

                    "did I see a chair fly? I think I did! Time for popcorn!" -ratdude747

                    Comment

                    • RJARRRPCGP
                      Badcaps Legend
                      • Jul 2004
                      • 6304
                      • USA

                      #11
                      Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

                      I fear that one day, we'll have the same kind of thing on motherboard BIOSes!

                      Then, what would be next? The people that were complaining of "TCPA" back in 2005 and 2006 saying that they were right, and thus we're doomed!
                      ASRock B550 PG Velocita

                      Ryzen 9 "Vermeer" 5900X

                      32 GB G.Skill RipJaws V F4-3200C16D-32GVR

                      Arc A770 16 GB

                      eVGA Supernova G3 750W

                      Western Digital Black SN850 1TB NVMe SSD

                      Alienware AW3423DWF OLED




                      "¡Me encanta "Me Encanta o Enlistarlo con Hilary Farr!" -Mí mismo

                      "There's nothing more unattractive than a chick smoking a cigarette" -Topcat

                      "Today's lesson in pissivity comes in the form of a ziplock baggie full of GPU extension brackets & hardware that for the last ~3 years have been on my bench, always in my way, getting moved around constantly....and yesterday I found myself in need of them....and the bastards are now nowhere to be found! Motherfracker!!" -Topcat

                      "did I see a chair fly? I think I did! Time for popcorn!" -ratdude747

                      Comment

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

                        #12
                        Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

                        there are already eeproms that need a password to "unlock" them.
                        they show up here & there - in MEGATOUCH quize maschines for example.

                        Comment

                        • kc8adu
                          Super Moderator
                          • Nov 2003
                          • 8832
                          • U.S.A!

                          #13
                          Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

                          this is to prevent corruption during a glitch.
                          key has to be sent to enable the chip to accept a write.

                          the protect fuse on the pic is to prevent copying.
                          but there are ways of circumventing this too.

                          Originally posted by stj
                          there are already eeproms that need a password to "unlock" them.
                          they show up here & there - in MEGATOUCH quize maschines for example.

                          Comment

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

                            #14
                            Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

                            no, the eeprom password is to block copying.

                            Comment

                            • Nilag
                              New Member
                              • Dec 2022
                              • 1
                              • India

                              #15
                              Re: PIC16F676 Program, remote control switch for 2Light & 1Fan.

                              Originally posted by masud
                              Hello Dear Friends,
                              I have a device used in my room to control 2 light (On/Off) and 1 fan (On/Off+Fan Speed Control).
                              I have made the circuit same to same. There is an IC : PIC16F676. I copied the IC to a new IC and installed in my new circuit board. But it does not work. But if i put the original/Old ic with the new board it works well.

                              What i think the ic is programmed and locked anyway. I am attaching the original program. Please help me if anybody can help to make this file workable.

                              Thanks.
                              Dear I have completed full tested code. Pl email me: vu3naa@gmail.com

                              Comment

                              Related Topics

                              Collapse

                              • tmhobadcap
                                Pioneer VSX-522-K remote control not working???
                                by tmhobadcap
                                I have this receiver for at least 10 years. Usually, we just use the remote for turning on/off and adjusting the volume. Recently, the remote control started not able to turn the receiver on. Later, the volume also could not be adjusted by the remote control.

                                At first, I thought that it was the usual problem which can be fixed by cleaning the contacts on the switches and the pcb. I opened the remote and clean it with alcohol. The remote did work again after that. But after one day, it did not work again. I opened it again and clean with alcohol and contact cleaner. Again it worked...
                                12-24-2020, 01:44 AM
                              • piipo
                                Old Privileg 5.1 speakers remote control question
                                by piipo
                                Hi, I have an old Privileg brand 5.1 speakers. I have lost the remote control. I have an universal Harmony remote but there is no Privileg brand in it's software to add. Does anybody have an idea what alternative brand for a remote can I try instead? I'm attaching an image of what the speakers looks like. The image shows 2 main speakers, they are 5 + 1 in total. Thank you very much
                                09-18-2024, 01:55 AM
                              • Document Archive
                                Acer Switch Switch V 10 SW5-017P Hybrid (2-in-1) V 10 Specification for Upgrade or Repair
                                by Document Archive
                                This specification for the Acer Switch Switch V 10 SW5-017P Hybrid (2-in-1) can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the Switch V 10 SW5-017P boardview and Switch V 10 SW5-017P schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note that we offer no warranties that any specification,...
                                09-06-2024, 05:30 AM
                              • hemant_2222
                                Schematic for Denon Remote Control RC1156
                                by hemant_2222
                                Hello Everyone,

                                Hope everyone is enjoying their repairs at hand!.

                                I am looking forward to get the schematic of Denon remote control RC1156. Actually long time no use of the remote leaked the battery thereby corroding few parts as well as the tracks.

                                I was able to join few of them but the remote is still not working, so i am looking forward for your help, in case anyone understand the schematic or the remote circuit diagram and could me assist me in repairing it.

                                Please refer to the attached picture, i think the voltage divider is missing...
                                10-06-2023, 02:05 AM
                              • dfear
                                hitachi 75hl16t64u - not responding to remote control
                                by dfear
                                I have a hitachi 75hl16t64u tv in for repair and it is driving me crazy.
                                It came in for a power issue which I have finally resolved by replacing the power supply.

                                The current issue is that the TV does not respond to the remote control. I have replaced the IR sensor board with a used one but the fault persists.

                                Anyone have a clue how to fix TV?

                                FYI: I have checked the remote work s by pointing it at my camera on my phone....
                                09-02-2024, 12:15 PM
                              • Loading...
                              • No more items.
                              Working...