PDA

View Full Version : New member advice please



BobM
- 21st April 2008, 03:18
Hi
I am new to all of this but here goes :)

I am considering building a small PIC based project.
Original specs use a 16C84 microcontroller.
I am wondering what exactly is involved with migrating to a 16F628A.
-------------------------------------------------------------------
Second question.................
Original specs use an external 4MHz crystal.
Should one do away with that and use the internal 4MHz oscillator or (perhaps for stability reasons) should one stick with the original design?

If it is OK to use the internal oscillator could you show me the one-liner which chooses the 4MHz internal oscillator and explain exactly how to interpret the code

Many thanks
Bob
New Zealand

Archangel
- 21st April 2008, 04:34
Hello Bob in New Zealand, Welcome !
I have never used a 16C version, I have used a 16F84 however. The biggest thing I see is 16F628A has comparators on PortA, turn them off with CMCON = 7 . As fas as using INTOSC or XTAL, or a Resonator, depends upon how critical your timing needs are, if you are using serial outs you may not want to use INTOSC.
look at these threads:
http://www.picbasic.co.uk/forum/showthread.php?t=543
http://www.picbasic.co.uk/forum/showthread.php?t=561
JS

BobM
- 22nd April 2008, 03:17
Thank's Joe