From: brianjunge on
Hello all-
 
I am trying to troubleshoot my senior project. We are using a pic 16f877a with a cirrus cs5463 to calculate the real power drawn by an appliance. The Cirrus power chip sends out 24 bits of fixed point and we parse and add them with the pic to a 16 bit number, this number is saved and accumulated over an hour and the data is sent out via the UART to a Labveiw program recieves the data and displays it for the end user.. All of this is working individually but now we are trying to put all the componets together and the PIC and Labveiw arent talking.  I am connecting to the board with a MM232R mini USB-Serial UART.
 
LINK:http://www.ftdichip.com/Documents/DataSheets/Modules/DS_MM232R_v091.pdf
 
When I send a hex value I only get the same value back, it appears to be an echo.
We have the pic and the usb module hooked up to logic anaylizer.
We are running an emulator (max stream X-C2U) that is recieve, which reads the hex value.
 
I can not get any data into labview
I am using Serial visa's the example program Basic Serial Read and Write.
 
Does anyone have any suggestion to help my group.
 
Thanks
From: npoling on
brianjunge wrote:Hello all-
 
I am trying to troubleshoot my senior project. We are using a pic 16f877a with a cirrus cs5463 to calculate the real power drawn by an appliance. The Cirrus power chip sends out 24 bits of fixed point and we parse and add them with the pic to a 16 bit number, this number is saved and accumulated over an hour and the data is sent out via the UART to a Labveiw program recieves the data and displays it for the end user.. All of this is working individually but now we are trying to put all the componets together and the PIC and Labveiw arent talking.  I am connecting to the board with a MM232R mini USB-Serial UART.Which "board" are you connecting to?Does your com have to be through USB?Maybe try to get the com working through RS-232 first.Set it up like this:          pin (PIC) ---/\/\/\/\/\/----  RS-232 Tx  (DB9 pin 3)                                 22k          pin (PIC) ---/\/\/\/\/\/---- RS-232 Rx  (DB9 pin 2)                                 1k                                   -------- RS-232 Gnd (DB9 pin 5)                                  |                             --------                               -----                                  -If you set it up this way you do not have to use a RS-232 level driver chip, just go straight to the PIC.  As I'm sure you know you will still need a level driver depending how long you cables are.Also look at which way you are sending and recieving the data (MSB or LSB first).
 
LINK:http://www.ftdichip.com/Documents/DataSheets/Modules/DS_MM232R_v091.pdf
 
When I send a hex value I only get the same value back, it appears to be an echo.
We have the pic and the usb module hooked up to logic anaylizer.
We are running an emulator (max stream X-C2U) that is recieve, which reads the hex value.
 
I can not get any data into labview
I am using Serial visa's the example program Basic Serial Read and Write.
 
Does anyone have any suggestion to help my group.
 
Thanks
 | 
Pages: 1
Prev: USB 6009
Next: Insufficient system resources error