Problem in interfacing 8051 with weighing machine

Status
Not open for further replies.

nilesh ghadge

Newbie level 2
Joined
Feb 16, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
Actually I am new to this field & want some help from experts out there......
I want to interface 8051 with a weighing machines which works with 4800 & 2400 baud rates. I have no problem with 4800 but as I am trying to read data at 2400 it fails its not giving me any data at all... protocols for both the weighing machines are same
i.e. start character 6 digits end character & '\n'

CPU freq. 11.0592 with 6 clocks/cycle.. & for this freq I am using baud ...
 

I am using following values ...

for 9600 //works fine
TH1 = 0xF4;
TL1 = 0xF4;

for 4800 //works fine
TH1 = 0xE8;
TL1 = 0xE8;

for 2400 //not working
TH1 = 0xD0;
TL1 = 0xD0;

here I am using timer 1 in auto-reload mode
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…