dancingqueeneng
Member level 1
- Joined
- Oct 26, 2006
- Messages
- 34
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,564
Wait0DH:
ACALL SerialIn
CJNE A,#0DH,Wait0DH
RET
SerialIn:
JNB RI,SerialIn ;Wait for another character
MOV A,SBUF ;Save it in accumulator
CLR RI ;Get ready for next character
RET
This means I have to receive 0DH instead of the letter 'O' and 'K'? I thought I have to receive an 'OK' from phone?
;; ***** you don't need to execute the following 4 lines every time
;
MOV DPTR,#CMGF
ACALL SingleCommand
MOV DPTR,#CSCA
ACALL SingleCommand
Normally use 33 pF. Powered your uC then use Osciloscope to check your curcuit, if there is clock stream on ALE (pin #30) it means your circuit is OK.Another question is that for the capacitors linked with crystal and pin 18 & 19, what value of capacitance shall I use? I've tried 12pF and 33pF but none of them worked.
Are you sure there are 5 Volt on pin 40, and pin 20 connected to ground?I've measured the voltage drop at pin 10 and pin 11 which is RxD and TxD respectively, but I obtained 0V, is this possible? Shouldn't it be something around 5V?
Are you sure there are 5 Volt on pin 40, and pin 20 connected to ground?
SETB P3.0
SETB P3.1
At this two lines at top of your program before doing above testing
Code:
SETB P3.0
SETB P3.1
Not yet, the lab is not open these few days because of public holiday, going to test it out later.Do you already test the ALE signal?
Yes, you are right. Those 2 lines just for make you sure RX and TX is at high statesThat means I insert these 2 lines and connect the circuit without connecting the phone? Or with the phone? I thought port 0,1,2 and 3 are all high in default? So I still have to set P3.0 and P3.1?
The stand by state of serial transmission line is 'high', so TxD should be around 5 VoltWhat voltage should it be on TxD and RxD? Should they be 5V?
wat port are u using?dancingqueeneng said:What do you mean by pull up the pins of 89S51? It operates on 5V, and should output 5V as well.
the 1.8 V pin voltage is measured before or after AT89S51 connect to LCD module?I've added an LCD to be interfaced with the AT89S51, but then the output voltage of the 89S51 pin is just 1.8V instead of 5V, which is very very low to run the LCD, why does this happen?
At this case, AT89S51 and AT89C51 are totally compatible.By the way, what is the difference between AT89S51 and AT89C51?
the 1.8 V pin voltage is measured before or after AT89S51 connect to LCD module?
As I said earlier, the pullups are very weak. About 50kohm internal pullups. If the output need to drive something that requires more current, you need to pullup like you do on P0.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?