![]() | ![]() | ![]() |
| |||||||
| 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. |
![]() |
| | Tools |
| | #31 |
|
What MOSFETs are you using? What current are you passing through them? The chances are you don't even need logic level MOSFETs as they will be alright at low currents with a low gate voltage. Check out the datasheet.
__________________ I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong. Please ask on the open forum if you have a question and I'll be happy to help, if I know the answer. | |
| |
| | #32 | |
| Quote:
The last 10% of the project takes 90% of the total project time.
__________________ Please post questions to the forums. PM's are for personal communication. BCHS/3v0's Tutorials Junebug USB PIC programmer kit., USB Bit Whacker, The 15 Minute Printed Circuit Board! (+drill time) | ||
| |
| | #33 | |
| Quote:
Excuse me if it is a stupid question, but with which software do you design these? They look REALLY nice... Thank you | ||
| |
| | #34 |
| I have changed the IDEA Now the Idea is: Using PIC16F877A. Clock will show the "Time And Date And Day And Temperature(later) also" Now i am working on Schamatic... I will post as it will complete. | |
| |
| | #35 |
|
Day-of-week may be difficult to display on 7-segment displays. I thought about using 7 discrete LEDs for one project (below). Temperature, or Outside Temp' and Inside Temp' display modes is a good idea. I thought about adding it to my 16F88 clock using one-wire DS18B20 temperature probes since I have 3 pins left over (grin). You need a 40 pin 16F877A? (drawings were done using drawing tools in Excel 2000) Last edited by Mike, K8LH; 18th May 2007 at 08:39 AM. | |
| |
| | #36 |
|
I have Complete my Design. Now i am using PIC16F877A. 20MHz Crystel. I am not enough expert in Assembly. I have write small program like blinking LEDs in Assembly but never do any big project with it but now i an going to program this project in Assembly. ![]() If there will be some problem in programming in Assembly i will ask u.. I mean it is only possiable with ur help. What u say, I should use Two seprate crystal, one for PIC clock Frequnecy and one for Clock TICK. OR Only one crystal For both Purpose.. Plz give me a right Direction. (Which Timer I use for which purpose i mean For Scaning purpose which Timer or For Timer TIck Which Timer) I request to Administator.. "Plz delete all post from above this POST".. I was going to start a new Thread but i not started. I don't want to listen huge on my this request. Remain Focus on Project in this thread. Thanks Last edited by Ayne; 18th May 2007 at 09:00 AM. | |
| |
| | #37 | |
| Quote:
| ||
| |
| | #38 | |
| Quote:
| ||
| |
| | #39 |
|
I use a 1 msec PWM period and I 'scan' the display columns using that 1 msec Timer 2 interrupt. The displays are blanked when the PWM signal is high at the beginning of each interrupt cycle and that's when I borrow the column driver lines RB1 and RB2 to load the MIC5821 shift register. One display column is turned on when the PWM signal goes low. Varying the PWM duty cycle between 2% and 100% provides full fade-to-black brightness control from 98% to 0%, respectively. The interrupt driver (listing below) uses 12 instruction words plus a few instructions later on to setup the SEGDAT and COLPOS variables for the next 'scan' interrupt cycle. You don't see anything in the driver code for brightness control because it's pretty much an invisible background process. Simply change the CCPR1 duty cycle register at any time in your Main program to adjust display brightness. The green area in the drawing below is the portion of the digit or column scan interval where the display is "on" (during the PWM "off time"). ![]() Code: ;
; The seven LED columns are 'scanned' one at a time at 1-msec
; interrupt intervals for an overall 14.3% LED duty cycle and
; 142.85-Hz refresh rate...
;
; A minimum PWM 'on' time of 2% guarantees a minimum window
; of 20-usecs (80 instruction cycles) at the beginning of
; each interrupt cycle where PWM drives the <OE> input high
; (display off)... This allows me to reuse the RB1 and RB2
; column driver lines temporarily as '5821 <DAT> and <CLK>
; lines to load the '5821 (without messing up the display)
; before RB1 and RB2 resume their column driver duties when
; PWM drives <OE> low (display on)...
;
; The 2% minimum PWM 'on' time limits maximum brightness to
; 98% but the 2% loss of brightness is inperceivable
;
ISR_LED
movlw d'8' ; |B0
movwf TEMP ; serial bit count |B0
ISR_Load
bcf SERCLK ; preset '5821 CLK line lo (RB1) |B0
bcf SERDAT ; preset '5821 DAT line lo (RB2) |B0
rlf SEGDAT,F ; shift data bit into Carry |B0
skpnc ; a '1' bit? |B0
bsf SERDAT ; yes, set SERDAT line to 1 |B0
bsf SERCLK ; clock data bit into the '5821 |B0
decfsz TEMP,F ; all 8 bits sent/loaded? |B0
goto ISR_Load ; no, branch and do another |B0
;
; now setup Port B column drivers before PWM drives the '5821
; <OE> pin low to turn on the segment driver outputs & display
;
; COLPOS variable cycles through the following fixed values
; one interrupt at a time to 'scan' the display and switches;
;
; 00000010, column 1, inverted 11111101
; 00000100, column 2, inverted 11111011
; 00001000, column 3, inverted 11110111
; 00010000, column 4, inverted 11101111
; 00100000, column 5, inverted 11011111
; 01000000, column 6, inverted 10111111
; 10000000, column 7, inverted 01111111
;
ISR_Column
comf COLPOS,W ; invert bits (only 1 bit low) |B0
movwf PORTB ; setup the column drivers |B0
;
Last edited by Mike, K8LH; 2nd December 2007 at 01:43 PM. | |
| |
| | #40 |
|
Ah i think i see what your doing: When the PWM goes high 1. Set MIC5821 output to off (linked to PWM signal) 2. Clock in the required 7-seg code into the MIC5821. 3. Enable the next digit RBx line. When the PWM goes low, the digit is shown. All other digits are off. Repeat for each digit. This means that each display is lit up in turn, and is on for 1/7th of the total time required to show all 7 digits as they take it in turn. In that case, does the current to the display have to be 7 times greater than the normal If ? E.g. a 7-seg element may be rated at 25mA, so it should be driven at 175mA ? Last edited by kybert; 2nd December 2007 at 08:43 PM. | |
| |
| | #41 |
|
Yes, that's what it's doing. I wish I could have explained it as well. You'll find 5 to 10 ma 'average' current (35 to 70 ma 'peak') provides plenty of brightness but the circuit is certainly capable of driving the displays with 20 ma 'average' current if you need to view the displays in a brightly sunlit room. | |
| |
| | #42 | |
| Quote:
__________________ Pasan... | ||
| |
| | #43 |
|
2.76 Amps. If you even glanced at it you could see it! It jumped out at me
__________________ IF YOU WANT TO HELP FINE IF NOT PLEASE DON"T PEE IN MY CHEERO'S | |
| |
| | #44 | |
| Quote:
Brian | ||
| |
| | #45 | |
| Quote:
. Really nice place to work
__________________ Pasan... | ||
| |
|
| Tags |
| clockbig, digital, pic |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| ULTRA clean 9VDC Power Supply Project | Peter_wadley | Electronic Projects | 51 | 13th May 2009 07:58 AM |
| PIC Digital Clock | muralibhat | Micro Controllers | 36 | 26th October 2008 12:46 AM |
| The Oscilloscope | ElectroMaster | Electronic Theory | 12 | 3rd February 2008 02:45 PM |
| Digital Troubleshooting and testing | walters | General Electronics Chat | 38 | 24th August 2005 09:21 AM |
| Newcomers, please read! (PIC regarded) Upd. 0xD | Jay.slovak | Micro Controllers | 0 | 17th April 2005 02:05 PM |