Jump to content
  • 0

Pattern Generator as a Transmitter and Logic Analyzer as a Receiver


Lesiastas

Question

Greetings! 

I'm working on a project using the Analog Discovery 2. I observed that the Pattern Generator can be used as a Transmitter and the Logic Analyzer can be used as a Receiver, if used properly. 

Here's the VB Script that I've been working on: AD2_Time_Testing.rar

The VB Script does the following:

1). ASCII data is entered.
2). The algorithm in the code will convert it into binary to be transmitted by the Pattern Generator.
3). The Logic Analyzer will receive the bits in Record Mode.
4). The UART decoder algorithm will convert the bits received back into ASCII character.

The result that I'm expecting is this:

"U" ---> (Converted into Binary) ---> (Transmitted by the Pattern Generator) --> (Bits received in Record Mode) --->(BIts will be converted back in ASCII) ---> "U"

The actual result that I'm getting is this: (DIO#0 (Tx) and DIO#2 (Rx) was used)

Data that is to be transmitted:

image.png.c4d0171466b97bd34ea64ba79c24bc67.png

I connected DIO #0 to DIO #2 and a UART controller. Data was sucessfully transmitted and it was received by the UART controller:

image.png.0a8a08e83b537d26cc61d5af75ce8b3e.png

I also observed the bits returned by the FDwfDigitalInStatusData became like this:

image.png.6199e0ea84e6654afd0511ab7a8d3a66.png

I think because of this change the UART Decoder algorithm cannot process it properly. That's why I'm getting this result:

image.png.236ff9a7de417dc70c1b3208103f6f51.png

The output of DIO0Mesg should be "U" as well. Any advice regarding this?

Best regards,
Lesiastas

AD2_Time_Testing.rar

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...