Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

..Read n display data from Microcontroller

Status
Not open for further replies.

Otto

Newbie level 4
Joined
Dec 16, 2010
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,316
Hello all,

I have one question related to 8051 for UART.

My task is i have PWM value in P1.5 pin, then i have that value using ADC & i want to print this value (on Terminal) through UART.
PWM & ADC works perfect.
I want to display value of ADC of pin P1.5 using UART.

how can i do this?
I don´t have any idea how to make in UART.
pls help me for this.
Thanks in advance.
 

dont be generic by telling 8051, as after the solution then you will tell the controller make and part number.....

Assuming it is 89c series..
set the timer1 to 8 bit autoreload mode. set the baud rate as 9600 bymake scon as 0x50, start the timer1 putting 0xfd into SCON register. then

the values got from ADC is stored in SBUF and then
while(1){
your adc code and after the value is got
SBUF=ADC;

while(TI==0);

TI=0;
}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top