Page 1 of 1

Correct use of UART peripheral

Posted: Tue Feb 01, 2011 5:25 pm
by BenUL
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.


Re: Correct use of UART peripheral

Posted: Tue Mar 06, 2012 1:26 am
by Saeed
Flex Board Blinking LED example among the presented examples of the wikki may help you through this.