Correct use of UART peripheral

Post Reply
Posts: 1
Joined: Tue Feb 01, 2011 5:14 pm

Correct use of UART peripheral

Post by BenUL » Tue Feb 01, 2011 5:25 pm

I am a university student very new to programming. I am trying to interact with the SRF02 sonar rangefinder for use as an altimeter on a UAV, and currently using the UART to communicate with it, through a dsPIC30F4013. (I am aware that it supports I2C also, but the unit is currently wired for serial connections) I simply want to send two bytes of information, firstly the address of the sonar, then a command to do the ranging, which this unit does all in one. However I am unsure of the correct proceedure for doing so, at the moment I am sending constants to the UART TX block only. Any help with this would be greatly appreciated.


Posts: 12
Joined: Thu Feb 09, 2012 1:18 pm

Re: Correct use of UART peripheral

Post by Saeed » Tue Mar 06, 2012 1:26 am

Flex Board Blinking LED example among the presented examples of the wikki may help you through this.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest