Announcement

Collapse
No announcement yet.

New Bipolar Boost TX and Front End

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

  • Communication Protocol with Nextioan

    @Mdtoday, since you have had experience in communication with the Nextion Enhanced Display, I woild like to go over my proposed approach:
    (1) Since the smallest message that can be received from the Nextion is 4 bytes, set the FIFO trigger level of the 16550 Uart to 4. That way we will not be flooded with interrupts.
    (2) when a recv_data nterrupt is received from the uart (4 bytes in the FIFO) issue a read_request to the Uart for 4 bytes.
    (3) depending on the value of the 1st byte issue a read request for the outstanding number of bytes. There is only 1 response where the total length of the message is not known until you parse the complete message and don't think that our application will ever issue the command that will invoke that response. The response is a 0x70 "string data enclosed" which is to a respone to a get <string object >command from the mcu (after all bytes that we are concerned with are received, flush the receive FIFO (don't want extraneouse data hanging around).

    After communications has established between Nextion and our embedded application, issue a "baud=<new baud rate> from the application, change the baud rate in the Uart, and issue a "get baud" (which should elicit a response) to the Nextion to verify we still have communication. From that point we are in our main loop looking for interupt flags from all connected interrupts. When a recv_data interrupt ooccurs, perform the processing listed in steps <1,2,3>, take action based on the data received. When processing interrupts for thr RX and Filters, when appro[riate do a data assignment of the appropriate varioable in the Nextion (e.g. sys0=<0xff,0xff,0xff,0xff> or a0.val=<0xff,0xff,0xff,0xff>). Most of the communication will be assignment commands of target data from our embedded application. The only messages comming from the nextion will be responses to "get commands (in the case of TX/RX parameters, and the event notifications resulting from navigation of some of the pages of the Nextion menus.

    I think that is pretty much it, everything else (the RX/TX and the Nextion application) just merrily go along on their own... after initialization, all our embedded application does is play traffic cop.

    Comment


    • Originally posted by KingJL View Post
      That brings my attention to another question. Will we need another 5V regulated output to supply the Nextion power?
      Yes, I was thinking we would do that.

      Comment


      • Originally posted by KingJL View Post
        I did some checking also... it appears that if the zener of the driver circuit (D13 for theBoost_A_G) is reversed, it will cause this condition also.
        .
        In fact, it very closely follows your condition!
        Wow, yes it does look very much like it... Checked the board again just now and they are mounted the right way.
        Click image for larger version

Name:	Zener orientation.jpg
Views:	1
Size:	81.8 KB
ID:	355718

        Checked zener action and the markings are correct.


        I will grab a blank board an do a continuity check on it.

        Comment


        • Originally posted by Mdtoday View Post
          ... I will grab a blank board an do a continuity check on it.
          Yes, if somehow there is a short around the zener, the output changes to your condition. In fact if there is a short across the whole diode circuit, it will match your condition.

          Comment


          • Originally posted by KingJL View Post
            Yes, if somehow there is a short around the zener, the output changes to your condition. In fact if there is a short across the whole diode circuit, it will match your condition.
            It all looks good JL.

            I'm wondering if the BAT54s I have is not capable of driving enough current to charge the 3.3nf cap?

            Comment


            • Originally posted by Mdtoday View Post
              It all looks good JL.

              I'm wondering if the BAT54s I have is not capable of driving enough current to charge the 3.3nf cap?
              With a 15V 1.5 usec pusle, the max pulse current is < 100 ma in ideal conditions (charging a 3.3n)... well under the max of 300 ma for repeitive pulse current. I don't know what it is, but something is amiss in the diode array of D11, D12, D13.

              Comment


              • @Mdtoday, are the other three drive circuits acting the same?

                Comment


                • Originally posted by KingJL View Post
                  @Mdtoday, are the other three drive circuits acting the same?
                  Yes, all doing the same JL, which leads me to think maybe BAT54S I have loaded are suspect...I purchased Nexperia and ON semi from memory so should be fine.

                  Comment


                  • Originally posted by KingJL View Post
                    With a 15V 1.5 usec pusle, the max pulse current is < 100 ma in ideal conditions (charging a 3.3n)... well under the max of 300 ma for repeitive pulse current. I don't know what it is, but something is amiss in the diode array of D11, D12, D13.
                    Yes, well under the specs.

                    Comment


                    • @Mdtodat, Can you send me a pic of the top side of board for the Boost_A drive circuit... want to see the pulse xformer connections.

                      Comment


                      • Originally posted by KingJL View Post
                        @Mdtodat, Can you send me a pic of the top side of board for the Boost_A drive circuit... want to see the pulse xformer connections.
                        @JL, here is a photo, if there is not enough detail I will re-take.

                        Click image for larger version

Name:	Pulse transformers_1.jpg
Views:	1
Size:	103.8 KB
ID:	355719

                        Comment


                        • Originally posted by Mdtoday View Post
                          @JL, here is a photo, if there is not enough detail I will re-take.

                          [ATTACH]48467[/ATTACH]
                          The pic is great... everything looks good.... Lets make sure we have a problem... The waveform pic of Boost_A_G was sampled on the Gate side of the circuit, correct? The reason i ask is if it was sampled on the secondary side of the diode array it would look like this:
                          Click image for larger version

Name:	Mosfet Driver4.png
Views:	1
Size:	18.7 KB
ID:	355720

                          Look familiar?

                          Comment


                          • Originally posted by KingJL View Post
                            The pic is great... everything looks good.... Lets make sure we have a problem... The waveform pic of Boost_A_G was sampled on the Gate side of the circuit, correct? The reason i ask is if it was sampled on the secondary side of the diode array it would look like this:


                            Look familiar?
                            Yes, that looks very familiar, trust me to pick the wrong side!

                            Thanks JL, apologies for that

                            Comment


                            • Originally posted by Mdtoday View Post
                              Yes, that looks very familiar, trust me to pick the wrong side!

                              Thanks JL, apologies for that
                              No problem... I am somewhat relieved! Can you get a scope pick of the signal at say R27? Then we could see the actual gate drive pulse... need to insure that everything looks good and that we are back on track.

                              Comment


                              • Originally posted by KingJL View Post
                                No problem... I am somewhat relieved! Can you get a scope pick of the signal at say R27? Then we could see the actual gate drive pulse... need to insure that everything looks good and that we are back on track.
                                Ok, will set up for that shortly and post.

                                Comment

                                Working...
                                X