free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems
I am using AT89s52 uC, 11.0592 MHz crystal, 9600 baud rate. I am not getting the output in hyper-terminal whereas Tx and Rx LEDs are glowing during receive and transmit of the data or while pressing the keys in keyboard. I am getting the output in debug terminal. I am enclosing the program below. Could anybody please find out where lies the fault. Thx in advance.
i dont trust printf and scanf moreover they are not even recommended to use for embedded applications. why don't you write your own simple functions? its really easy to do. check serial tutorial. www.rickeyworld.info If you feel satisfied with the user's forum reply please click on the thank button.
In the code you are setting the baud rate for 2215bps but not for 9600bps. So change " TH1=-3 or 0xfd or 253" Never cry in front of others........... Don't give them the pleasure of knowing how much they hurt you.
This function is implementation-specific and is based on the operation of the _getkey and putchar functions. These functions, as provided in the standard library, read and write characters using the microcontroller's serial port. Custom functions may use other I/O devices.
and here is your most basic version of putchar()
CODE:
charputchar(char c) { while(!TI);
TI =0; return(SBUF = c); }
-Dave "Basic research is what I am doing when I don't know what I am doing"
Could u plz give an example of how to use your uploaded library which is available at http://www.8051projects.net/downloads7.html, bcoz it is showing error "requires ANSI style prototype" Please give an example of receiving a string also, as it is not included in the library. Thx..
do not include the lib file just the c file is sufficient.
for receiving string, you can use uart_receive() function and keep reading till you get a \r from serial port. uart_receive() will read 1 byte from serial port. www.rickeyworld.info If you feel satisfied with the user's forum reply please click on the thank button.
I posted here because the thread link you have posted is showing 'thread not found' at the time of posting. I analysed and tested your program on the hardware with the settings mentioned in the program. It just prints "Keyboard Echo active". There is no echo of the character typed in the hyperterminal. Even in debug the same thing happens. Let me clear what my requirement is, Some character has to be stored in a pointer e.g. mystr="WELCOME TO 8051" which has to be transferred to hyperterminal. Secondly, it has to send value of mydata say, mydata=0x08. Thirdly 8051 has to receive the numbers(typed in the hyperterminal) say value of mybyte as well as mystr, store it in ram using pointers and display it in LCD.
Contact Ajay Bhargav by PM or email at contact@8051projects.net
Anonymous | 17 Mar : 12:46
anyone knows who can I get in contact with to get permission to use this http://www.8051projects.net/lcd-interfacing/lcd.png for my senior design report?
Correction... http://www.8051projects.net/lcd-interfacing/lcd-4-bit-programming.php That gave me headaches... Mismatched coding between the 4-bit and 8-bit sections.
8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems