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.
But i did use Interrupt method and the code works 70% of the time.but some tweaking is necessary is what is needed is what i could understand.Can you please go through my code and tell me what is missing.Thank you.
Hi FvM,
Your idea almost worked.I copied the contents into another buffer immediately.
UARTBuffer0[UARTCount0++] = LPC_UART0->RBR;
memcpy((const char *)BBuffer0,(const char *)UARTBuffer0,UARTCount0);
But still first character is getting lost occasionally and i get some valid data...
Hi Sunnyskyguy,
Thanks for your response.
Your document made an interesting read.But the function UART0_IRQHandler function written by me is given by NXP.I could never understand why they have given me a code which doesnt work in all circumstances.
In your code does the txBufferRead...
Now i understand that LPC 1227 has only 16 byte receive and transmit FIFO.Can anyone please suggest how to receive or send data longer than that.Thank you.
- - - Updated - - -
Hi FvM,
I am mentioning 20 characters only when i know in that loop i am supposed to receive only 20...
Thanks for your suggestion but the same program is working fine if i send only 16 bytes of data.The problem starts only when i send more than 16 bytes of data to the UART.
- - - Updated - - -
There seems to be some problem in the below given line.UARTBuffer is not receiving the whole data from...
Hi all,
I am using a UART library to send and receive data.While i use shorter strings to capture the input data in the receive pin,the function works well.The UART Buffer is displaying the correct data.To be exact if receive more than 16 bytes of data the buffer gets corrupted and sometimes it...
Hi all,
Can anyone please tell me how to change key in Mifare 4K classic card.
What i tried was
<newKeyA>+ access bits + <KeyB>
0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0X78 0x77 0x88 0x69 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
But the password refuse to change.The default configuration is 0xFF 0xFF 0xFF 0xFF...
Now i used MAX3232 which required 3.3V instead of MAX232.The problem was the microcontroller board has both 3.3V and 5V and 5V was having loading effect when i connected MAX 232 circuit with MAX IC sitting on it.Microcontroller works on 3.3V and it was working fine.So i connected a circuit which...
i am attaching the circuit i am using.the normal max circuit.does the baud rate has anything to do with the circuit?i guess MAX 232 circuit is fine since i wired together 11 and 12 and i was able to get the echo in my terminal.meanwhile i will try to get you the whole character.
The baud rate is 9600.
I am posting the UART portion of the code
void UARTSend(uint32_t portNum, uint8_t *BufferPtr, uint32_t Length)
{
while ( Length != 0 )
{
if ( portNum == 0 )
{
/* THRE status, contain valid data */
#if !TX_INTERRUPT
while ( !(LPC_UART0->LSR & LSR_THRE) )...
Thanks esp1,horace1,doraemon for your replies.
I am adding an image which i am getting while sending K.The hex value i am getting by sending K is 0XFD.Is it problem with baud rate synchronization or any problem with the circuit.MAX 232b circuit is fine since i wired together 11 and 12 and i...
Hi,
Can anyone please advice how to measure data going out of my Tx pin in microcontroller with the help of a oscilloscope.I am getting junk value at the terminal.My max 232 circuit is working fine.I want to check whether things are fine in my microcontroller side.
Thanks.
Yes sir,thanks for your help.Let me try to source it.
- - - Updated - - -
Yes sir.Thats what i meant since i have only one input.
- - - Updated - - -
I think this IC may suit my purpose.
http://www.jameco.com/Jameco/Products/ProdDS/1387307.pdf
- - - Updated - - -
I think this IC may...
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.