PIC Interrupt driven UART with circular buffer at high baud rate
I am trying to read from a sensor with PIC 18f4550 at baud rate=38400. With a FIFO Circular buffer, I am able to store data from the sensor to an array. The sensor will respond to a request command and return a measurement of 15 bytes (the same as the circular buffer I created). I have to grab all 15 bytes and put \r\n at the end to separate each measurement since there is no deliminator. So I used two pointers, inputpointer and outputpointer to store bytes and transmit byte out. Because 18f4550 only has one hard UART, I use it to read data and send commands to sensor and at the same time use
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.