hardik_297p
Newbie level 3
- Joined
- Apr 9, 2013
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,296
i am doing serial communication between ARM(lp2138) and Matlab,
so for that I first i trying to sent data on terminal, but i am not getting proper data on terminal
(here i am getting 0xF8 while i transmitting 0x41)
please kindly help me.
i attached My proteus screenshot here
}
so for that I first i trying to sent data on terminal, but i am not getting proper data on terminal
(here i am getting 0xF8 while i transmitting 0x41)
please kindly help me.
Code:
/*keil programm for transmitting data*/
#include <LPC213x.H>
int main(void) {
PINSEL0 = 0x00050000; /* Enable RxD1 and TxD1 */
U1LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */
U1DLL =71;
U1DLM=0;
U1FDR=131; /* 9600 Baud Rate @ 15MHz Clock */
U1LCR = 0x03;
while (!(U1LSR & 0x60));
U1THR=0x41; /* transmitting 'a' */
}
Last edited by a moderator: