Jump to content
43oh

RAKSH

Members
  • Content Count

    19
  • Joined

  • Last visited

  • Days Won

    1
  1. Thanks a lot Spirilis . For those who require a"ping" example I have attached two files ,ping_server and ping_client . ping_client.txt ping_server.txt
  2. And what about the transmitter side ? Suppose I want to receive data on a NRF which was previously assigned as Transmitter ,do i just issue the following commands ? while (!radio.available(true)) ; if (radio.read(inbuf)) {//display inbuf}
  3. You mean to say :- I first start ,say with NRF in RX mode ,on receiving the packet i just issue the following command radio.print(str_on); radio.flush(); So I don't require to set TX address for the NRF which was previously in RX mode to send data ?
  4. What is the process to be followed for simultaneous RX and TX on the NRF ? THe MASTER NRF sends a string over to the slave and the slave has to perform a certain action and return the status of that process . How do I go about this ?
  5. I'm sorry ,I commented to soon , Changing Build from Debug to release and then clicking debug worked . (A delete comment button would be really useful)
  6. How do i upload the Energia sketch ? Clicking on the debug button shuts down eclipse ..
  7. No I tried it again , I am not getting any errors and warnings . What am i expected to observe in the LED's I just see a whitish light without any fading . I tried matching the dutycycle and changing the period according to my needs to achieve fading ,but to no avail .
  8. For the sake of thanking this community for solving my issue ,I would like to write a post on how I overcame this issue thanks to community member Stepman . I use the TIva C Series Launchpad . For a program employing UART if you are getting errors like Description Resource Path Location Type unresolved symbol UARTprintf, first referenced in ./main.obj Description Resource Path Location Type unresolved symbol UARTStdioConfig, first referenced in ./main.obj Then you have not copied or linked your uartstdio.c file from utils/uartstdio.c If you are getting errors like Description
  9. Small suggestion to Spirilis : Why don't you encorporate all the stellaris examples :(Like the rx example roches posted) in the library , so that noobs like me won't have a tough time ?
  10. Haha ! This is very funny ,but your library makes the receiver a PIR sensor ,! It can detect motion up to 20 cm away !
  11. Unfortunately ,I'm not getting any PWM output on the Led's , I copy pasted the same code .
  12. Here's code performing ADC on Pin E5 on the Tiva C Series meant for struggling beginners like myself #include <stdbool.h> #include <stdint.h> #include "inc/hw_memmap.h" #include "driverlib/adc.h" #include "driverlib/gpio.h" #include "driverlib/sysctl.h" #include "driverlib/adc.h" #include "inc/hw_types.h" #include "driverlib/debug.h" main(void) { uint32_t pui32ADC0Value[1]; SysCtlClockSet(SYSCTL_SYSDIV_10 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN| SYSCTL_XTAL_16MHZ); //Set clock at 40 Mhz , Sometimes
  13. Thanks but I resolved my issue . The problem was , I was using a wrong channel to read values . And also ,that it is necessary to clear all Interrupts on the ADC before proceeding . Thanks a lot guys !
  14. I'm trying to read analog values from a photoresistor(off of a voltage divider) connected to pin PC5 . I use the following code #include <stdint.h> #include <stdbool.h> #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "driverlib/debug.h" #include "driverlib/sysctl.h" #include "driverlib/adc.h" #include "driverlib/gpio.h" #ifdef DEBUG void__error__(char *pcFilename, uint32_t ui32Line) { } #endif int main(void) { uint32_t ui32ADC0Value[1]; SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_OSC_MAIN|SYSCTL_XTAL_16MHZ); SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0
×
×
  • Create New...