1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Xtal freq for Z8671 2K ROM BASIC, member of old Z8 family

Discussion in 'Microcontrollers' started by eblc1388, Sep 20, 2007.

  1. eblc1388

    eblc1388 Active Member

    Joined:
    Jan 25, 2005
    Messages:
    2,228
    Likes:
    18
    Location:
    UK
    Hi,

    Can anyone remember what Xtal frequency is specified for this MCU in order to produce the correct serial baudrate? The chip Z0867108PEC has suffix "08" so the crystal frequency will certainly be less than 8MHz.

    Z8671 is a 2K masked ROM BASIC Z8 variant from the '80. It has internal UART. The baudrate divisor is hard coded into the ROM and requires a particular crystal frequency to produce the correct baudrate.

    Thanks
     
  2. eng1

    eng1 New Member

    Joined:
    Apr 7, 2006
    Messages:
    951
    Likes:
    19
    Location:
    Italy
    I haven't worked with that microcontroller. I've just searched the web to answer your question. Does this link help?
     
  3. Papabravo

    Papabravo Well-Known Member

    Joined:
    Mar 9, 2006
    Messages:
    2,889
    Likes:
    25
    Location:
    Michigan, USA (GMT-5)
    The number 7.372800 MHz. comes to mind. It is 768 * 9600baud

    For the numerologists 768 = 256 * 3 = (2^8 ) * 3
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. eblc1388

    eblc1388 Active Member

    Joined:
    Jan 25, 2005
    Messages:
    2,228
    Likes:
    18
    Location:
    UK

    @eng1: In fact I raised my question after reading that exact webpage in the link, which indicated twice in its content that the Xtal frequency is 7.8MHz.

    After studying the ASM listing included on that page, I worked out the correct XTAL frequency should in fact be 7.3728MHz.

    @Papabrave: Its exactly as what you've suggested.
     

Share This Page