![]() |
![]() |
![]() |
|
|
|||||||
| 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. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Hi everyone
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? |
|
|
|
|
|
|
(permalink) |
|
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. ![]() |
|
|
|
|
|
|
(permalink) | ||
|
Quote:
Quote:
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. |
|||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |