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
Announcement
Collapse
No announcement yet.
DSPIC30F4012 v230 Source Code
Collapse
X
-
Originally posted by moodz View Postyou 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:
-
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.Originally posted by 6666 View PostThanks 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 ?
Leave a comment:
-
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:
-
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.Originally posted by 6666 View PostHi 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
moodz
Leave a comment:
-
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:
-
Originally posted by 6666 View PostAfter 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:
-
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:
-
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:
-
Originally posted by 6666 View PostMy 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:
-
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:
-
Sorry Moodz for thread hijack, I got the pickit3 working now on another pc
back to your project .
6666
Leave a comment:
-
Originally posted by 6666 View PostHi 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:
-
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:
Leave a comment: