Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 3rd April 2008, 06:00 PM   (permalink)
Default Questions about PIC16F628

Hi,

Back to PIC, I've got some questions:

1- In the PIC name PIC16F628-20/P, what is 20/P stand for? Speed or memory?

2- Is it possible to run more than one Delay subroutine at the same time for different parts of the program?

3- Can i assign all the PIC16F628A pins as output ( except for VCC & Gnd )

4- In my programmer, the ICSP pins are marked with the pin names, do I have to connect them directly to the PIC pins ( If I want to do in circuit programming )

Thanks
__________________
Its what your friend in Your mind, what you in your friends mind
aljamri is offline  
Old 3rd April 2008, 06:06 PM   (permalink)
Default

20 = 20MHz
P = Plastic
I = Industrial

2. yes, you'll probably need timers / interrupts.

3. No MCLR (RA5) is input only, RA4 may be open collector output on some PICs

4. yes you connect directly to the PIC pins for ICP
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 3rd April 2008, 07:04 PM   (permalink)
Default

Thanks for your fast reply, I'm using 16F628A can i ask for more:

Quote:
Originally Posted by blueroomelectronics
20 = 20MHz
Is this maximum i can drive it externally? because i knew that its internal Clock is 4MHz ( Thanks to N.Goodwin ) am i right ?


Quote:
Originally Posted by blueroomelectronics
2. yes, you'll probably need timers / interrupts.
software or hardware ?

Quote:
Originally Posted by blueroomelectronics
3. No MCLR (RA5) is input only, RA4 may be open collector output on some PICs
so maximum of 14 outputs can be used ?

Quote:
Originally Posted by blueroomelectronics
4. yes you connect directly to the PIC pins for ICP
With the circuit supply ON?
__________________
Its what your friend in Your mind, what you in your friends mind
aljamri is offline  
Old 3rd April 2008, 08:21 PM   (permalink)
Default

20MHz is the maximum clock frequency for the 16F628A

Timers and interrupts are all built in peripherals. So you just program them to work the way you want them to. You can simulate timers & interrupts with the MPLAB simulator.

15.5 outputs, the open collector is still an output but it can only pull low.

It can have its own power or depending on the programmer the programmer may supply power.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 4th April 2008, 12:18 AM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
20MHz is the maximum clock frequency for the 16F628A
what about overclocking it with bigger crystal?
whiz115 is offline  
Old 4th April 2008, 12:37 AM   (permalink)
Default

Quote:
Originally Posted by whiz115
what about overclocking it with bigger crystal?
Works fine, but don't count on it working on every chip, or being reliable.
http://www.google.ca/search?q=pic+overclocking
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is offline  
Old 4th April 2008, 01:02 AM   (permalink)
Default

Better to use a fater PIC. How much did you plan to overclock it by?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 4th April 2008, 11:51 PM   (permalink)
Default

about 5 MHz
whiz115 is offline  
Old 4th April 2008, 11:54 PM   (permalink)
Default

Quote:
Originally Posted by whiz115
about 5 MHz
Try it and see. It won't hurt anything. All that can go wrong is that it might not work. It will run a bit warmer and consume a little more current. Neither will likely be a problem.

EDIT: Just tried a 25MHz on my 16F877 with the GLCD. No go. Went back to the 20MHz and it's happy again. The 25 might need different caps or some small changes to the program. I didn't test, as I'm busy doing different things right now.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================

Last edited by futz; 5th April 2008 at 12:02 AM.
futz is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Radio questions Tchaikovsky01 Electronic Projects Design/Ideas/Reviews 2 3rd October 2007 08:06 AM
877A to DAC (MCP4922)... SPI questions. ChemE Electronic Projects Design/Ideas/Reviews 1 8th June 2007 04:22 PM
PIC16F628 to PIC16F84 kasamiko Micro Controllers 2 5th May 2005 05:27 PM
Exam tomorrow...help with questions?? petesmc General Electronics Chat 5 14th June 2004 02:17 PM
Electronics Pre-Test questions Mike_07 General Electronics Chat 0 13th November 2003 03:22 AM



All times are GMT. The time now is 09:17 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker