Search found 19 matches

by sterling2
Mon Apr 05, 2010 3:20 pm
Forum: Wireless/RF
Topic: XBee troubles: MCU to PC
Replies: 13
Views: 1441

Re: XBee troubles: MCU to PC

thanks sylvie - no i am not doing anything in API mode, its all in AT mode. So if i read the serial port, i will just read whatever number i have sent? Do you know if this number will still have the start and stop bits around it and if i will have to discard those when reading with matlab? Meaning i...
by sterling2
Sun Apr 04, 2010 8:59 pm
Forum: Wireless/RF
Topic: XBee troubles: MCU to PC
Replies: 13
Views: 1441

Re: XBee troubles: MCU to PC

Hi again - does anyone know what data format/byte-order/data frame the xbee transmission packet comes in at the PC serial port? I know it starts with a 7E sync byte, followed by length bytes, API type, source, etc. I found an example of this in this forum (interfacing xbee with accelerometer) where ...
by sterling2
Sat Apr 03, 2010 6:29 pm
Forum: Wireless/RF
Topic: XBee troubles: MCU to PC
Replies: 13
Views: 1441

Re: XBee troubles: MCU to PC

sylvie and waltr - thanks for the help. I tied DIN and DOUT together on the remote XBee to do the range test and then it worked. During the range testing, i found that there was some loose connection between the remote xbee board and the pin headers that i was using to connect the xbee board to the ...
by sterling2
Sat Apr 03, 2010 3:08 am
Forum: Wireless/RF
Topic: XBee troubles: MCU to PC
Replies: 13
Views: 1441

Re: XBee troubles: MCU to PC

Sylvie and waltr - thanks so much for replying. For the range test, my DIN and DOUT for the remote xbee were NOT connected together; i will make that change and let you know how it goes. Do you have any insight into why i am not being able to get any MCU UART data to the PC through the xbee link? Pe...
by sterling2
Fri Apr 02, 2010 12:25 pm
Forum: PIC Microcontrollers - Software and Hardware
Topic: PWM using dsPIC30f3012/13
Replies: 13
Views: 3922

Re: PWM using dsPIC30f3012/13

Waltr and phalanx - i appreciate all your replies so far. I got the interrupts to work for the dsPIC; i am actually using the ccs c compiler PCD version 4.106 (it says PCDHW as a heading on the program window) and not MPLAb. it seems that the "#int_timer2" heading specifies the isr function. I was a...
by sterling2
Fri Apr 02, 2010 12:14 pm
Forum: Wireless/RF
Topic: XBee troubles: MCU to PC
Replies: 13
Views: 1441

XBee troubles: MCU to PC

Hi - i am trying to use the dsPIC30f3012 MCU to get UART data to a PC and am having some trouble setting up the xbee link. I am using the series 1 xbees with the wire antenna, and have the transmitter connected to an xbee board to breadboard it (http://www.nodna.com/print_product_info.php?products_i...
by sterling2
Sun Mar 28, 2010 1:45 pm
Forum: PIC Microcontrollers - Software and Hardware
Topic: PWM using dsPIC30f3012/13
Replies: 13
Views: 3922

Re: PWM using dsPIC30f3012/13

Hi again - thanks waltr for clearing that up. I wrote up the code for PWM with interrupt on every PWM period and went to test it in the school lab where the MCU is setup - only the lab seems locked - so decided i would ask a question here about the code setup order and when exactly the ISR executes ...
by sterling2
Sun Mar 28, 2010 10:51 am
Forum: PIC Microcontrollers - Software and Hardware
Topic: PWM using dsPIC30f3012/13
Replies: 13
Views: 3922

Re: PWM using dsPIC30f3012/13

Hi - just wanted to verify something about PWM : The no. of counts at which the PWM timer overflows and resets is the same as the no. of counts for one PWM period, isn't it? Meaning if the period register has a value of 128 for example for every PWM period, then the timer will reset itself after eve...
by sterling2
Sat Mar 27, 2010 3:45 pm
Forum: PIC Microcontrollers - Software and Hardware
Topic: PWM using dsPIC30f3012/13
Replies: 13
Views: 3922

Re: PWM using dsPIC30f3012/13

waltr, phalanx, and rrpilot - thanks for your advice. I know a few more things about printf and PWM now because of it. Phalanx - you mentioned using the debugger to get register values off the dspic. I am using a ccs c compiler PCD version 4.106 (it says PCDHW as a heading on the program window); i ...
by sterling2
Sat Mar 27, 2010 2:58 pm
Forum: Wireless/RF
Topic: XBee byte drop rate
Replies: 31
Views: 6532

Re: XBee byte drop rate

Right.

When i get to the matlab part of my project, i will start a new matlab-serial-port-read thread or something. I hope you stick around; I will probably have questions to ask! thanks for your help so far.
by sterling2
Fri Mar 26, 2010 11:26 am
Forum: PIC Microcontrollers - Software and Hardware
Topic: PWM using dsPIC30f3012/13
Replies: 13
Views: 3922

Re: PWM using dsPIC30f3012/13

Hi waltr, Thanks for replying - i was just curious. I'll go ahead and use 2 timers - i think the duty cycle will need to be different for the two motors at some point, so i might as well. On another note, I'll start work on the XBee part of my project again very soon & will probably have some more q...
by sterling2
Thu Mar 25, 2010 2:54 pm
Forum: PIC Microcontrollers - Software and Hardware
Topic: PWM using dsPIC30f3012/13
Replies: 13
Views: 3922

PWM using dsPIC30f3012/13

Hi, I am trying to control two motors using PWM with the dspic30f3012 (& will change to the dspic30f3013 soon - ordered them). I got the actual PWM working for one motor, but i was curious about something and i couldn't find the answer in the datasheet: Is it possible to control both motors with the...
by sterling2
Fri Mar 19, 2010 5:27 pm
Forum: Wireless/RF
Topic: XBee byte drop rate
Replies: 31
Views: 6532

Re: XBee byte drop rate

Yeah, i agree with the new thread thing , though i wanted to ask lupin some questions that's why i started here. Looking through the xbee data sheet, i noticed all AT commands expect hex values; so from that, i am wondering what format the xbee transmits data in? Are all transmissions also in hex? m...
by sterling2
Fri Mar 19, 2010 1:44 pm
Forum: Wireless/RF
Topic: XBee byte drop rate
Replies: 31
Views: 6532

Re: XBee byte drop rate

I think i can clear up the data rate thing - you see, this thread was started by "lupin" who's sending the large data volume; i saw that his interfacing-components were very similar to mine, and so started posting here. i myself am sending much smaller data volume - the 100 bytes every 10s like i me...
by sterling2
Thu Mar 18, 2010 11:49 pm
Forum: Code Snippets
Topic: PIC sends data into xbee
Replies: 7
Views: 8166

Re: PIC sends data into xbee

hi - I am trying to use a dsPIC30F3012 micro to send data to an Xbee for transmission to a PC. I am very new with both PICs and Xbees, so i am still getting used to all this. I was wondering what exactly needed to be configured for setting up UART communication between the dsPIC and the Xbee? I thin...