Skip to main content
Visitor II
May 5, 2006
Question

problem with serial and timer st10f269

  • May 5, 2006
  • 6 replies
  • 1075 views
Posted on May 05, 2006 at 10:47

problem with serial and timer st10f269

    This topic has been closed for replies.

    6 replies

    Visitor II
    April 27, 2006
    Posted on April 27, 2006 at 06:55

    i am using St10f269 in single chip solution.i am using keil version4.1.

    i have used timer 3 and timer 2 for generation of 20 msec delay. and after 120 msec i am transmitting the serial data.i have attached the memory map and c file.when i see the output its timing is random, sometime gap is 15msec between two consective serial frame,sometime 10msec and sometime no time gap.

    i have attached c file concern routines and memory map of the file.

    kindly tell me what i should check and do modification.

    Hello

    dear

    i have checked it with your recommended modification.it is working.only thing i want to ask is that is this code is ok for serial format of

    1 start bit

    one stop bit

    one even parity bit

    9600 buadrate.

    as on my other hand, second device is not accepting this data becuase i think that parity is not good. it should be even.

    kindly tell me what settings are necessory for even parity settings.

    Hello

    [ This message was edited by: Hello on 02-05-2006 08:25 ]

    ________________

    Attachments :

    c_code.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0Nl&d=%2Fa%2F0X0000000bYJ%2F1OOcud04SFV0KsoawQ16suGCqMGIeE.73ar9uVNOKDQ&asPdf=false

    memory_map.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0Ng&d=%2Fa%2F0X0000000bYH%2Fiun1IqYMnPkncfHNBVXN.zKSDQaoCnIFQqT81_aW8.k&asPdf=false
    Visitor II
    May 2, 2006
    Posted on May 02, 2006 at 05:31

    dear

    thank you very much for good suggestions.

    i have change the priority level.now program is ok. it is sending data after 120msec as set by timer 3. but there is some serial format problem as slave device is not receing data in its original format. what should i do in the above code to have

    1 start bit

    one even parity

    one stop bit

    9600 buad rate.

    thanks

    Hello

    Visitor II
    May 2, 2006
    Posted on May 02, 2006 at 12:07

    dear

    i have used different interrupt pririorty level. it is working fine but still there is one thing that device accepting this data have problem that may be the format for the serial data is not good.

    i need to send

    1 start bit

    8 data bits

    1 even parity bit

    1 stop bit

    while using the program as given above.

    kindly tell me what should i do.

    HELLO

    Visitor II
    May 3, 2006
    Posted on May 03, 2006 at 10:15

    yes i have check it for syscon0=0x8017. but it is still it is not working.

    Visitor II
    May 3, 2006
    Posted on May 03, 2006 at 10:15

    yes i have check it for syscon=0x8017. but it is still it is not working.

    Visitor II
    May 5, 2006
    Posted on May 05, 2006 at 10:47

    dear

    i have check this for S0con=0x8017; serial format is ok.

    thank you.

    Hello