Holtek 6026 wİth mcu (pbp)


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Mar 2014
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: Holtek 6026 wİth mcu (pbp)

    Hi ,
    İt isn't problem for me. You are trying to help for me. Maybe I couldn't tell it.
    Anyway I will look datasheet for code again, I can find on the google same code for PBP.
    I seen code like to this, but it is ASM. I dont know ASM more.
    İf I have any solve, I will write in here.




    Thank you again.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: Holtek 6026 wİth mcu (pbp)

    The HT6026 uses three states for the data encoder. This makes the decoding much more difficult using PIC instead of a dedicated chip.

    To decode this in software, I think it is necessary to use interrupts on PortB.0 and also in cooperation with the flag 6 in Option_Reg to detect the edge of the incoming pulse.

    Then with the timers of the PIC you can measure the width of every pulse by starting and stoping the timer for every pulse that triggers the interrupt pin on PortB.0

    As you can understand it is not at all an easy task.

    It would be necessary to use a second timer also to have a timeout, if the incoming series of pulse is noise and dump the collected data so far. Every data packet is 72 clock long. For 20KHz clock this is 3,6 ms. So if the data packet (AD0-AD8) is longer than say 4ms, software should consider it as noise.

    Now that I check each pulse, it seems that for 20KHz clock, each pulse is 50usec width. For a PIC like 628 at say 4 or even 8MHz this is too fast.

    It may not be possible to decode in basic and assembly might be the way to go.

    Ioannis

Similar Threads

  1. Holtek Encoder HT6P20
    By picdev in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 30th April 2013, 23:59
  2. Holtek Decoder
    By George in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 29th June 2011, 12:17
  3. Holtek 12E & 12D + 16x2 LCD SCREEN giveaway
    By Megahertz in forum Adverts
    Replies: 0
    Last Post: - 8th June 2010, 23:21
  4. Defining MCU with MPASM
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th May 2007, 13:16
  5. Holtek - HT6012 Encoder
    By ero in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th March 2006, 13:02

Members who have read this thread : 0

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