Announcement

Collapse
No announcement yet.

DSPIC30F4012 v230 Source Code

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

  • 6666
    replied
    I have programed my chip with H20111018.zip
    I got the message program verify
    so I assume the chip is ok
    knocked up the cct on breadboard (with and without lcd), but at 4.8 volts
    it only draws around 8 ma, and no pulses with or without lcd

    the breadboard connections all seem firm and ok
    not sure what to try next, maybe make a real pcb

    Leave a comment:


  • 6666
    replied
    cool thanks moodz, will do asap

    Leave a comment:


  • moodz
    replied
    Originally posted by moodz View Post
    you got it ... the chip is running a little beyond spec at this speed and power consumption is up but you do get nice timing steps of 25 nanoseconds and faster processing.

    Here is the hex file for 2 khz TX default and 50 us tx pulse period.
    Unless you have the serial port or LCD you wont be able to adjust the sample pulses tho.
    moodz

    H20111018.zip

    Leave a comment:


  • moodz
    replied
    Originally posted by 6666 View Post
    Thanks for the update
    I went back over the other thread and realised I missed this about the 4012 'DOH"

    "I have added a 10 Mhz crystal to both the 4011 and the 4012 "

    my LCD has arrived but no switches.
    10mhz xtal like this ?
    you got it ... the chip is running a little beyond spec at this speed and power consumption is up but you do get nice timing steps of 25 nanoseconds and faster processing.

    Leave a comment:


  • 6666
    replied
    Thanks for the update
    I went back over the other thread and realised I missed this about the 4012 'DOH"

    "I have added a 10 Mhz crystal to both the 4011 and the 4012 "

    my LCD has arrived but no switches.
    10mhz xtal like this ?
    Attached Files

    Leave a comment:


  • moodz
    replied
    Originally posted by 6666 View Post
    Hi moodz
    yes its a comfy work bench
    well I connected only pins 13,20,28 and 8,19,27 and 1 and 10,11,12 and 6,7

    but no pulses,

    I used the first hex code no xtal just to get it going
    but i see you say it needs the lcd and rotary switch to set the tx pulse and samples from zero.
    I was just about to ask if the code has default values but you read my mind

    if its possible to have a default code that would be very handy thanks


    I used the hex code from post 20
    and remembered this


    "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"

    just dabbed an earth on pin 12 (the zero button) but no pulses, guess its set to zero in code


    regarding the 10 meg xtal, when did the 4012 code need that ?, I know you changed the 4011 code for the xtal
    I have not tried the TX HI and LOW files yet
    6666
    The latest hex code does not need the zero button press. The satlock button is discontinued ... you need it for the crystal connection. The crystal was added due to TX jitter ... the default TX period is set to 0 after flashing so you wont get any pulses ... I will investigate an update .. you should think about getting an LCD and a rotary or an RS232 interface ..... or you cant change the sample pulse timing.

    moodz

    Leave a comment:


  • 6666
    replied
    Hi moodz
    yes its a comfy work bench
    well I connected only pins 13,20,28 and 8,19,27 and 1 and 10,11,12 and 6,7

    but no pulses,

    I used the first hex code no xtal just to get it going
    but i see you say it needs the lcd and rotary switch to set the tx pulse and samples from zero.
    I was just about to ask if the code has default values but you read my mind

    if its possible to have a default code that would be very handy thanks


    I used the hex code from post 20
    and remembered this


    "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"

    just dabbed an earth on pin 12 (the zero button) but no pulses, guess its set to zero in code


    regarding the 10 meg xtal, when did the 4012 code need that ?, I know you changed the 4011 code for the xtal
    I have not tried the TX HI and LOW files yet
    6666

    Leave a comment:


  • moodz
    replied
    Originally posted by 6666 View Post
    After a lot of messing around I have finally got a verify complete on moodz hex file on a 4012

    The pickit3 is plugged into a direct usb port and I had to breadboard an adaptor for the 4012 as the icsp board does not come with a 28 pin zif socket for a 4012. I have ordered a nice 28 pin adaptor off fleabay.
    Now to see if any pulses are coming out of the chip.

    Thats the most comfortable workbench I have seen for a while ... you may have a problem seeing pulses as you have no LCD display or rotary to set the TX period which I think is set to 0 after you program the chip. The last hex file published needs the 10 Mhz crystal also. There is a serial port however it works only with the pickit2 UART tool .... the pickit3 does not have this feature as far as i know. I suppose I could publish a hex file with "default" Tx and sample pulses set so you can test ... I will look into it tonight.

    moodz.

    Leave a comment:


  • 6666
    replied
    After a lot of messing around I have finally got a verify complete on moodz hex file on a 4012

    The pickit3 is plugged into a direct usb port and I had to breadboard an adaptor for the 4012 as the icsp board does not come with a 28 pin zif socket for a 4012. I have ordered a nice 28 pin adaptor off fleabay.
    Now to see if any pulses are coming out of the chip.
    Attached Files

    Leave a comment:


  • 6666
    replied
    Got hold of some 4012 chips
    moodz what are you using for the ICSP board with your pickit2 ?

    would you agree these are the right connections ?
    28 pin VPP=1, VDD=20/13, VSS=19/8, PGD=17, PGC=18

    Leave a comment:


  • mickstv
    replied
    Originally posted by 6666 View Post
    My project has ground to a halt, caught between a rock and a hard place
    I paid for my 4012 chips on the 21 sept and according to tracking number
    they have not left the usa yet and its now the 13th of Oct
    Avoid an fleabay seller called audiosector they are very very slow posters.


    Cancel the Ebay and get your money back.

    Then get a couple from Element14 they might cost a bit more but post if free and you can bet they will turn up quickly.



    Mick

    Leave a comment:


  • 6666
    replied
    My project has ground to a halt, caught between a rock and a hard place
    I paid for my 4012 chips on the 21 sept and according to tracking number
    they have not left the usa yet and its now the 13th of Oct
    Avoid an fleabay seller called audiosector they are very very slow posters.

    Leave a comment:


  • 6666
    replied
    Sorry Moodz for thread hijack, I got the pickit3 working now on another pc
    back to your project .
    6666

    Leave a comment:


  • Qiaozhi
    replied
    Originally posted by 6666 View Post
    Hi all
    thanks for all the ideas
    have tried them all, but no joy
    I am now onto shure electronics
    to see if they can help me to get it to work
    might be a dud
    Cool circuits, tips, techniques, PCB methods, test equipment, etc.

    Leave a comment:


  • 6666
    replied
    Hi all
    thanks for all the ideas
    have tried them all, but no joy
    I am now onto shure electronics
    to see if they can help me to get it to work
    might be a dud

    Leave a comment:

Working...
X