Holtek - HT6012 Encoder


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2004
    Posts
    34

    Default Holtek - HT6012 Encoder

    Dear Friends,

    I was planning to write a basic program for decoding the HT6012 signals by using pic 16F877. As you have understood the some part of the program can be written in Basic but the decoding part must be written in asm.
    This chip having one resistor to fix the frequency and I used 1MOhm, it means the clok frequency is 3KHz. If you check the data sheet you will see that the chip having about 36 clock LOW period as Header (pilot) signal after that one clock as HIGH for sync. After that 12 bits of address and data bits are coming. Each adress or data bits are 6 clock.
    Now, if sombody has worked on this matter may be he can give me an idea how to catch the pilot signal and how to obtain the address and data bits.
    One sample code will be better for me but even one good idea will be ok for me.

    I need yor help and waiting your replies.
    Here is the shape of the one data package
    Pilot periode 36 clocks sync
    ...|-|_________________________|-|............12 pcs. address and data bits
    HIGH bit = ____|--|____|--|
    LOW bit = __|----|__|----|
    Z bit = ____|--|__|----|

    It will be enough for me to get the address and data bits in a right way. I was checking the bits as follows;
    - pass first clock and come to second clock and check the bit if it is low or high.
    - pass 2 clocks and check again the bit if it is high or low.
    By the way you should obatin the following froms ;
    - If the address bit is HIGH , the two bits will be 00
    - If the address bit is LOW, the two bits will be 11
    - If the address bit is Z, the two bits will be 01
    It was the my system but I could not get any success until now.

    ERO

  2. #2
    Join Date
    Apr 2005
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    May be i'm wrong but isn't the same encoding/decoding sequence of Motorola 145026?

    If so i can help you with some code.Let me know about.
    Roberto

  3. #3
    Join Date
    Aug 2004
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    @Roberto,
    I checked now the datasheet of Motorola 145026. I can tell you the idea is absolutely same. There are some differences like followings;
    - the pilot period is 18 clocks in motorola, (36 clocks in Holtek)
    - the type of the HIGH - LOW and Z bits are different but idea is same
    HIGH= in holtek it is 2 low-one high-2 low -one high
    in motorola 1 low -7 High - 1 low - 7 High
    I do not give here the other bits I hope you understand the differences.

    If you work already with motorola I am sure you can help me. I wait your kind reply.
    ero

  4. #4
    Join Date
    Aug 2004
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    @Roberto,

    I could not yet received your reply!. Is there any problem?.

    Erol

  5. #5
    Join Date
    Apr 2005
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    I sent a Private Message on 3 March. Check your private message box.
    If not received i'll send it again or send me your mail.
    Roberto

Similar Threads

  1. Holtek Encoder HT6P20
    By picdev in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 1st May 2013, 00:59
  2. Quadrature encoder and ASM Interrupts. questions..
    By godfodder in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th March 2013, 15:45
  3. Instant Int and encoder (Elect. Gearing)
    By boroko in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 29th November 2009, 03:29
  4. encoder HEDL 5540
    By kutsi in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th June 2007, 15:00
  5. encoder wowes
    By wallaby in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 6th December 2005, 22:56

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts