Results 1 to 2 of 2

Thread: baud rate generation in 89s52

  1. #1
    Associate Engineer
    Join Date
    Aug 2013
    Posts
    4

    baud rate generation in 89s52

    i am doing a project in which i am interfacing 89s52 with a fingerprint scanner through uart . i want to generate 115200 baud rate through timer 1 the code is attached
    TMOD=0x20;
    TH1=0xFF;
    SCON=0X50;
    PCON=0X80;
    TR1=1;

    the crystal used is 22.1184 mhz is this code right ? and can we generate baud rate through timer 1 in 89s52?
    Last edited by hasnain ejaz; 11-04-2013 at 11:24 AM.

  2. #2
    Administrator Kelly Bramble's Avatar
    Join Date
    Feb 2011
    Location
    Bold Springs, GA
    Posts
    2,206
    Welcome to EE!

    Best I can do is attach the data sheet for the 89s52..

    AT89S52.pdf

Posting Permissions

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