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.
Hello,
This reason mybe:
1. The wrong connection with RS232 cable
Please test your cable from computer COM1/COM2, with the end of cable not connect to MCU but connect with cable DB9 pin 2 and pin 3.
And open the hyper terminal with 9600,n,8,1. Type some char from keyboard, you mast see some...
This is old link mybe was removed
Please try this new link:
**broken link removed**
This command also work fine with C35 Siemens. You must look pin configuration at your's handphone. Connet the RX & TX 8051 to TX & RX handphone by using ttl buffer before, because TX/RX pin of handphone not use...
iar compiler banked model 8051
The principles is:
Use additional port as chip select for bank.
For example if you will expand 8 chip of 64KB RAM.
16 Address line use P0 and P2 (as default) is connected to 16 bit address line of RAM.
Use 3 bit additional from P1 or P3 (example P1.0, P1.1 and...
lcd scrolling display
To scroll the second line have two methotd:
1. Scroll line by line.
2. Scroll char by char shift line to left.
Assume you had a long string variable in address of XRAM/IRAM and ending by NULL char (00H).
TO SCROLL LINE BY LINE
1. Use cnt var as counter of string...
Re: External Memory Access..
for example define memory at xram as:
var_int as integer
var_char as char
var_long as long
address begin 8000H:
8255_PortA as char
8255_PortB as char
8255_PortC as char
8255_PortCR as char
you must declare as:
int xdata var_int;
char xdata var_char;
long xdata...
Please test this program by using keil C51.
The principle of protocol is using:
Pnnn,nnn,nnn,nnn[CR]
The header is P char following by decimal number in range 0..255. Sequence of decimal number is 4 sequence as P0, P1, P2 and P3 separately by comma.
Example:
P23,45,66,255
Set P0=23, P1=45...
Hello,
I write a small program by using C51 keil uVision and BASCOM-51.
This program will set P0, P1, P2, P3 by typing string from serial or remote program like visual basic.
8051-MCU from RX pin will read line string with the following format:
PX=nnn[CR] -> X is port number 0..3 and nnn is...
The principles of ISD51 is by inserting small code to break program and send status to keil uVision.
ISD51 use macro for insert small program, and best for 8X51 single chip only.
If you build a large program and no single chip, use the keil mon51.
bsiswoyo
Okey,
I will explain about the serial data trimsmisson pinciples.
If you connect two serial devices, in this project between RS232-8051 and RS232-PC
I assume in PC by using Hyperterminal software as Transmit and Receive data.
Two point connection in RS232, only binary data can transmit and...
external ram of 8051 using c
if you need to write/read external memory without asm pragma please test this sample:
/* test i/o 8255 mapping to 8000H - 8003H */
char xdata PA _at_ 0x8000;
char xdata PB _at_ 0x8001;
char xdata PC _at_ 0x8002;
char xdata CR _at_ 0x8003;
/* dummy data port at...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.