Announcement

Collapse
No announcement yet.

Bipolar PI design

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ah, that's a code-writing artifact that I haven't removed.
    I forgot it.
    The initial code had more functions.
    Now it has only 2 modes of operation: "Gen" and "Sweep".
    But the idea was to test the oscilloscope and not the generator.

    Comment


    • Originally posted by ivconic View Post
      New toy, arrived yesterday:

      What model of USB oscilloscope is it?

      Comment


      • https://www.aliexpress.com/item/1005...Cquery_from%3A





        Comment


        • Click image for larger version

Name:	podredba na failove.jpg
Views:	142
Size:	10.5 KB
ID:	435590 Hi, Carl, how should the BipolarPI source code be arranged? I do it like this, but it gives me an error that it cannot find common.h. I also tried manually specifying the folder. What advice would you give me? Thanks.

          Comment


          • I don't understand, file order does not matter. Just make sure they are all listed in the project.

            Comment


            • Carl, what compiler are you using?Thanks.

              Comment


              • XC8?

                Comment


                • MPLabX with XC8

                  Comment


                  • Still waiting for the "historical" pcbs to arrive!
                    Hopefully within the next week... in the meantime I'm wasting my time on nonsense.
                    ...

                    ​PIC is much easier to program with Pickit2 and associated "uploading" software.
                    Once I build the original, it makes sense to continue porting the code to the Atmega.

                    Comment


                    • Hi, Carl, I'm waiting for my boards to arrive, but I want to try another pulse after testing the original, but can you tell me where in the code I should change only one pulse on the TX to be LOW, and I'll need this to test another generator, but I'll also use your circuit after it.
                      Thanks.

                      Comment


                      • Originally posted by algan View Post
                        can you tell me where in the code I should change only one pulse on the TX to be LOW
                        What do you mean? You want to invert the TX pulse?

                        Comment


                        • Currently the Txn and TxP pulses are like in the first picture.
                          I would like to change one of the pulses to be in the opposite direction like the second picture, but I don't know which part of the code I need to change to get such a result.

                          Comment


                          • Hello
                            I want to try some of this too.
                            BIPOLAR.rar
                            Attached Files

                            Comment


                            • In the init code you will want to initialize one of the pulses to be 'On'.

                              Click image for larger version

Name:	image.png
Views:	114
Size:	138.5 KB
ID:	435672
                              If, for example, you want an inverted TxNPin you would do this:

                              TxNPin = On;

                              Then in the interrupt code change the pulse state of TxNPin:

                              Click image for larger version

Name:	image.png
Views:	105
Size:	227.8 KB
ID:	435673
                              In the 'case 0' section change it to

                              TxNPin = Off;

                              and in the 'case 1' section change it to

                              TxNPin = On;

                              Since it can be confusing to say the pulse is 'Off' when you are turning it on you might want to change this. In common.h you can add the following:

                              #define High 1
                              #define Low 0

                              Then you can say

                              TxNPin = Low;
                              ​​TxNPin = High;
                              ​​
                              and it will make more sense.

                              Comment


                              • Solution -TC4428CPA
                                Attached Files

                                Comment

                                Working...