Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 8th March 2008, 12:30 PM   (permalink)
Default Very Noob Questions In PIC

Hi everyone , i m kindda new in using PIC and not familier with it
so i would need everyone helps~

For example, i got a pic with pin RB0/PWM0

RB0/PWM0 => RB0 = Digital I/O ; PWM0 = PWM output 0.
my question is, is this pin serve for either the purpose of Digital I/O or PWM output 0?


As for my 2nd question,
as the 4 x 7 segment led display as show on below,
http://users.tpg.com.au/gramo/Site/multi1.htm
do i have to fix my connection on portC and portD as shown on the diagram? or i can connect it to any port as i like (such as portA or portB)

Basically how to you guys justify which connection is to fix into which pin?
newbieqq is offline  
Reply With Quote
Old 8th March 2008, 03:00 PM   (permalink)
Default

1. Many PIC pins have multiple functions, you can use them anyway you choose.

2. Yep any I/O pin(s) will work.

The datasheets tell all.

Try something simple, pick a pin and try to flash an LED with it. An LED display is popular but experience will help.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 8th March 2008, 03:07 PM   (permalink)
Default

Quote:
Originally Posted by newbieqq
Hi everyone , i m kindda new in using PIC and not familier with it
so i would need everyone helps~

For example, i got a pic with pin RB0/PWM0

RB0/PWM0 => RB0 = Digital I/O ; PWM0 = PWM output 0.
my question is, is this pin serve for either the purpose of Digital I/O or PWM output 0?
Yes. Its use is selected in code.

Quote:
Originally Posted by newbieqq
As for my 2nd question,
as the 4 x 7 segment led display as show on below,
http://users.tpg.com.au/gramo/Site/multi1.htm
do i have to fix my connection on portC and portD as shown on the diagram? or i can connect it to any port as i like (such as portA or portB)

Basically how to you guys justify which connection is to fix into which pin?
You can connect to any port you want, but the code has to take account of it.

For the 7 segments, it makes the code simpler if all the segments are on one port so that all 7 bits can be handled with one instuction.

For individual bits, such as Segment_1 and Segment_2 in your example, it doesn't much matter where they are.

The subject of pin assignment is quite involved, getting more so as the PICs get bigger. Things to consider are:-

What peripherals (e.g. PWM, AD converter etc) that are to be used so will need their pins for those purposes only.

What input levels (TTL / Shmitt trigger) is required

What output load is needed.

What pins are associated, as in the example.

Circuit layout

Whether the peripheral pins can be selected.

Whether code has to be compatible with other layouts.
Diver300 is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Quik PIC Programming kit Krumlink General Electronics Chat 5 27th January 2008 11:27 PM
PIC Questions wmmullaney Micro Controllers 43 19th December 2007 04:30 PM
Capturing and reproducing audio with a PIC Fred.Amoson Micro Controllers 14 14th December 2007 08:21 PM
Problems switchin relay with PIC Andy1845c General Electronics Chat 5 17th November 2007 06:13 PM
High ADC sampling rate PIC, 18F needed? bananasiong Micro Controllers 24 28th October 2007 12:13 PM



All times are GMT. The time now is 02:32 AM.


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