This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PGA450-Q1

Other Parts Discussed in Thread: PGA450-Q1

I want to use SPI communication (Evaluation tab ) to transfer data  to/from GUI   from/to PGA450-Q1 IC. Do i need to make  use of any software(Keil)  and write code for  distance measurement?

and since, I dont have 58kHz transducer ,I have to go for one with 40kHz  . Will Evaluation tab allow this?

In SPI mode how will i observe  distance output? Please explain SPI communication procedure.

  • Saurabh,

    If you have the PGA450EVM, you don't need to program the PGA450 to use the evaluation tab.  You just need the right settings.  The attached picture shows settings you can start with for a 40kHz transducer.

    You can write to registers using SPI to configure and start a distance measurement; however, you'll need to program an algorithm into the 8051uC inside the PGA450 to detect where an object is located.  Before worrying about that, you can observe what the echo signal looks like by reading and plotting the FIFO RAM.  That's what the "eval monitor" tab in the GUI does, but you can also export the data to excel and look at it that way.

    -Clancy

  • Clancy,

    but i don't have the EVM kit. i am working on PGA450-Q1 (free sample). I think it will require some changes in the code present on E2E wiki . Will you please send me the modified .hex file of code (for 40kHz output frquency).?

    Thanks,

    -Saurabh

  • Saurabh,

    Here is the modified firmware for 40kHz.  Here is a list of changes from the standard firmware:

    In the PGA450_int.c file:

    BPF_A2_MSB = 0xF4

    BPF_A2_LSB = 0xE6 // this A2 coefficient correspond to a center frequency of 40kHz for the bandpass filter.  The appropriate value can be looked up in the datasheet for other frequencies.

    In the PGA450_isrs.c file:

    BURST_ONA_MSB = 0x00;

    BURST_ONA_LSB = 0xC8;   // This controls the frequency of the driving signal for the ultrasonic burst.  To calculate the appropriate number use this equation:   ON/OFF_coefficient = Convert2Hex( 16MHz/40kHz/2 )

    BURST_OFFA_MSB = 0x00;

    BURST_OFFA_LSB = 0xC8;

    PGA450 - Firmware Rev 2.1.1 - 40kHz.zip
  • Clancy,

    How to use GUI for directly writing to registers and what registers to be written ? Is it only ESFRs?Which memory part will get programmed this way?

    please reply  as early as possible.

    Thanks

  • Saurabh,

    You won't be able to use the GUI without the PGA450EVM.  Have you ordered one yet?

    The PGA450 must be in reset to communicate via SPI.  While in reset, the PGA450 will not execute code in its OTP or DEVRAM memory spaces.  You can program the ESFRs over SPI with the desired settings to send and receive an ultrasonic burst.

    When the micro inside the PGA450 is not in reset, the programmed code in the OTP/DEVRAM can execute.  You can use this to write to the ESFRs as well. (as you can see in the example firmware)

    -Clancy

  • Clancy,

    I want to use UART communication and not LIN ,then what should be the required code settings? can you please provide me the modified hex file for UART communication?

    Thanks,

    -Saurabh

  • Saurabh,

    I don't have a UART communication example ready-to-go, so I'll need some time to prepare it.  I'll give you an update next week.

    -Clancy