Announcement

Collapse
No announcement yet.

DSPIC30F4012 v230 Source Code

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

  • 6666

    I'm going with UNIPI_DS_230 REV003A for now, it'll be on it's own PCB with a combination of smd's and throug the hole parts, i'm going to use jumpers between different sections so the testing will easy.

    i'm wondering if paul going to use the "THAT" op amp on his next revision, or replace it with the mcp3903.

    philip

    Comment


    • Originally posted by 6666 View Post
      Hi
      I have had a 4012 running for about 1 hour with no LCD connected
      still was pulsing ok
      I see on the other thread your uC is drawing 250 ma
      maybe moodz could think about reducing the clocking a bit, for a xtal that's easy to get
      (more calculations )
      or we need a switch to turn off the lcd
      The uC is over clocked to allow the fine timing. The internal PLL is running at 16x ...so the 10 Mhz crystal provides a 160 MHz cpu clock ( which at 4 clocks per instruction provides 40 MIPs ). The chip will run quite hot at this speed. However you do get alot of processing power and the timing steps are 25 ns.

      The tradeoff is performance vs power saving ... I prefer to leave optimising power saving till after functionality is completed.

      moodz

      Comment


      • Hi Moodz
        yes horse power vs economy
        I did not measure the current being drawn by my 4012
        cheers

        Comment


        • Hi
          Has anyone here made a lay file for this project so i can make a pcb or even a black and white print would do.
          I prefer through hole if you got one, if not smd will do, otherwise have to do my own.

          Thanks in advance

          Dave

          Comment


          • Late last night I revisited this 4012 project with the aim of trying to find out the minimum number of leg and power connections to get the chip working so it can be tested for pulses.

            With the chip loaded with the default hex, and the 10Meg Xtal on pins 9-10,
            here goes, pins 20-28, and 19-27, thats it.

            A word about the Xtal, I could not get a small 10Meg watch Xtal to work, but the larger 13mmx10mm works fine.

            http://www.geotech1.com/forums/attac...1&d=1321413350
            Attached Files

            Comment


            • I should also mention the Xtal capacitors to ground,
              now onto making the LCD work.
              Attached Files

              Comment


              • FINALLY

                after a long time,
                got this project to fire up on the bench, with the LCD,
                only on bread board, but it displays past bootup, and still is giving pulses
                no encoder just yet, so still need to try and talk to chip,
                next a pcb of some sort.
                Thanks Moodz

                cheers
                6666

                some pics for your viewing pleasure
                Attached Files

                Comment


                • Originally posted by 6666 View Post

                  A word about the Xtal, I could not get a small 10Meg watch Xtal to work, but the larger 13mmx10mm works fine.
                  Hi 6666, good to hear you got the PIC running. I am still working on mine. Have taken your advise and purchasing a genuine PicKit3 as my attempt at the self made programmer failed.

                  Regards to the smaller size crystal not firing the PIC.....Did you try coupling the crystal with lower values in Pico Farad, say 5pf-5pf. Wanting to know as i have over 400 crystals of all types and values and some are of the smaller type. Will try myself when i get around to firing the PIC up with crystal if you have not already done so.

                  Cheers Sid

                  Open Project Code of Conduct V3.0 Participant

                  Comment


                  • Hi Sid
                    I hope you mean pickit2 it has more options uart etc.
                    With the xtal I did not try other values of caps with the watch xtal
                    I also have a xtal collection but i got the 10x13 xtal from jaycar
                    cheers
                    6666

                    Comment


                    • Had a bit more of a play with this project today , if you place the "select" 10k r on pin 11 and dob on earth on pin 11 you can cycle through the menu.
                      The rate at which you dob on the earth will display different parts of the menu, if you dob slowly you get the main values, if you dob quickly you get sub menus it seems, by simply cycling through the menu with just dobing the earth on seems to have altered some of the values.
                      6666
                      Attached Files

                      Comment


                      • Hi 6666, interesting and good to see it working.

                        Having difficulty deciding how to go about prototyping sub circuits for (field testing), Instead of making new sub boards the layout will be user friendly for easy circuit changeovers and modification without soldering......so for now....

                        I am in the process of working out a dedicated customised plug-in prototyping board 150mm x 150mm which is to be designed for ease in substituting pre built sub modules for field testing multiple designs in one outing for best performance, instead of multiple time consuming individual field tests which are done otherwise.

                        It will include switches, connectors, Lcd display, a universal Power supply plug in module and Moodz great and helpfull UniPi timing circuit for now.

                        Provisions will be made for extra more complex circuits for future use and also i am looking into providing space for most PIC'S available and a larger display than the 16 x 2. Simply by plugging in new PIC's and necessary components on a sub module.

                        I feel the need for something like this as i find it frustrating when altering circuits which involves more time in soldering/re-soldering and also i find seperate boards made up becomes a messy and noisy overall circuit to deal with.

                        Each sub-section will have multiple power rails going to it that can be used simply by placing the required link on the correct voltage that is required. The links i will use for the power levels are the ones you find in computers.

                        Most important is each section will have the option to be shielded from the next to reduce external EMI in test circuits and also provision for decoupling caps to be placed in sections as required.

                        Pretty much no soldering unless a component with larger mounting requirements is needed, then some soldering may be required, but overall it will assist in quick circuits built up, ease in field testing multiple circuits in one go and no need for etching boards all the time until the best known circuit is achieved for the individuals requirement, then a final board can be made.

                        Will post a pic of it tomorrow what i am proposing and see if i can have some input to its validity.

                        Cheers Sid
                        Last edited by sido; 11-26-2012, 12:04 PM. Reason: typo

                        Comment


                        • Originally posted by moodz View Post


                          [ATTACH]16622[/ATTACH]

                          moodz
                          Hi,
                          I've for a while been trying to make ths project work, but after compiling this code I get a warning message on PicKit "Warning: Some configuration words not in hex file."
                          Any recommendation on how to overcome that?
                          many thanks
                          XiX

                          Comment


                          • Originally posted by xix View Post
                            Hi,
                            I've for a while been trying to make ths project work, but after compiling this code I get a warning message on PicKit "Warning: Some configuration words not in hex file."
                            Any recommendation on how to overcome that?
                            many thanks
                            XiX
                            Hi XiX .. thats a warning not a fail ... depending on which ide you are using the defaults will be used. Does the code run ? ( always a good indicator ).

                            moodz.

                            Comment


                            • Thanks for the reply, however I cannot make it work using MPLAB IDE v8.89.
                              By default I have the option "Configuration bits set in code" on. Do I need to set specific configuration bits there?
                              Many thanks
                              XiX

                              Comment


                              • Finally I managed to put it working!!!
                                The problem was related with wiring. I've missed the connection between LCD R/W (pin 5) to the ground
                                Regards,
                                XiX

                                Comment

                                Working...
                                X