Wednesday, July 7, 2010

ZiLOG Z8F64xx Timer Calculator

Sample code generator for ZiLOG's Z8F64xx Z8 Encore family of 8-bit Flash MCU's. Tested only with ZDSII v4.11 (C compiler-v3.60) on Z8F6423 running at 20MHz crystal. It's expected to work also with other parts, like Z8F6421 of e-Gizmo's IRC Slimboard. It generates sample codes of "timer interrupt" and "pulse width modulation(pwm)" for TIMER0, TIMER1, TIMER2, and TIMER3 peripherals. Please refer to the datasheet("part selection guide" table) of this family to see what timer peripherals are available on a particular part.


Timer Interrupt Code Generator

System Clock Frequency: Hz
Select Timer Peripheral:
Desired Interrupt Rate: Hz


PWM Code Generator

System Clock Frequency: Hz
Select Timer Peripheral:
Desired PWM Frequency: Hz
Initial PWM Duty Cycle: %


note: I'm a newcomer to javascript. Please notify me of found "bugs" in these code makers.



  1. hi..
    tnx 4 ur codin..
    itz really helped me...

    im usin a z8 MCU with nrf24l01+ wireless..
    i bit confused..
    d conection between z8 and d wireless is using spi..

    im geting a IRQ signal frm wireless..
    i conected 2 d pin PC6.. (input for Z8)

    cn u plz help me hw 2 programm it..(timer)

  2. 1 Problem: HP Printer not connecting to my laptop.

    I had an issue while connecting my 2 year old HP printer to my brother's laptop that I had borrowed for starting my own business. I used a quick google search to fix the problem but that did not help me.
    I then decided to get professional help to solve my problem. After having received many quotations from various companies, i decided to go ahead with Online Tech Repair (
    Reasons I chose them over the others:
    1) They were extremely friendly and patient with me during my initial discussions and responded promptly to my request.
    2) Their prices were extremely reasonable.
    3) They were ready and willing to walk me through the entire process step by step and were on call with me till i got it fixed.
    How did they do it
    1) They first asked me to state my problem clearly and asked me a few questions. This was done to detect any physical connectivity issues with the printer.
    2) After having answered this, they confirmed that the printer and the laptop were functioning correctly.
    3) They then, asked me if they could access my laptop remotely to troubleshoot the problem and fix it. I agreed.
    4) One of the tech support executives accessed my laptop and started troubleshooting.
    5) I sat back and watched as the tech support executive was navigating my laptop to spot the issue. The issue was fixed.
    6) I was told that it was due to an older version of the driver that had been installed.

    My Experience
    I loved the entire friendly conversation that took place with them. They understood my needs clearly and acted upon the solution immediately. Being a technical noob, i sometimes find it difficult to communicate with tech support teams. It was a very different experience with the guys at Online Tech Repairs. You can check out their website or call them on 1-914-613-3786.
    Would definitely recommend this service to anyone who needs help fixing their computers.
    Thanks a ton guys. Great Job....!!

  3. I think that this post is acceptable for all users
    water treatment equipments