Where are PIC16F628(A) programmers & prices available ?
I am FRUSTRATED and you thought I was actually GoodHart LOL I found a lot of advice out there (simple to use and efficient JDM type programmer......no, JDM's rarely work, use MCU.....try this Starter kit....don't use that starter kit, it is inaccurate.....etc. & etc.).
11
answers
|
Answer it!
|
The PicAxe can do that, and play the tune as well!
Download the Programming Editor from HERE, create a new project, and copy the code below into a new project (beware of line breaks).
How do you attach a file to a comment?
Click on the 'Simulate' button and make sure your sound is turned on.
Programming of the chip is via a serial link and done in-circuit. Takes about 20 seconds and you don't even have to unplug the lead to run the program.
I've been in electronics since the early eighties and I've never found a programming environment where the coding / simulation / proving cycle is so simple. The PicAxe was developed for the educational market in UK schools, and I only realised my two boys has been using PicAxe for their tech classes when one of them took over a simple program I was writing.
The PicAxe chip is based on various PICs but with bootstrap code to link to the compiled programs and handle the programming side. They come in all flavours from a (suprisingly powerful) 8 pin package up to full blown 40 pin.
Look at the 2 manuals in the PicAxe site to see the full capabilities. Documentation and support from the forums is excellent.
Look out for Close Encounters of the Curiously Minty Kind - my entry in the LED contest.
Here's the code :-
#picaxe 28x1
symbol Disp = w0
symbol Ctr=B27
symbol aud = 7
'Direction bit HI for output
dirsc=%11111111
'Top of column is B15
'bit 15 4 0
disp = %0110000000000000
'Knightrid
tune aud, 7,($44,$45,$44,$0B,$54,$55,$54,$0B,$44,$45,$44,$4B,$54,$D2,$2C,$EC,$44,$45,$44,$0B,$54,$55,$54,$0B,$44,$45,$44,$4B,$54,$D5,$EC)
Main:
for ctr=1 to 13
disp = disp>>1
pins=b1
pinsc=b0
next ctr
for ctr=1 to 13
disp = disp<<1
pins=b1
pinsc=b0
next ctr
Goto Main
just a thought...
The 16F628A is absoluetly not a direct replacement for the 16F84. It is the replacement only from an "ideal beginners part" point of view as it is cheaper and does more.
The 16F84 has the bare minimum of peripherals, a single 8 bit timer and some ports are about all you get. The 16F628A gives you 3 timers, a comparator, a voltage reference and a USART.
At: Nabble Dot Com
Any help would be appreciated.
![]() |

































