Announcement

Collapse
No announcement yet.

DSPIC30F4012 v230 Source Code

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

  • #16
    Schematic is here ....

    http://www.geotech1.com/forums/showp...4&postcount=53

    Comment


    • #17
      Originally posted by moodz View Post


      [ATTACH]16622[/ATTACH]

      moodz
      A lot of reading inside, thank you very much.

      I need pre-programmed PIC.
      Can you sell me one with your intellectual property inside (PayPal as money transfer)?

      Comment


      • #18
        It's very interesting and i would like buy you one programmed chip,i can pay by paypal tell me your price for shipping to France,thank you.

        Comment


        • #19
          dear friends ... I am happy to ship you a chip if you really cant get hold of one however I feel that if you invest in a pic programmer there will be more benefit as I am sure there will be many small code changes in the near future that will make shipping a new chip each time rather inconvenient if not costly as well. If you have a programmer all you need is the hex file.

          The UNIPI chip can be re-programmed even if soldered into a board via the ICSP interface on the schematic. ( see programmer in position below )

          I use the pickit2 programmer ( pickit3 is later release but would be OK also ). Of course there are other pic programmers available. The pickit2 is connects to your windows computer via USB and is very easy to use ... also powers your target board with 5 volts if required. The UNIPI chip uses the ICSP interface as a serial port and the pickit2 can be used as a serial port also .. so you can talk to the UNIPI chip using the pickit2.

          You should be able to get a genuine pickit2 for about $40 ... there are clones on ebay for less than $20

          The blank dspic30F4012 should be about $5 depending on suppliers.

          Some of the features I have coming up are better audio, active damping, descrimination ( maybe ) Multiple timings saved to eeprom for fast mode switching etc etc ...

          moodz.


          Click image for larger version

Name:	UNIPIv230_pickit.JPG
Views:	2
Size:	119.9 KB
ID:	329567

          Click image for larger version

Name:	pickit2_programmer.JPG
Views:	1
Size:	55.3 KB
ID:	329568

          Comment


          • #20
            .......all you need then is the hex file

            Metal23.hex.zip


            ...ah the joy of hex.

            Comment


            • #21
              Thank you Mr Moodz
              I would like to give this a try, been looking for the parts on the net
              and Jaycars.
              Plenty of 1602 backlight HD44780 lcd's on ebay

              Where are you sourceing your 30F4012 in Melbourne if not on ebay ?

              This seems to be your proto board, so vero board should be ok
              cheers
              6666


              Comment


              • #22
                ...parts I used.

                I got my bits from www.element14.com

                dpsic30F4012 part no : 1294856

                LCD display part no : 1671498

                Rotary Enc part no : 1653380

                ... NOTE .... If you have a PicKit2 / 3 programmer you dont need to wire up the rotary encoder or LCD .... the code will not break if you dont wire these in .... you can use the inbuilt serial comms in the PicKit to talk to the UNIPI code and program / save pulse timings to eeprom. Just use the UART selection under TOOLS tab in PicKit programmer with the programmer dongle connected to the ICSP port as per schematic. Once the settings have been made in the serial mode and saved to eeprom ... they will reload everytime the chip is reset / powered on ... you wont need the serial again ( unless you want to make changes )

                ALSO NOTE ... you must wire the ZERO button though .... the code expects you to press this once to commence operation after first power up .... if people dont like this I will remove this "feature"


                moodz.

                Comment


                • #23
                  Hi moodz
                  thanks for the extra info
                  I see that part number is for the DSPIC30F4012-30I/SP

                  i see that there is also a 30F4012-20I/SP

                  would that work to ?

                  With your push button ZERO feature, I am sure it has a use
                  but would it be possible to remove it please
                  as I can see the possibility of some confusion
                  creeping in, it would be nice to have it power on and go.

                  Thanks
                  cheers
                  6666

                  Comment


                  • #24
                    Originally posted by 6666 View Post
                    Hi moodz
                    thanks for the extra info
                    I see that part number is for the DSPIC30F4012-30I/SP

                    i see that there is also a 30F4012-20I/SP

                    would that work to ?

                    With your push button ZERO feature, I am sure it has a use
                    but would it be possible to remove it please
                    as I can see the possibility of some confusion
                    creeping in, it would be nice to have it power on and go.

                    Thanks
                    cheers
                    6666
                    The 201 chip is technically the slower chip ( 20 mips ) however I have heard it will run at the faster speed ( 30 mips ) ... I have not tested it though.

                    I will knock out the push button startup feature very shortly.

                    Regards,
                    moodz.

                    Comment


                    • #25
                      Ok so we keep away from the 20I thanks

                      Comment


                      • #26
                        About the pulse outputs of the UNIPI.

                        The TX pulse drives the mosfet driver. Is this pulse a positive pulse?
                        What would be a good level shifter or translator?

                        The same question also for the sample pulses. If they need to be level shifted or translated, and we want to keep the precision timing, we need to have a fast circuit.

                        Does anybody have a recommended circuit?

                        Monolith

                        Comment


                        • #27
                          positive pulse

                          The pulse is positive 0 to 5 volts.however because you can sample at any time during tx or tx period you can use either type of mosfet ...think about it

                          to invert the sample pulse you set the off time to occur before the on time for each sample pulse
                          moodz.

                          Comment


                          • #28
                            Originally posted by moodz View Post
                            The pulse is positive 0 to 5 volts.however because you can sample at any time during tx or tx period you can use either type of mosfet ...think about it

                            to invert the sample pulse you set the off time to occur before the on time for each sample pulse
                            moodz.
                            That was badly explained ..... should read because you can sample at any time across each TX cycle either the high level or the low level can be used to drive a mosfet.

                            Comment


                            • #29
                              Originally posted by moodz View Post
                              That was badly explained ..... should read because you can sample at any time across each TX cycle either the high level or the low level can be used to drive a mosfet.
                              Thanks for the explanation. So I can use the pulse either way 0 to 5V and 5V to 0. The timing resolution is so high that I can compensate for any switching delay generated by the level translator.

                              Still, to take a 3us sample I would want the switching delay to be less than 100ns on and again off. This means a fairly fast level translator. I need to look at some datasheets and search for possible circuits.

                              Monolith

                              Comment


                              • #30
                                Originally posted by Monolith View Post
                                Thanks for the explanation. So I can use the pulse either way 0 to 5V and 5V to 0. The timing resolution is so high that I can compensate for any switching delay generated by the level translator.

                                Still, to take a 3us sample I would want the switching delay to be less than 100ns on and again off. This means a fairly fast level translator. I need to look at some datasheets and search for possible circuits.

                                Monolith
                                Correct ... I have played with sample pulses at 1us ...no problemo.

                                regarding the mosfet driver ... depends if they are P or N I suppose. I am no Microchip fanboy but they do make a fairly good range of driver chips .... there are other ones out there.

                                eg TC4421

                                • High Peak Output Current: 9A
                                • Wide Input Supply Voltage Operating Range:
                                - 4.5V to 18V
                                • High Continuous Output Current: 2A Max
                                • Fast Rise and Fall Times:
                                - 30 ns with 4,700 pF Load
                                - 180 ns with 47,000 pF Load
                                • Short Propagation Delays: 30 ns (typ)
                                • Low Supply Current:
                                - With Logic ‘1’ Input – 200 μA (typ)
                                - With Logic ‘0’ Input – 55 μA (typ)
                                • Low Output Impedance: 1.4Ω (typ)
                                • Latch-Up Protected: Will Withstand 1.5A Output
                                Reverse Current
                                • Input Will Withstand Negative Inputs Up To 5V
                                • Pin-Compatible with the TC4420/TC4429
                                6A MOSFET Driver

                                moodz.
                                Last edited by moodz; 09-21-2011, 06:57 AM. Reason: typo

                                Comment

                                Working...
                                X